How do you organize extext translation files that are REGIONALISED?

My application is i18n, but with a difference in the region, this means that I will need to have such translations:

  • ch_DE
  • fr_FR
  • cn_HK
  • ru_RU

etc...

The Zend_Translate documentation says that you can use the following structure:

/languages
  /en
    lang.en
    other.en
  /de
    lang.de
    other.de

Will Zend_translate work with a regional folder, for example ch_DE?

+3
source share
1 answer

If you intend to use gettext, use the standardized localesgettext directory to host localized files.

It looks like this:

 locale/fr/LC_MESSAGES/mydomain.mo 
 locale/fr_FR/LC_MESSAGES/mydomain.mo 
 locale/en_US/LC_MESSAGES/mydomain.mo
+1
source

All Articles