Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language defaults to english even on non english machines. #6357

Closed
Soyweiser opened this issue Feb 28, 2014 · 6 comments

Comments

Projects
None yet
6 participants
@Soyweiser
Copy link
Contributor

commented Feb 28, 2014

See: http://smf.cataclysmdda.com/index.php?topic=5290.0

"Hi, I am using the development version of C:DDA. I noticed it defaults to English again, but my system language is German. In 0.9, C:DDA was German by default, now it’t back to English.

So how do I select the language for C:DDA in the development version?"

@i2amroy

This comment has been minimized.

Copy link
Member

commented Feb 28, 2014

It would be nice to know how to change the localization of the game for future questions like this.

@Wuzzy2

This comment has been minimized.

Copy link
Contributor

commented Feb 28, 2014

Random notes:
I am a Linux user.
Of course it was built with LOCALIZED=1.
My $LANG is “de_DE.utf8” and I haven’t changed it for years.

@frycarson

This comment has been minimized.

Copy link
Contributor

commented Feb 28, 2014

I think the experimental builds aren't building the binary localization files (if downloaded).

If making yourself I think you need to do: make LANGUAGES=de_DE
or edit the makefile

from:
27 # Compile localization files for specified languages
28 # (for example: make LANGUAGES="zh_CN zh_TW" for Chinese)
29 # make LANGUAGES="<lang_id_1>[ lang_id_2][ ...]"
30 # Enable lua debug support

to(for German):

27 # Compile localization files for specified languages
28 LANGUAGES="de"

As an anglophone I haven't needed to test this, checking now to see if that will fix it(and I can get my locale back to en_US )

UPDATE:

So that seems to have been the issue, but the I get an error when I try to run with LANG=de_DE.UTF-8 which has probably to do with not having any of the locale de_DE.UTF-8 stuff installed on my system. Also in the translation file there is a duplicate entry which causes an error in file:line lang/po/de.po:42669

@kevingranade

This comment has been minimized.

Copy link
Member

commented Mar 1, 2014

FYI, to test localization, you need to "make localization" (the Makefile comment is wrong), then you can do:

LC_MESSAGES=country_code ./cataclysm

After running the make, look at the directories in lang/mo for language codes to try.
Note, the two-character directories are fallbacks, you must specify a valid ll_LL code, and if it doesn't have a matching dialect it will fall back to the two-digit version. e.g. de_DE (we don't use the .utf8 part, we only provide utf8)
We need to look at packaging .mo files with the distribution, it looks like the makefile supports it, it just needs to be invoked properly.

@kevingranade

This comment has been minimized.

Copy link
Member

commented Mar 2, 2014

I think this was caused by us not packaging the .mo files with the distribution, we're doing that now.
Can someone who experienced the problem download the latest experimental and confirm it works "out of the box"?

@kevingranade

This comment has been minimized.

Copy link
Member

commented Jun 12, 2014

I think this is working now, also there's an option to switch language now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.