Hi!
This is my first post here
OK, I like the idea of i8n (Internationalization) and g8n (globalization) very much, but I see big problems with that script in future.
I mean if you have a big site, you’r way of handling with variables will make big perfomanceloss.
Where do I know that? I coded a chess system with i8n a long while ago (then left that company by the way the game I coded is located under
http://games.vatansesi.com/chess/ and I hatet it forever) and recognized that 10000 Arrays are faster than 10000 Variables.
And on the other hand I really don’t like the idea to code each site in a new folder and language. I’ts a quirk in my opinion, but not a solution.
I solved that problem this way: I coded empty Array containers that are able to be filled with information from any language and charset.
That information comes from a folder called languages which contains something like a database of words and sentences etc.
An example - help.php :
array[help] = $help;
a file called help.lang.en.php
contains the information "help" that is associated with %help%
---------------------------------------------------------
OK lets assume you don’t want to solve that problem this way.. cuz this needs to hack the core.
But, I suggest you to solve i8n however you want but standards compliant ;-)
http://www-306.ibm.com/software/globalization/icu/index.jsp
http://icu.sourceforge.net/download/
I see that we need an icu package for PHP...hmm maybe there is one in the jungle of google?
I hope u don’t misunderstand this, I just want to help you by giving meaningful critics.
mb plz