The Joomla! Forum ™






Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Dec 20, 2012 6:58 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Dec 11, 2012 6:05 am
Posts: 9
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?

$lang['xyz'] = "Text goes here!";
Code:
$lang['Text goes here!'] = "Translated text!";

Or should I create my custom parser and add localizations to a file, like this:

Code:
"Text goes here!" = "Translated text!";
And then just parse it.


What would you suggest? I tried to search but no results for me.

_________________
http://irmtn.ir
http://sharjol.ir


Top
 Profile  
 
PostPosted: Thu Dec 20, 2012 1:33 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17370
Location: **Translation Matters**
I do not think posting such a question in Joomla forums will get any reply. ;)
We do not use .php files for language translations since 1.5 and switched to native php .ini parsing in 2.5.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Sat Jan 04, 2014 1:48 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Dec 12, 2013 10:35 pm
Posts: 6
Oh, was planning to ask questions on the same line regarding translations. Thanks for the information infograf768. :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 



Who is online

Users browsing this forum: No registered users and 37 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group