Good way to create script supporting translations?

MeenceFrine

New Member
I'm creating an open-source cms and was just wondering that which is the best way to add localizations? I already decided to have them in files similar to lang.en.php. I would assume arrays, but in which form?\[code\]$lang['xyz'] = "Text goes here!";$lang['Text goes here!'] = "Translated text!";\[/code\]Or should I create my custom parser and add localizations to a file, like this:\[code\]"Text goes here!" = "Translated text!";\[/code\]And then just parse it.What would you suggest? I tried to search but no results for me.Martti Laine
 
Back
Top