project-navigation
Personal tools

Author Topic: changing language  (Read 5866 times)

sorrenti

  • Guest
changing language
« on: April 02, 2007, 03:42:01 am »
a simple question: how to change the game language?

the installer (or the game) seems to automatically detect the os language, and the game use it...

but I don't want to play a game half italian and half english!!!
how to set the english language?

deleting the language folders, except the english one doesn't work...
I searched the registry but no results...

some help? thanks!

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
changing language
« Reply #1 on: April 02, 2007, 10:09:31 am »
are you playing with windows?

open the game console (^-key or shift+esc) and type "s_language en"

or.. copy the file base/i18n/en/LC_MESSAGES/ufoai.mo to base/i18n/it/LC_MESSAGES/ufoai.mo

linux:
start with "LANG=<whatever>; ./ufo"

Hoehrer

  • Guest
changing language
« Reply #2 on: April 02, 2007, 10:30:06 am »
I added a language section in the manual some time ago:
Manual/Language

Will add the info from mattn (for linux) there soon.

Werner

sorrenti

  • Guest
changing language
« Reply #3 on: April 02, 2007, 03:05:39 pm »
thanks to everybody, now I can read the ufopaedia!

canahari

  • Guest
changing language
« Reply #4 on: April 09, 2007, 10:38:41 pm »
Hi!


I have the same problem as the first poster. I'm on linux, the value of my LANG environment variable is "hu-HU.UTF-8" from default. (Of course without ""s.)

Neither Mattn's ufo-starting solution, nor the symlinks didn't work for me. :(
I have created three symlinks to the i18n directory : hu, hu-HU and hu-HU.UTF-8, all of these are pointing to the en dir.

Any ideas?
Thanks,
E.

canahari

  • Guest
changing language
« Reply #5 on: April 09, 2007, 11:25:20 pm »
... And some funny startup output:

"...
execing default.cfg
execing config.cfg
execing keys.cfg
Hostname: bagoly
IP: 127.0.0.1
...using language: C
Console initialized."

:)
So, how can I find what language is the used actually by the game? :)

[Edit: I realized (or: I guess:) this "C" value is for the game's auto language detection. ... It is not too informative anyway. :>]

canahari

  • Guest
changing language
« Reply #6 on: April 09, 2007, 11:43:47 pm »
So, I found a third "solution" for the language problem.
Here it is:

 - in your home there is an .ufoai directory,
 - open the .ufoai/base/config.cfg file with a text editor,
 - set the s_language to "en" (or what you want). Warning: the line containing s_language setting _exists_ yet in the file! (DON'T write a new line, modify the existing one!),
 - enjoy!

ancient_scars

  • Guest
changing language
« Reply #7 on: April 15, 2007, 10:08:27 pm »
I'm sorry to steal this thread, but there is no *.cfg-file anywhere in my UFO AI folders. I've tried uninstalling and reinstalling, but to no avail.  :(

*edit*
When I try "s_language en" in the console I only get;
...could not set to language: en
...could not set to system language

My guess is it's because there's no config-file to write to?

*edit 2*
My troubles seem to be over for the time being. I just installed the 2.1(.1) beta over the old 2.1 installation and now it works.  :D

There's still no config-file, though. Hmm.  :?

ak

  • Guest
changing language
« Reply #8 on: April 16, 2007, 12:23:45 pm »
Quote from: "ancient_scars"
I'm sorry to steal this thread, but there is no *.cfg-file anywhere in my UFO AI folders. I've tried uninstalling and reinstalling, but to no avail.  :(


if you are using linux, the config file can be found in ~/.ufoai/base - it's a hidden folder in your home directory.
in nautilus (gnome desktop), you can see hidden files by pressing ctrl+h, or in view>show hidden files

Quote from: "canahari"
- in your home there is an .ufoai directory,
- open the .ufoai/base/config.cfg file with a text editor

ancient_scars

  • Guest
changing language
« Reply #9 on: April 16, 2007, 10:49:02 pm »
I'm on Windows XP.
Sorry, I forgot to write what OS I use.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
changing language
« Reply #10 on: April 16, 2007, 11:34:32 pm »
it's in you application data folder

ancient_scars

  • Guest
changing language
« Reply #11 on: April 17, 2007, 06:28:26 pm »
Yes, you are entirely correct. Thank you. It was driving me nuts.

Anyway, as I stated, everything was ok after I installed 2.1(.1) over 2.1.

Thanks anyhoo. ;)

squig

  • Guest
changing language
« Reply #12 on: April 24, 2007, 08:11:23 pm »
Hello,

Thank you for this great game, but I have a problem with the language files.
I'm playing on a linux system (ubuntu feisty, fresh ufoai install, 2.1.1) and I tried to start the game as followed:
Code: [Select]
$ LANG=de; ufoai

But the instead of ingame text I alway see something like "txt_standard_campaign".

On the console I found following output:
Code: [Select]
...could not set to language: de
...could not set to system language


I also tried to set language to "en" and to edit the language value in "config.cfg" but nothing helps.

Am I missing some gettext files? Or this there another solution?

Thanks.

squig

  • Guest
changing language
« Reply #13 on: April 25, 2007, 10:16:01 am »
Hello,

I started the game this morning and now I can read all texts  :shock:


Now I have to secure some landing scape  :twisted: