Posted on: 07/09/03 10:05am
By: vvprok
Now I am engaged in Russian localization of Geeklog. Unfortunately, it is necessary to notice, that at change of base file English.php (for example at addition of phrases and expressions), it will be necessary to synchronize ALL localization\'s files. It also results in occurrence of the uncompleted localizations.
I offer to act as follows:
1) To create LangDefault.php, in which will be a copy of English.php, with the next exception:
if (\" \" == LANGXX [N]) {
LANGXX [N] = \" Default Phrase \";
}
2) Localized file will be included before LangDefault.php
3) Maybe would be useful to have DEBUG mode of LangDefault.php file, to have complete dump of unlocalized phrases.
Best Regards
Re:Desired Localization Strategy
Posted on: 07/09/03 04:25pm
By: Dirk
[QUOTE BY= vvprok]Unfortunately, it is necessary to notice, that at change of base file English.php (for example at addition of phrases and expressions), it will be necessary to synchronize ALL localization\'s files.[/QUOTE]
Yep, thats a flaw in the current implementation.
1) To create LangDefault.php, in which will be a copy of English.php, with the next exception:
if (\" \" == LANGXX [N]) {
LANGXX [N] = \" Default Phrase \";
}
Not sure I understand - where would you put that code?
For a moment, I thought PHP\'s array_merge function would be perfect for this, but it doesn\'t work as expected with numerical indexes
Another option would be to write a (offline) tool that synchronises language files with english.php, i.e. any new strings would be pulled from english.php and added to the other language file. So at least you wouldn\'t have any missing strings ...
bye, Dirk
Re:Desired Localization Strategy
Posted on: 07/09/03 08:52pm
By: vvprok
I done it in the next way:
1. I wrote script, which processes current english.php and creates new in style of:
if (\" \" == LANGXX [N]) {
LANGXX [N] = \" Default Phrase \";
}
2. At the end of each other localization file I included english.php
Unfortunately I had not received confirmation message from translation mailing list and can not send to you results of my revolution
Re:Desired Localization Strategy
Posted on: 07/10/03 03:41am
By: Dirk
[QUOTE BY= vvprok]Unfortunately I had not received confirmation message from translation mailing list[/QUOTE]
Hmm, can\'t see you in the list of subscribed users either. Try to sign up again.
bye, Dirk
Re:Desired Localization Strategy
Posted on: 07/10/03 05:43am
By: vvprok
I done registration three times (with delay in ~12 hours):
1. To enter mail
2. To enter password
3. To confirm password
And nothing
Maybe I done something wrong?
Note: I receive confirmation mail for devtalk and cvs mailing lists
Re:Desired Localization Strategy
Posted on: 07/10/03 04:51pm
By: vvprok
I sent my changes to cvs mailing list.
The message includes LangHack.zip, where you can also find draaft version of russian localization (all phrases are translated, but not checked completely).
Re:Desired Localization Strategy
Posted on: 07/10/03 05:38pm
By: Dirk
We seem to have a problem with at least some of the mailing lists. I haven\'t gotten any notifications for the CVS checkins I did today, neither have I seen your mail.
Maybe you could email me your files directly? My email address is in the header of most of the 1.3.8 files ...
bye, Dirk
Re:Desired Localization Strategy
Posted on: 07/11/03 09:50am
By: vvprok
Ok! I have sent to you mail directly.
Re:Desired Localization Strategy
Posted on: 07/14/03 04:04pm
By: Dirk
[QUOTE BY= vvprok] Ok! I have sent to you mail directly.[/QUOTE]
Well, I haven\'t received any email from you and I can\'t find your post in the archives of the CVS mailing list either. Are you having a problem with your email maybe?
If you want your translations being added to the upcoming 1.3.8 release, why not simply upload them here on the site?
bye, Dirk