Skip to:
Content
Pages
Categories
Search
Top
Bottom

Problems with tranlation

  • 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?

Viewing 1 replies (of 1 total)
  • 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

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar