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

Locale improperly set after language change in UI #25034

Open
1 of 7 tasks
scott967 opened this issue Apr 21, 2024 · 0 comments
Open
1 of 7 tasks

Locale improperly set after language change in UI #25034

scott967 opened this issue Apr 21, 2024 · 0 comments
Labels
Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it

Comments

@scott967
Copy link
Contributor

Bug report

Describe the bug

Here is a clear and concise description of what the problem is:

When UI language is set to English (New Zealand) and then changed in the settings to English, the locale is switched to en-au

Expected Behavior

Here is a clear and concise description of what was expected to happen:

When selecting language English, locale should be set to en-gb

Actual Behavior

Extracted from debug log:
info <general>: CLangInfo: loading resource.language.en_gb language information... debug <general>: trying to set locale to en-au info <general>: global locale set to en-au

Possible Fix

Suspect problem might be going from a language with a region (English (New Zealand)) to a language with no region (England)
Possibly change languages for English, France, Portuguese, Spanish defaults to include region?

To Reproduce

Steps to reproduce the behavior:

  1. On fresh install, install English (New Zealand) and English (Australia) language resource addons
  2. Switch UI language to English (New Zealand) in settings
  3. Swicth language to English in settings

Debuglog

The debuglog can be found here:
https://paste.kodi.tv/lubakejixi.kodi

Screenshots

Here are some links or screenshots to help explain the problem:

Additional context or screenshots (if appropriate)

Here is some additional context or explanation that might help:

Discovered while testing fix for invalid function return in xbmc.getLanguage with optional parameter region set to "True" so that the function returns region info with language.
Verified by looking at settings / interface / regional

Your Environment

Used Operating system:

  • Android

  • iOS

  • tvOS

  • Linux

  • macOS

  • Windows

  • Windows UWP

  • Operating system version/name: Win 10 x64 22H2 OS system language / locale en-us

  • Kodi version: 22 WinX64 desktop

note: Once the issue is made we require you to update it with new information or Kodi versions should that be required.
Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.

@xbmc-gh-bot xbmc-gh-bot bot added the Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it label Apr 21, 2024
@scott967 scott967 changed the title Locale imporperly set after language change in UI Locale improperly set after language change in UI Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it
Projects
None yet
Development

No branches or pull requests

1 participant