Good way to create script supporting translations? - Joomla! Forum - community, help and support


i'm creating open-source cms , wondering best way add localizations? decided have them in files similar lang.en.php. assume arrays, in form?

$lang['xyz'] = "text goes here!";

code: select all

$lang['text goes here!'] = "translated text!";

or should create custom parser , add localizations file, this:

code: select all

"text goes here!" = "translated text!";
and parse it.


what suggest? tried search no results me.

i not think posting such question in joomla forums reply. ;)
we not use .php files language translations since 1.5 , switched native php .ini parsing in 2.5.





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support