project-navigation
Personal tools

Author Topic: missing text  (Read 9440 times)

tdfriese

  • Guest
missing text
« 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?

R1dO

  • Guest
missing text
« Reply #1 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.

Offline Bandobras

  • Captain
  • *****
  • Posts: 586
    • View Profile
missing text
« Reply #2 on: September 19, 2006, 01:37:47 am »
It's too hard to code. We need help (see my failed reverted attempts in SVN).

HaJo

  • Guest
missing text
« Reply #3 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.

Offline Bandobras

  • Captain
  • *****
  • Posts: 586
    • View Profile
missing text
« Reply #4 on: September 19, 2006, 07:19:48 pm »
Code: [Select]
set s_language "en"

seems to override default OS language, so it is hard...

Aaangel

  • Guest
missing text
« Reply #5 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 ?

ngoj

  • Guest
missing text
« Reply #6 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!

ubequitz

  • Guest
missing text
« Reply #7 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.

Offline Punkie

  • Rookie
  • ***
  • Posts: 20
    • View Profile
missing text
« Reply #8 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.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
missing text
« Reply #9 on: June 24, 2007, 07:45:55 am »
have a look at the wiki faq. there are some lines written to the language problem

Offline atrox

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Re: missing text
« Reply #10 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

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: missing text
« Reply #11 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)

Offline atrox

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Re: missing text
« Reply #12 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.

Offline Zenerka

  • Sergeant
  • *****
  • Posts: 301
    • View Profile
Re: missing text
« Reply #13 on: September 04, 2007, 11:01:36 am »
atrox, pkg_info|grep gettext

Offline atrox

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Re: missing text
« Reply #14 on: September 04, 2007, 11:05:18 am »
$ pkg_info -E gettext\*
gettext-0.16.1_3

;)