UFO:Alien Invasion

Technical support => Feature Requests => Topic started by: tdfriese on September 18, 2006, 06:08:14 pm

Title: missing text
Post 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?
Title: missing text
Post by: R1dO on September 18, 2006, 06:32:51 pm
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.
Title: missing text
Post by: Bandobras on September 19, 2006, 01:37:47 am
It's too hard to code. We need help (see my failed reverted attempts in SVN).
Title: missing text
Post by: HaJo on September 19, 2006, 02:47:40 am
Quote from: "Bandobras"
It's too hard to code.

Setting as default
Code: [Select]
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.
Title: missing text
Post by: Bandobras on September 19, 2006, 07:19:48 pm
Code: [Select]
set s_language "en"

seems to override default OS language, so it is hard...
Title: missing text
Post by: Aaangel on October 11, 2006, 08:53:38 am
Well I'm a fairly experienced coder, a delphi coder though ... but I can look into it if you want me to ?
Title: missing text
Post by: ngoj on January 07, 2007, 09:46:27 pm
this solve the problem with Windows OS:
set s_language "en"


although
b_workshop_txt
is still missing!
Title: missing text
Post by: ubequitz on January 07, 2007, 11:50:54 pm
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.
Title: missing text
Post by: Punkie on June 24, 2007, 12:18:38 am
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.
Title: missing text
Post by: Mattn on June 24, 2007, 07:45:55 am
have a look at the wiki faq. there are some lines written to the language problem
Title: Re: missing text
Post by: atrox on September 03, 2007, 03:23:53 pm
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
Title: Re: missing text
Post by: Mattn on September 03, 2007, 06:16:33 pm
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)
Title: Re: missing text
Post by: atrox on September 04, 2007, 07:23:27 am
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:
Code: [Select]
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.
Title: Re: missing text
Post by: Zenerka on September 04, 2007, 11:01:36 am
atrox, pkg_info|grep gettext
Title: Re: missing text
Post by: atrox on September 04, 2007, 11:05:18 am
$ pkg_info -E gettext\*
gettext-0.16.1_3

;)
Title: Re: missing text
Post by: Zenerka on September 04, 2007, 01:48:48 pm
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.
Title: Re: missing text
Post by: atrox on September 04, 2007, 05:51:02 pm
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