Nothing entered.
[http://sourceforge.net/p/ufoai/bugs/2808 Item 2808] imported from sourceforge.net tracker on 2013-01-28 19:50:51
No matter which language is chosen in the main menu, the OS' language is used by UFO:AI.
===== Comments Ported from Sourceforge =====
====== tlh2000 (2011-02-13 13:04:29) ======
and your os is?
====== mcr2010 (2011-02-13 18:23:57) ======
It is Windoze XP.
====== kildor (2011-02-14 08:11:11) ======
Confirm this problem.
I`ve tried to use git bisect, but fail to get any corrected results
git bisect start
# good: [34642bfe2736e24b3a87519500c83226a82a30e8] * added gdi32 to windows (mingw) linker flags
git bisect good 34642bfe2736e24b3a87519500c83226a82a30e8
# bad: [fcc9c01c429c294f1684962903fb48827f3dd30e] * cleanup in opengl backend code
git bisect bad fcc9c01c429c294f1684962903fb48827f3dd30e
# good: [19d180b426b79c7ebd0d2911486393b5ed9663b8] * use local campaign pointer, not global curCampaign pointer
git bisect good 19d180b426b79c7ebd0d2911486393b5ed9663b8
# bad: [76d92d8031c7488a88fc257a3cc3ad90cb36dd25] * reduced scope
git bisect bad 76d92d8031c7488a88fc257a3cc3ad90cb36dd25
# bad: [920e9bf7b996692e196a8e72dade82560391b349] * cleanup in cgame_export_t, removed DisplayItemInfo
git bisect bad 920e9bf7b996692e196a8e72dade82560391b349
# bad: [606f7a263ca83afd2e5ef0e86592a0baea4704f9] * moved localEntity parsing data structure into header file
git bisect bad 606f7a263ca83afd2e5ef0e86592a0baea4704f9
# bad: [f858778dd19f3ffe5d8132ef0c41251566838b2a] * added empty campaign tests
git bisect bad f858778dd19f3ffe5d8132ef0c41251566838b2a
# good: [878d3ace43e79a8c8c37371161d0cafd480b3b1c] * RS_InitTree now uses a local campaign pointer, not the global
git bisect good 878d3ace43e79a8c8c37371161d0cafd480b3b1c
====== silverwarior (2011-04-16 03:05:10) ======
Temporary fix for this is to move or delete language folder of your windows native language (Sl) in my case, wich is located in UFOAI-2.4-dev\base\i18n folder. This way the game doesn't finds suitable language translation and reverts back to english.
====== edirr (2011-05-10 18:41:58) ======
This is a duplicate of ID: 2981899, which has a far more detailed description. That one was filed more than a year ago and was commented upon as still extant in the current dev version.
====== edirr (2011-05-11 20:22:15) ======
Jesus effing Christ the language brokenness extends far beyond what it used to be before! Moving the language files for my native language (Finnish) results in THERE BEING NO TEXT FILE CONTENTS AT ALL! It just shows me [name of text file] instead of ufopaedia entry and the same for intro sentences, it says [intro sentence x] where x is a number.
There are only two ways to REALLY get around this blasted problem and they are both several different kinds of pain in the arse:
The first anda most cumbersome is to go to the Windows Control Panel, Regional and Language Options and select something other than your native there. Even if it says your location is your real location (e.g. Finland for me), the other entry that sets all the currency and other options must be selected to match the language you want in UFO:AI or the text file contents won't show if you try to play with anything other than location specific language.
It seems like the game reads the Windows regional location settings and FORCES the game to use that language pack if present and English otherwise. IF the game is supposed to have those language files but the directory has been moved, you don't get text content at all, just file names.
The other, less painful workaround is to switch the LC_Messages folders between the English folder and the language folder your location would have. For me, moving the LC_Messages folder from the en subfolder to the fi subfolder and the fi LC_Messages are archived elsewhere.
Priority 3 is too low for this, since this is the kind of thing that will immediately drive users away. If I hadn't known about this bug, I'd have simply uninstalled the game and never come back to the game.
====== edirr (2011-05-12 17:31:32) ======
I forgot to include my system specs. I'm on Windows XP Pro SP3. Sorry about the oversight.
====== alextishin (2011-05-13 15:52:24) ======
Did some digging into the code since this bug annoys me very much, and found the reason for it: gettext uses local (C runtime library) copy of system environment vars to detect locale, and commit 27437407f2142f8f5d0f6f9b14ace6712e260cc4 replaced changing local copy to changing global (process-level) envvar(s), rendering gettext oblivious to the locale change.
gettext FAQ recommends that BOTH putenv and SetEnvironmentVariable shall be used to change envvars on Win -- maybe do that?
====== tlh2000 (2011-05-13 17:55:36) ======
thanks a lot alextishin. please commit as fix - as i don't have windows and would not be able to test it on my own.
====== edirr (2011-05-14 10:55:56) ======
Thank you for looking into this. It is a much awaited fix. :)
====== alextishin (2011-05-14 20:14:15) ======
Fixed by 324151945e33a31cebd28feef60b18990f682d26
====== edirr (2011-05-15 14:54:44) ======
Fix confirmed for language selection. Works beautifully now.
However, related issue (ID: 2981899) is NOT fixed. It apparently uses something else, or there is an overlooked environment variable reference somewhere.
====== sf-robot (2011-05-28 20:20:09) ======
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).