make "repeat alerts" setting translatable

Fixes #2511
Closes #2516

 //FREEBIE
This commit is contained in:
agrajaghh 2015-02-23 10:53:07 +01:00 committed by Moxie Marlinspike
parent d4493e700e
commit a4bd9fae9a
3 changed files with 14 additions and 7 deletions

View File

@ -186,12 +186,12 @@
</string-array>
<string-array name="pref_repeat_alerts_entries">
<item>Never</item>
<item>One time</item>
<item>Two times</item>
<item>Three times</item>
<item>Five times</item>
<item>Ten times</item>
<item>@string/preferences__never</item>
<item>@string/preferences__one_time</item>
<item>@string/preferences__two_times</item>
<item>@string/preferences__three_times</item>
<item>@string/preferences__five_times</item>
<item>@string/preferences__ten_times</item>
</string-array>
<string-array name="pref_repeat_alerts_values" translatable="false">

View File

@ -713,6 +713,13 @@
<string name="preferences__change_notification_sound">Change notification sound</string>
<string name="preferences__inthread_notifications">In-thread notifications</string>
<string name="preferences__play_inthread_notifications">Play notification sound when viewing an active conversation.</string>
<string name="preferences__repeat_alerts">Repeat alerts</string>
<string name="preferences__never">Never</string>
<string name="preferences__one_time">One time</string>
<string name="preferences__two_times">Two times</string>
<string name="preferences__three_times">Three times</string>
<string name="preferences__five_times">Five times</string>
<string name="preferences__ten_times">Ten times</string>
<string name="preferences__vibrate">Vibrate</string>
<string name="preferences__also_vibrate_when_notified">Also vibrate when notified</string>
<string name="preferences__minutes">minutes</string>

View File

@ -45,7 +45,7 @@
<ListPreference
android:key="pref_repeat_alerts"
android:defaultValue="0"
android:title="Repeat alerts"
android:title="@string/preferences__repeat_alerts"
android:dependency="pref_key_enable_notifications"
android:entries="@array/pref_repeat_alerts_entries"
android:entryValues="@array/pref_repeat_alerts_values" />