Re: [PHPTAL] i18n plural forms

2010-01-08 Thread Marcin Głowacki
Kornel Lesinski pisze: On 8 Jan 2010, at 17:21, Marcin Głowacki wrote: Thanks for your advice @phptal plural forms. It is working but i stuck on other problem - how to add plural translation in a tal variable? for example: and session/message for $n = 5 looks like: 'Added pictures

Re: [PHPTAL] i18n plural forms

2010-01-08 Thread Marcin Głowacki
Thanks for your advice @phptal plural forms. It is working but i stuck on other problem - how to add plural translation in a tal variable? for example: and session/message for $n = 5 looks like: 'Added pictures into queue'; phptal is ommitting whole element. afaik phptal is always ommiti

[PHPTAL] i18n plural forms

2010-01-06 Thread Marcin Głowacki
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" ms