Forums

Join
bbPress Support ForumsTroubleshootingProblems with tranlation

Info

Problems with tranlation

  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?

  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

  3. You must log in to post.