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

Should values referenced from preferences files be translated? #65

Open
io7m opened this issue Jun 12, 2024 · 0 comments
Open

Should values referenced from preferences files be translated? #65

io7m opened this issue Jun 12, 2024 · 0 comments

Comments

@io7m
Copy link

io7m commented Jun 12, 2024

Hello!

We have traditional PreferenceScreen objects. For example:

<?xml version="1.0" encoding="UTF-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools">

  <Preference
    android:icon="@drawable/ic_settings_account"
    android:key="settingsAccounts"
    android:summary="@string/settingsAccountsSummary"
    android:title="@string/settingsAccounts" />

  <PreferenceCategory android:title="@string/settingsDocumentation" >
    <Preference
      android:key="settingsAcknowledgements"
      android:summary="@string/settingsAcknowledgementsSummary"
      android:title="@string/settingsAcknowledgements" />
...

We're finding that, even though we have translations for strings such as settingsAccounts, settingsAcknowledgements, and so on (they're visible in the web interface with the expected key values), they're always displayed in the app as English despite the device being set to Spanish. Other strings in the app are displayed in the correct language.

Is this an expected limitation?

@io7m io7m changed the title Should values references from preferences files be translated? Should values referenced from preferences files be translated? Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant