Dear Lazalus 's fans,
I've just installed Lazalus, and rush to set my locale, Thai. Unfortunately, it does not work. Help, please
Tawee L.

Mailing lists / lazarus / 2009-08
7 messages · 4 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Dear Lazalus 's fans,
I've just installed Lazalus, and rush to set my locale, Thai. Unfortunately, it does not work. Help, please
Tawee L.
Zitat von Tawee Laoitichote :
Dear Lazalus 's fans, I've just installed Lazalus, and rush to set my locale, Thai. Unfortunately, it does not work. Help, please
Do you mean translated strings or things like date and time formats?
There is no Thai translation for the IDE yet, so you will see English everywhere.
Maybe you want to start it? It is easy.
The strings are stored in simple text files and there are programs like poedit and kbabel which allow more comfortable editing.
Mattias
Thanks Mattias, I found a file in /etc/lazarus/environmentoption.xml; no other files else within the same directory. And, it is listed as follow:
<?xml version="1.0"?>
<CONFIG>
<EnvironmentOptions>
<Version Value="106"/>
<Debugger Class="TGDBMIDebugger"/>
<DebuggerFilename Value="/usr/bin/gdb">
</DebuggerFilename>
<LazarusDirectory Value="/usr/lib/lazarus/">
<History Count="1">
<Item1 Value="/usr/lib/lazarus/"/>
</History>
</LazarusDirectory>
<CompilerFilename Value="/usr/bin/fpc">
<History Count="3">
<Item1 Value="/usr/local/bin/fpc"/>
<Item2 Value="/usr/bin/fpc"/>
<Item3 Value="/opt/fpc/fpc"/>
</History>
</CompilerFilename>
<FPCSourceDirectory Value="/usr/share/fpcsrc/$(FPCVER)/"> <History Count="2">
<Item1 Value="/usr/share/fpcsrc/"/>
<Item2 Value="/usr/share/fpcsrc/$(FPCVER)/"/>
</History>
</FPCSourceDirectory>
<MakeFilename>
<History Count="1">
<Item1 Value="/usr/bin/make"/>
</History>
</MakeFilename>
<TestBuildDirectory Value="/tmp/">
<History Count="2">
<Item1 Value="/tmp/"/>
<Item2 Value="/var/tmp/"/>
</History>
</TestBuildDirectory>
</EnvironmentOptions>
</CONFIG>
BTW, my os is kubuntu 9.04. What to do next?
tawee
Since you didn't answer my questions, I assume you didn't understand them. I will try in other words:
When you start lazarus you will see, that all text, captions and menu items are in English. Lazarus has many translations including German, Finnish, Chines and many more, but no Thai. No one has yet sent us a translation for Thai. You can set the language in the menu under Environment / Options.
A related topic is how to get the right date and time format in your programs for functions like DateToStr, which converts a date to a string. Your programs can use the clocale unit to automatically use the right date format.
See here
http://lazarus-ccr.sourceforge.net/docs/rtl/clocale/index.html
Mattias
i think that, in so many words, Tawee was also asking where to locate those translation files so they might possibly do the requested translation to Thai ;) they did find one file that was seemingly related but apparently not :)
FWIW anyway...
Maybe this helps:
http://wiki.lazarus.freepascal.org/Translations_/_i18n_/_localizations_for_programs#Translating_the_IDE
Mattias
Thanks both waldo and Mattias, I will start reading the web link you provided. Hopefully, it may have the thai locale in future...
tawee