Hi guys,
Op 29-3-2011 17:23, Nuno Tavares schreef:
Joan, just my opinion about that: the drawback of it
is having to load
(in memory) multiple strings that will not be used anytime - if you set
your language to PT, you are still loading the strings to ES,CA, etc..
I'd go for something like:
require_once($lang.'inc.php');
With appropriate security wrapping, obviously. This will load only one
set of strings (the language set in $lang).
More, if you send the whole string file to translate to both PT and ES,
it might to turn in difficulties when you'll merge the translations..
usually it's best to deliver PT-only to PT people, ES-only to ES people,
etc etc and so on.
Let's not reinvent the wheel again. At
http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/WikimediaMessage…
you can see how it's done in MediaWiki.
I suggest we stick to that :-)
Maarten