Monday, February 2, 2009

singular, plural and correpsonding translations

Hi, is this the right way for a cake app to support singular/plural
terms?

default.po of the language:

msgid "item"
msgid_plural "items"
msgstr[0] "<item-singular-for-that-language>"
msgstr[1] "<items-plural-for-that-language>"

In the app may I use then:

Inflector::pluralize(i18n::translate('item'))

to get plural translation of "item", after setting properly the
language?

Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: