transifex / transifex-java

Transifex Native Toolkit for Java
Apache License 2.0
19 stars 3 forks source link

Should values referenced from preferences files be translated? #65

Open io7m opened 5 months ago

io7m commented 5 months ago

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?