Skip to content

App shows strings in US English even when the phone is set to UK English on Android >= 7.0 #902

@Cactric

Description

@Cactric

Describe the bug
App shows strings in US English even when the phone is set to UK English on Android >= 7.0.
The in-app language is set to the system language.

To Reproduce
Steps to reproduce the behavior:

  1. Set phone to UK English if not already; make sure app language is set to system language
  2. Click on the 3 dots menu in the top right and select 'Solstice/Equinox'
  3. See 'Fall Equinox' instead of 'Autumn Equinox'

Expected behavior
The UK English strings, such as "Autumn Equinox", are used rather than the US English strings in res/values-en_rUS ("Fall Equinox", etc.)

Screenshots
Android 6, with expected behaviour
Image

Android 7.0, with unexpected behaviour
Image

Version Info:

  • App Version: 0.16.11
  • Android Version: 14
  • Device Model: moto g73
  • (screenshots were taken from Android Studio's emulator)

Additional context
Probably related to https://developer.android.com/guide/topics/resources/multilingual-support: Android would rather use en_US than default to fallback resources (which is where the UK English strings are)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions