prefs: make some preferences translatable
Change-Id: I7cf02b4fffcf12232661cdf03f02d068b37110a5
diff --git a/ring-android/app/src/main/res/values/strings_account.xml b/ring-android/app/src/main/res/values/strings_account.xml
index 0f0ca6f..5dade49 100644
--- a/ring-android/app/src/main/res/values/strings_account.xml
+++ b/ring-android/app/src/main/res/values/strings_account.xml
@@ -162,6 +162,7 @@
<string name="account_tls_server_name_label">Server Name</string>
<string name="account_tls_verify_server_label">Verify Server</string>
<string name="account_tls_verify_client_label">Verify Client</string>
+ <string name="account_require_client_certificate_label">TLS Require Client Certificate</string>
<string name="account_tls_negotiation_timeout_sec">Negotiation Timeout (sec)</string>
<string name="account_rtp_max_port">Maximum</string>
<string name="account_rtp_min_port">Minimum</string>
diff --git a/ring-android/app/src/main/res/values/strings_preferences.xml b/ring-android/app/src/main/res/values/strings_preferences.xml
index 4897685..02bc389 100644
--- a/ring-android/app/src/main/res/values/strings_preferences.xml
+++ b/ring-android/app/src/main/res/values/strings_preferences.xml
@@ -20,6 +20,10 @@
<string name="pref_hwEncode_title">Enable accelerated encoding</string>
<string name="pref_hwEncode_summary">Experimental feature</string>
+ <string name="pref_videoBitrate_title">Video bitrate</string>
+ <string name="pref_videoBitrate_summary">Select default outgoing video bitrate (KB/s)</string>
+ <string name="pref_videoResolution_title">Video resolution</string>
+ <string name="pref_videoResolution_summary">Select default outgoing video resolution</string>
<string name="pref_systemContacts_key" translatable="false">pref_systemContacts</string>
<string name="pref_systemContacts_title">Use system contacts</string>
diff --git a/ring-android/app/src/main/res/xml/account_media_prefs.xml b/ring-android/app/src/main/res/xml/account_media_prefs.xml
index bb5c041..4ccce50 100644
--- a/ring-android/app/src/main/res/xml/account_media_prefs.xml
+++ b/ring-android/app/src/main/res/xml/account_media_prefs.xml
@@ -25,7 +25,7 @@
<Preference
android:key="ringtone"
android:summary="@string/account_ringtone_summary"
- android:title="Set a ringtone"
+ android:title="@string/account_ringtone_title"
android:icon="@drawable/baseline_notifications_active_24"/>
</PreferenceCategory>
diff --git a/ring-android/app/src/main/res/xml/account_security_prefs.xml b/ring-android/app/src/main/res/xml/account_security_prefs.xml
index 4a8b836..8e1fed9 100644
--- a/ring-android/app/src/main/res/xml/account_security_prefs.xml
+++ b/ring-android/app/src/main/res/xml/account_security_prefs.xml
@@ -126,7 +126,7 @@
android:dependency="TLS.enable"
android:key="TLS.requireClientCertificate"
android:persistent="false"
- android:title="TLS Require Client Certificate" />
+ android:title="@string/account_require_client_certificate_label" />
</androidx.preference.PreferenceCategory>
</androidx.preference.PreferenceScreen>
\ No newline at end of file
diff --git a/ring-android/app/src/main/res/xml/tv_account_general_pref.xml b/ring-android/app/src/main/res/xml/tv_account_general_pref.xml
index a2bdb8c..a171b8d 100644
--- a/ring-android/app/src/main/res/xml/tv_account_general_pref.xml
+++ b/ring-android/app/src/main/res/xml/tv_account_general_pref.xml
@@ -25,8 +25,8 @@
android:entryValues="@array/video_bitrates"
android:icon="@drawable/baseline_bitrate_24"
android:key="video_bitrate"
- android:summary="Select default outgoing video bitrate (KB/s)"
- android:title="Video bitrate" />
+ android:summary="@string/pref_videoBitrate_summary"
+ android:title="@string/pref_videoBitrate_title" />
<ListPreference
android:defaultValue="@string/video_resolution_default_tv"
@@ -34,8 +34,8 @@
android:entryValues="@array/video_resolutions"
android:icon="@drawable/baseline_hd_24"
android:key="video_resolution"
- android:summary="Select default outgoing video resolution"
- android:title="Video resolution" />
+ android:summary="@string/pref_videoResolution_summary"
+ android:title="@string/pref_videoResolution_title" />
</PreferenceCategory>
</PreferenceScreen>
\ No newline at end of file
diff --git a/ring-android/app/src/main/res/xml/video_prefs.xml b/ring-android/app/src/main/res/xml/video_prefs.xml
index c8f06b3..0ea4d82 100644
--- a/ring-android/app/src/main/res/xml/video_prefs.xml
+++ b/ring-android/app/src/main/res/xml/video_prefs.xml
@@ -15,8 +15,8 @@
android:entryValues="@array/video_bitrates"
android:icon="@drawable/baseline_bitrate_24"
android:key="video_bitrate"
- android:summary="Select default outgoing video bitrate (KB/s)"
- android:title="Video bitrate" />
+ android:summary="@string/pref_videoBitrate_summary"
+ android:title="@string/pref_videoBitrate_title" />
<ListPreference
android:defaultValue="@string/video_resolution_default"
@@ -24,7 +24,7 @@
android:entryValues="@array/video_resolutions"
android:icon="@drawable/baseline_hd_24"
android:key="video_resolution"
- android:summary="Select default outgoing video resolution"
- android:title="Video resolution" />
+ android:summary="@string/pref_videoResolution_summary"
+ android:title="@string/pref_videoResolution_title" />
</PreferenceScreen>