Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • May I ask why you want to do it without eval? I'm afraid that it would be quite tricky. If it is for the security reasons that eval might cause, then the easiest solution is probably to create a script that parses the entered text and then makes sure it is safe before passing it on. Commented Feb 26, 2012 at 23:32
  • 2
    Can't you leave it to the Gettext library, as in the original .po file this plural is given in the header? (I have no experience with the PHP implementation.) Maybe the plural declaration in the .po is missing? php.net/manual/en/function.dngettext.php Commented Feb 26, 2012 at 23:33
  • thanks, i had no idea php had that :) Commented Feb 26, 2012 at 23:38