Login   Register  
PHP Classes
elePHPant
Icontem

localization

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Class Doc  >  All threads  >  localization  >  (Un) Subscribe thread alerts  
Subject:localization
Summary:optimize the maintenance of localization-files
Messages:3
Author:Bastian Gorke
Date:2006-02-21 16:49:05
Update:2006-02-22 09:17:16
 

  1. localization   Reply   Report abuse  
Picture of Bastian Gorke
Bastian Gorke
2006-02-21 16:49:05
wouldnt it be better to use separate localization files by language and not by type.

example:
locales
doc.xml
errors.xml
gui.xml

locales
en.xml (implements doc.xml, errors.xml and gui.xml in english language)
fr.xml (implements doc.xml, errors.xml and gui.xml in french language)
...

this would optimize the maintenance of localization-files

  2. Re: localization   Reply   Report abuse  
Picture of Johan Barbier
Johan Barbier
2006-02-21 17:10:56 - In reply to message 1 from Bastian Gorke
Hello,

that seems a very good idea indeed.

Besides, I should not have more types, but I can have a lot of languages, so as it is, my files could be quite big and it could take a while to parse them.

So, right, I'll do that when I got some spare time :-)

Thanks for the advice :-)

Johan

  3. Re: localization   Reply   Report abuse  
Picture of Johan Barbier
Johan Barbier
2006-02-22 09:17:16 - In reply to message 1 from Bastian Gorke
Ok done :-)

Now, in the 'locales' folder, you can find 2 sub folders : 'english' and 'francais', and in each of it, 3 xml files (one per type : documentation, errors and UI).

Thanks again for the feedback :-)