Technical support > Linux
linux problems, no language
geever:
Well, at last I've found the root of the problem: My system is Hungarian (locale hu_HU.UTF-8) and as there was no language for this locale none could be used.
If i put this locale to 'en' section of language.ufo I can select it from the menu however there are no texts for difficulty info, intro, etc. (just msgid)
I've started to make a Hungarian translation, put it in i18n, made 'hu' setting in language.ufo. Now I can select Hungarian, ok. But I left the hu_HU.UTF8 locale in English section too and if I select English the game turns into Hungarian. So it seems there is a bug somewhere in the language handling. Maybe (but I didn't check it) the first two char of the locale was used as language-id not the section name...
Why I can't use other language than my locale setting? (Others are not even shown in the menu.)
vlad:
--- Quote from: geever on February 06, 2008, 07:14:07 pm ---Well, at last I've found the root of the problem: My system is Hungarian (locale hu_HU.UTF-8) and as there was no language for this locale none could be used.
If i put this locale to 'en' section of language.ufo I can select it from the menu however there are no texts for difficulty info, intro, etc. (just msgid)
--- End quote ---
$LANG=en.UTF-8 ufo &
Work fo me.
geever:
--- Quote ---$LANG=en.UTF-8 ufo &
--- End quote ---
Do you mean 'export LANG=en.UTF-8;ufo' ?
Because setting LANG env. changed my locale to english (in the output of locale program), but the game worked the same way: English cannot be selected only No language and Hungarian.
In Windows I can select English and other languages, and it's Hungarian too. ??
geever.
vlad:
--- Quote from: geever on February 12, 2008, 09:58:12 pm ---Do you mean 'export LANG=en.UTF-8;ufo' ?
Because setting LANG env. changed my locale to english (in the output of locale program), but the game worked the same way: English cannot be selected only No language and Hungarian.
--- End quote ---
There is no need export LANG. Setting it (more precisely LC_MESSAGES) for ufo process is enough. I can see and switch to a different languages, but if I don't set LANG to appropriate locale, I still don't see the messages.
$uname -rs
FreeBSD 6.3-RELEASE
$echo $LANG
uk_UA.UTF-8
$pkg_info -L ufoai-2.2
Information for ufoai-2.2:
Files:
/usr/local/bin/ufo
/usr/local/bin/ufoded
/usr/local/bin/ufo2map
/usr/local/lib/ufoai/base/game.so
/usr/local/lib/ufoai/base/i18n/cs/LC_MESSAGES/ufoai.mo
/usr/local/lib/ufoai/base/i18n/da/LC_MESSAGES/ufoai.mo
/usr/local/lib/ufoai/base/i18n/de/LC_MESSAGES/ufoai.mo
/usr/local/lib/ufoai/base/i18n/en/LC_MESSAGES/ufoai.mo
/usr/local/lib/ufoai/base/i18n/es/LC_MESSAGES/ufoai.mo
/usr/local/lib/ufoai/base/i18n/es_ES/LC_MESSAGES/ufoai.mo
/usr/local/lib/ufoai/base/i18n/est/LC_MESSAGES/ufoai.mo
/usr/local/lib/ufoai/base/i18n/fi/LC_MESSAGES/ufoai.mo
/usr/local/lib/ufoai/base/i18n/fr/LC_MESSAGES/ufoai.mo
/usr/local/lib/ufoai/base/i18n/ja/LC_MESSAGES/ufoai.mo
/usr/local/lib/ufoai/base/i18n/it/LC_MESSAGES/ufoai.mo
/usr/local/lib/ufoai/base/i18n/pl/LC_MESSAGES/ufoai.mo
/usr/local/lib/ufoai/base/i18n/pt_BR/LC_MESSAGES/ufoai.mo
/usr/local/lib/ufoai/base/i18n/ru/LC_MESSAGES/ufoai.mo
/usr/local/lib/ufoai/base/i18n/slo/LC_MESSAGES/ufoai.mo
/usr/local/lib/ufoai/base/i18n/sv/LC_MESSAGES/ufoai.mo
/usr/local/lib/ufoai/base/i18n/th/LC_MESSAGES/ufoai.mo
/usr/local/lib/ufoai/ufo
/usr/local/lib/ufoai/ufoded
/usr/local/lib/ufoai/ufo2map
/usr/local/lib/ufoai/base/autoexec.cfg
/usr/local/lib/ufoai/base/dedicated.cfg
/usr/local/lib/ufoai/base/default.cfg
/usr/local/lib/ufoai/base/keys.cfg
/usr/local/lib/ufoai/base/maps
/usr/local/lib/ufoai/base/media
/usr/local/lib/ufoai/base/models
/usr/local/lib/ufoai/base/music
/usr/local/lib/ufoai/base/pics
/usr/local/lib/ufoai/base/shaders
/usr/local/lib/ufoai/base/sound
/usr/local/lib/ufoai/base/textures
/usr/local/lib/ufoai/base/ufos
geever:
I thought '$' sign before LANG was a variable-sign, but now I can see that's a prompt-sign... (putting a space between prompt-sign and the command could make it clear, or using '#')
I couldn't select any languages.
After setting LANG=en.UTF-8 a `locale' request gave me some errors:
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
...ops, I've found something: my /etc/locale.gen file contained :'hu_HU.UTF-8 UTF-8'. After added 'en_GB.UTF-8 UTF-8' and run the locale-gen the English language appeared in the game and English texts were correct. wow! :)
Navigation
[0] Message Index
[*] Previous page
Go to full version