bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

Problems with tranlation

(2 posts)
  • Started 1 year ago by gorkau
  • Latest reply from gorkau
  • This topic is resolved
  1. I'm working on the spanish translation and I'm having a problem.

    syntax error, unexpected $end in /.../bb-includes/gettext.php(307) : eval()'d code on line 1

    The error really comes from this line of code:

    $posts = sprintf('%1$s %2$s', $post_num, __ngettext( 'post', 'posts', $post_num ));

    And I guess it has something to do with the plurals (post and posts). I've generated the po file using poEdit.

    Does anyone have an idea of how to solve this?

    Posted 1 year ago #
  2. Ok, solved.

    I edited the .po file and changed:

    msgid "post"
    msgstr "mensaje"

    to:

    msgid "post"
    msgid_plural "posts"
    msgstr[0] "mensaje"
    msgstr[1] "mensajes"

    I also had to set plural forms (in catalog options) to:

    nplurals=2; plural=(n != 1);

    I've found the hint to the solution here:

    http://drupal.org/node/17564

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.