UFO:Alien Invasion
Technical support => Feature Requests => Topic started by: tdfriese on September 18, 2006, 06:08:14 pm
-
I've just installed the RC4 with the file ufoai-2.0-RC4-win32, and I have a great deal of missing text. For example, the intro loads up with "intro_sentence1" "intro_sentence2" as the only text. Wierd since I saw someone else install this same version yesterday and got a whole Star Wars - type story at the beginning. Ideas?
-
The problem is most likely caused by the keyboard and language setting of your Operating System,
The game uses your language settings to determine the language for the game. The problem lies in the fact that there are only a limited number of translations available for this game, so it can happen that the game switches to a language which is not available.
You can try the following solution:
Open the "config.cfg" file (located somewhere in your ufoai folder) with a text editor and change the following line:
set s_language "YOUR_OS_LANGUAGE"
to
set s_language "en_GB"
Note since you are using the win version the "en_GB" should be correct, if not try setting it to: "en_GB.UTF-8".
Note to developers: Perhaps it is a good idea to set the standard language to "en_GB.UTF-8" (in default config) unless a supported Operating System language is found.
-
It's too hard to code. We need help (see my failed reverted attempts in SVN).
-
It's too hard to code.
Setting as default set s_language "en"
shouldn't be too hard...
Maybe a new option "choose language" in the installer ?
And in options, a pulldown-menu (or something equivalent)
with a list of all available languages would do the job.
-
set s_language "en"
seems to override default OS language, so it is hard...
-
Well I'm a fairly experienced coder, a delphi coder though ... but I can look into it if you want me to ?
-
this solve the problem with Windows OS:
set s_language "en"
although
b_workshop_txt
is still missing!
-
It is also worth trying the option: +set s_language en_US.UTF-8
e.g. "./ufoai +set s_language en_US.UTF-8" under linux.
-
2.1.1
There is no config file
typing in the console
set s_language "en_GB"
gives the result:
could not set to language: en_GB
could not set to system language
The result is that the language IS set to English though.
Note: this goes for ANY language. it IS set but an error is still displayed.
Typing the same cmd again yields NO error message.
-
have a look at the wiki faq. there are some lines written to the language problem
-
Hi.
I have installed 2.1.1 on FreeBSD from ports collection. On FreeBSD there are 2 separate ports: ufo and ufo-data. Both of them are installed, but I still see missing texts everywhere. I don't think I'm having this "default language" problem as I did set s_language "en_GB.UTF-8" in config and I see message "...using language: en_GB.UTF-8" if starting ufo from command-line.
Maybe there are some necessary text-files missing? Where should I check for them? Should I be in ufo's folder while starting it (I actually tried this, but it didn't help)?
Silver
-
there should be a file named ufoai.mo in your ufoai data folder - to be precise in base/i18n/<yourlanguage>/LC_MESSAGES/ufoai.mo (<yourlanguage> is in your case en)
-
Yes, it's there, but well.. I don't see texts though.
What else could be wrong? Maybe some console output would help? The first lines are:
Adding game dir: ./base
using /home/silver/.ufoai/2.1.1/base for writing
Adding game dir: /home/silver/.ufoai/2.1.1/base
execing default.cfg
execing config.cfg
execing keys.cfg
Hostname: silver.kodu
IP: 127.0.0.1
...using language: en_GB.UTF-8
Console initialized.
-
atrox, pkg_info|grep gettext
-
$ pkg_info -E gettext\*
gettext-0.16.1_3
;)
-
Honestly, I have no idea. ;D
I don't remember the language system in 2.1.1 very well (and it is completely changed in trunk), so all I can say is:
1) if you have XYZ locale in your system, AND
2) if you have ufoai.mo for XYZ in base/i18n/, AND
3) you started the game with such locales (+set s_language XYZ)
it should work.
Maybe something is just broken for FreeBSD port. Maybe you could dig into it. Try to do some excercises. Set your LC_MESSAGES to en_GB.UTF-8. Copy base/i18n/en/ to base/i18n/en_GB/. Try to s_language "en_GB" if "en_GB.UTF-8" does not work.
Good luck.
-
Oh, right. I hadn't tried exporting LANG to smth like "en" or "en_US" etc ::)
After doing that, the texts appeared! I did undo everything I had tried and it still works!
Sorry for not following ALL the recommended solutions of FAQ :-X