How to use gettext plural forms in PO file?

I've added suitable header ("Plural-Forms: nplurals=2; plural=n != 1;\n" - for english) and tried in different ways:

msgid "picture"
msgid_plural "pictures"
msgstr[0] "picture"
msgstr[1] "pictures"

or

msgid "picture"
msgid_plural "${n} pictures"
msgstr[0] "${n} picture"
msgstr[1] "${n} pictures"

but nothing worked ;-/

phptal used:

<tal:block i18n:translate=""><span i18n:name="n" tal:replace="data/count"/> pictures</tal:block>

where data/count is 1, 2, 3, ...

_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to