bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

Problem with __ngettext when try to localize

(2 posts)
  • Started 1 year ago by kuczek
  • Latest reply from Radja
  • This topic is not a support question
  1. kuczek
    Member

    There are places, like in template-functions.php where you want to use singular/plural forms, it goes like :
    __ngettext( 'post', 'posts', $post_num )
    Im translating EN to PL using poEdit and I added there __ngettext keyword, after that it take for me 'post' string, but 'posts' was ommitted, how to take them all ?

    Posted 1 year ago #
  2. Radja
    Member

    I have also problem with translating singular/plural forms that are handled in source code by __ngettext.

    in poEdit (version 1.3.7) I put __ngettext:1,2 to recognise both forms ( singular/plural), but when I try to translate them poEdit refuse to work and returns error:
    17:56:32: C:\Documents and Settings\hodis\Dokumenty\13jazyk.po:2236: missingmsgstr[]' section
    17:56:32: msgfmt: found 1 fatal error`

    So, is something wrong with poEdit?

    Posted 6 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.