Skip to content

Should values referenced from preferences files be translated? #65

@io7m

Description

@io7m

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions