macOS: Secondary language loaded as default

Bug #1784495 reported by Toni Förster
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Low
Unassigned

Bug Description

I was able to reproduce this on macOS 10.13.6 with build_19 and nightly r8771.

I have three languages as my preferred languages:

1. English (English) - set as primary
2. German (Germany)
3. Japanese

Widelands is set to:

selected language: (system language)

When I start Widelands from the Appbundle it uses German as default language. When I remove German from the preferred languages in the macOS System Preferences, Widelands uses Japanese, since this is the new secondary language.

To make Widelands recognize English as the system language, I either have to start it from the Terminal with:

open Widelands.app

or I have to remove the secondary and tertiary language from the System Preferences.

Related branches

Revision history for this message
GunChleoc (gunchleoc) wrote :

@Klaus: Do you still have a Mac?

tags: added: internationalization macos
Changed in widelands:
milestone: none → build20-rc1
assignee: nobody → Klaus Halfmann (klaus-halfmann)
Revision history for this message
Klaus Halfmann (klaus-halfmann) wrote :

Ill check for this one, yes I own and build on mac.
Hope I can get mack from Japanese to German or English :-)

Revision history for this message
Klaus Halfmann (klaus-halfmann) wrote :

Was able to reproduce this on bzr8773[trunk] starting it from ther Terminal directly.
(The default build does make this an App ....) using open actual does this via the Terminal.
useing ope o R19 stillw as in German, well.

Second part of the Bug as well.
I assume its some odd 0/1 confusion.

Will check this with a debugger.

Revision history for this message
Klaus Halfmann (klaus-halfmann) wrote :

Mhh, even bzr does not like these locale settings:

$ locale
LANG=
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=

After switching back to German as default I got:
$ locale
LANG="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_CTYPE="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_ALL=

Maybe widelands has a similar Problem

Revision history for this message
Klaus Halfmann (klaus-halfmann) wrote :

The code is located in src/base/i18n.cc
I am setting up a branch "odd_locale_fix" to check this

Revision history for this message
Klaus Halfmann (klaus-halfmann) wrote :

I will provide a final fallback to "en" as a last option,

Maybe this is evene a Bug with Apple: https://bugreport.apple.com/web/?problemID=43183164

Revision history for this message
Klaus Halfmann (klaus-halfmann) wrote :

Got a branch thats fixes this issue for me.

Changed in widelands:
importance: Undecided → Low
status: New → In Progress
Revision history for this message
Klaus Halfmann (klaus-halfmann) wrote :

Was merged to trunk for R20,
Toni: Welcome as widelands developer.

Changed in widelands:
status: In Progress → Fix Committed
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build20-rc1

Changed in widelands:
assignee: Klaus Halfmann (klaus-halfmann) → nobody
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.