Help (#1) - Localization (#1) - Message List
I tried to translate HyperSQL to Norwegian (Norwegian Bokmål), but it does not work. Any idea where I can "hook in to" the python scripts in order to debug what language is used or to hard code what language to use? I first need to find out if I have a problem with selecting the correct language, or if I was not able to use Poedit correct (I have never used it before).
I opened all the 4 pot files in lang/pot. While opening I entered Language and Country. Then saved as po files in lang\no_NO\LC_MESSAGES Selected one "test text" I knew where was going and translated that. For example "Index Of All Packages, Their Functions And Procedures".
The syntax "LANG=de_DE ./HyperSQL.py my_project" is not valid on windows. Get the error "'LANG' is not recognized as an internal or external command, operable program or batch file." I googled it and it seems that the LANG environment variable is ignored on windows, and that it was dependent on the settings in the control panel. There I have selected Norwegian and Norway.
One more thing… I noticed that there was two zero bytes files called en and de in the lang folder, so I tried to create a similar file called no, but that didn't help either…royaj02/27/11 20:02:25 (2 years ago)
I found something that either is a workaround or a bug I commented out line 21 (langs += en_US?) in lib\hypercore\config.py and replaced it with no_NO. After that it used my Norwegian language file as expected on Windows.royaj03/15/11 17:38:51 (2 years ago)