Posted on: 08/21/04 09:50pm
By: Euan
I was wondering what the format is going to be for language files in GL2?
A couple of random thoughts: squirrelmail and lots of other apps use a folder, with the language files for each language/locale in separate folders... so you have
language/
language/ja_JP
language/en_GB
language/en_US
etc etc. Is this what you're planning? I was wondering how this would work when you have eg. Japanese in EUC, SJIS, UTF8, and other encodings unless everything is in unicode. The reason I started thinking about folders was because at the moment, everything is in one large file. If you want to edit, say, just a couple of menu items, it takes ages to find them. If the common items (eg the menu bar, block titles, etc) were separated out into separate files, it would be much easier for admins to edit them, and to maintain their own changes across updates.
eg. if you have different titles for the menu, and the menu items are in the language/ja_JP/menu_items.php file, then it is easy to compare with a new menu_items.php file and keep your changes when upgrading. (Obviously, there are problems defining what is to be included in each file, but as an idea...)
Cheers,
Euan.
Language files
Posted on: 08/23/04 11:44am
By: Tony
A format to the one you suggest is what the plan is. In fact much of the translation code that exists was borrowed in concept from gettext. The actual format of the files will be XML (most likely)...but don't fret, we plan on providing a user inteface for handling translations so you don't have to edit files anymore.
--Tony
Language files
Posted on: 08/23/04 08:21pm
By: Euan
Thanks Tony, sounds good.
Cheers,
Euan.
Language files
Posted on: 02/24/06 06:18am
By: lokki
Hi, I wanted to make a feature suggestion. I think it will make translation easier
1. Translate whole phrases and not parts of them, it's rather difficult to find exact translation for a phrase if it is in parts for some languages.
2. Have comments added to each entry explaining where exactly it is used, 'cause in some languages the translation depends on a context, gender, etc. And one word "blah" sometimes isn't enought to guess what it means in certain context.
Thanks
Language files
Posted on: 04/20/06 03:47am
By: ukung
Making Geeklog Unilingual
Posted on: 04/25/06 06:27pm
By: aleemkhan
Is it possible to remove all references to the language files.
In other words, if it's unilingual, modify the code in such a way that there would be no need for multiple languages.