Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

Changing language has no effect #1778

Closed
wzdev-ci opened this issue Apr 16, 2010 · 31 comments
Closed

Changing language has no effect #1778

wzdev-ci opened this issue Apr 16, 2010 · 31 comments

Comments

@wzdev-ci
Copy link
Contributor

resolution_fixed type_bug | by Emdek


After changing language to English (United Kingdom) the game remains translated using system locale, also after restart, but in options page it shows that English is selected. Trunk version is also affected.


Issue migrated from trac:1778 at 2022-04-15 21:52:15 -0700

@wzdev-ci
Copy link
Contributor Author

Buginator changed status from new to pending

@wzdev-ci
Copy link
Contributor Author

Buginator commented


Can you post your --debug wz logs when you do the change ?

It seems to work OK on windows.

@wzdev-ci
Copy link
Contributor Author

Emdek changed status from pending to new

@wzdev-ci
Copy link
Contributor Author

Emdek commented


Attachment (debug.txt) added by ticket reporter.

@wzdev-ci
Copy link
Contributor Author

Emdek commented


Tested using RC 1a, change has no effect, game always use system locale...

By the way, is that normal that we can select only between English and system locale?

@wzdev-ci
Copy link
Contributor Author

Buginator changed status from new to pending

@wzdev-ci
Copy link
Contributor Author

Buginator commented


Try that again, do --debug wz and post the logs.

And no, that isn't normal, but, I think you need to install all the other languages on linux in order to switch?

@wzdev-ci
Copy link
Contributor Author

Emdek changed status from pending to new

@wzdev-ci
Copy link
Contributor Author

Emdek commented


Attachment (debug.txt) added by ticket reporter.

@wzdev-ci
Copy link
Contributor Author

Emdek uploaded file debug.txt (12.0 KiB)

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Apr 23, 2010

Emdek commented


Replying to Warzone2100/old-trac-import#1778 (comment:4):

And no, that isn't normal, but, I think you need to install all the other languages on linux in order to switch?

It's compiled from source (tarball from Downloads) and has all .mo files installed.

@wzdev-ci
Copy link
Contributor Author

Buginator changed status from new to closed

@wzdev-ci
Copy link
Contributor Author

Buginator set resolution to invalid

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Apr 26, 2010

Buginator commented


Replying to Warzone2100/old-trac-import#1778 (comment:6):

Attachment (debug.txt) added by ticket reporter.

Language switching only uses the activated locales, or so I am told.

So not really a bug.

There aren't many changes in en_GB either...so most of the time, you won't notice a difference.

@wzdev-ci
Copy link
Contributor Author

Buginator commented


P.S, the game needs to be installed into the prefix for the translations to be found.

--all info was stolen from the IRC from Cybersphinx. :)

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Apr 26, 2010

Emdek commented


Replying to Warzone2100/old-trac-import#1778 (comment:7):

Language switching only uses the activated locales, or so I am told.
Activated? How? Installing them is not enough?

Replying to Warzone2100/old-trac-import#1778 (comment:7):

There aren't many changes in en_GB either...so most of the time, you won't notice a difference.
I can notice difference, as I'm using Polish. :-P

Replying to Warzone2100/old-trac-import#1778 (comment:8):

P.S, the game needs to be installed into the prefix for the translations to be found.
So it can search for it only in /usr/share/locale/?
Then it looks like bug still. :-P

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Apr 27, 2010

cybersphinx commented


Replying to Warzone2100/old-trac-import#1778 (comment:9):

Replying to Warzone2100/old-trac-import#1778 (comment:7):

Language switching only uses the activated locales, or so I am told.
Activated? How? Installing them is not enough?

In Debian, it's done with "dpkg-reconfigure locales", which lets you activate the locales you actually want to use, and Warzone at least only shows the activated ones.

Replying to Warzone2100/old-trac-import#1778 (comment:8):

P.S, the game needs to be installed into the prefix for the translations to be found.
So it can search for it only in /usr/share/locale/?
Then it looks like bug still. :-P

The game looks for the po files in whatever prefix was given to configure, if you can select Polish, it can obviously find them (though they might not be the newest version, if you haven't installed that).

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Apr 27, 2010

Emdek commented


Replying to Warzone2100/old-trac-import#1778 (comment:10):

Replying to Warzone2100/old-trac-import#1778 (comment:9):

Replying to Warzone2100/old-trac-import#1778 (comment:7):

Language switching only uses the activated locales, or so I am told.
Activated? How? Installing them is not enough?

In Debian, it's done with "dpkg-reconfigure locales", which lets you activate the locales you actually want to use, and Warzone at least only shows the activated ones.
OK, I've installed for example locales-de and then I can select German in Options but still no effect (uses Polish)...

Replying to Warzone2100/old-trac-import#1778 (comment:10):

Replying to Warzone2100/old-trac-import#1778 (comment:8):

P.S, the game needs to be installed into the prefix for the translations to be found.
So it can search for it only in /usr/share/locale/?
Then it looks like bug still. :-P

The game looks for the po files in whatever prefix was given to configure, if you can select Polish, it can obviously find them (though they might not be the newest version, if you haven't installed that).
In fact it doesn't show entry for Polish, only "System language" entry and British English.

For me it is still valid bug, as game can't use selected language...

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Nov 9, 2010

Emdek changed status from closed to reopened

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Nov 9, 2010

Emdek changed resolution from invalid to ``

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Nov 9, 2010

Emdek commented


It's still doesn't work in 3.0 beta2, checked with English and German (with installed locales for them).
Game was installed into /home/michal/Programy/warzone-3/ and there are all files including all locales data.
Whatever is selected in game language menu (only these with installed locales-xx package show up) it always uses system locale...

@wzdev-ci
Copy link
Contributor Author

cybersphinx changed status from reopened to closed

@wzdev-ci
Copy link
Contributor Author

cybersphinx changed resolution from `` to needinfo

@wzdev-ci
Copy link
Contributor Author

Emdek changed status from closed to reopened

@wzdev-ci
Copy link
Contributor Author

Emdek changed resolution from needinfo to ``

@wzdev-ci
Copy link
Contributor Author

Emdek commented


It doesn't work in master as well:

info    |05:53:24: [setLocaleUnix] Failed to set locale to "pl.UTF-8"
info    |05:53:24: [setLocaleUnix] Failed to set locale to "pl"
info    |05:53:39: [setLocaleUnix] Failed to set locale to "ro.UTF-8"
info    |05:53:39: [setLocaleUnix] Failed to set locale to "ro"
info    |05:53:41: [setLocaleUnix] Failed to set locale to "sl.UTF-8"
info    |05:53:41: [setLocaleUnix] Failed to set locale to "sl"

I have installed all available locales.
Additionally after game restart menu selection reverted to system locale, bu instead using "System locale" string it used locale name directly.
More strangely it shown:

info    |05:54:06: [setLocaleUnix] Failed to set locale to "cs.UTF-8"
info    |05:54:06: [setLocaleUnix] Failed to set locale to "cs"

After selecting German.

@wzdev-ci
Copy link
Contributor Author

cybersphinx changed status from reopened to closed

@wzdev-ci
Copy link
Contributor Author

cybersphinx changed resolution from `` to fixed

@wzdev-ci
Copy link
Contributor Author

cybersphinx commented


Use better (?) locale names.

Hopefully fixes #1778.
Changeset: 2ef1cb2939e4be7a0e053c35189cb7b7206ab073

@wzdev-ci
Copy link
Contributor Author

cybersphinx commented


Use better (?) locale names.

Hopefully fixes #1778.
Changeset: 3234b9c1f28d03a7f117b2e5815532f576e896bb

@wzdev-ci
Copy link
Contributor Author

Emdek commented


Seems to work fine now (at least switching to German), using snapshot 2011-12-04. :-)

One minor glitch, tooltip of return button and radar option are not retranslated immediately (strangely difficulty changes correctly), until switching to next menu.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant