summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepak Kundra <deepakkundra@gmail.com>2016-05-31 18:46:15 (GMT)
committerDeepak Kundra <deepakkundra@gmail.com>2016-06-01 00:33:27 (GMT)
commitb48cf1f0d7b9e64d99fd03ad0827a8d3d930db74 (patch)
tree170d17b40943206a97a5f428752342e9a04760b4
parentd6461d6f74ed8535ebb088c28f56f7a072c77143 (diff)
downloadandroid_packages_apps_CellBroadcastReceiver-b48cf1f0d7b9e64d99fd03ad0827a8d3d930db74.zip
android_packages_apps_CellBroadcastReceiver-b48cf1f0d7b9e64d99fd03ad0827a8d3d930db74.tar.gz
android_packages_apps_CellBroadcastReceiver-b48cf1f0d7b9e64d99fd03ad0827a8d3d930db74.tar.bz2
Move the strings to cm_strings.xml for translation
Issue-id:FEIJ-507 Change-Id: I3dd2aaf5b90488188f606e7a6cf5d160d642917c
-rw-r--r--res/values/cm_strings.xml39
-rw-r--r--res/values/strings.xml2
-rw-r--r--res/xml/preferences.xml4
3 files changed, 41 insertions, 4 deletions
diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml
new file mode 100644
index 0000000..de08f61
--- /dev/null
+++ b/res/values/cm_strings.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2016 The CyanogenMod Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <!-- Entries listed in the ListPreference for allowed alert durations. [CHAR LIMIT=30] -->
+ <string-array name="cm_alert_sound_duration_entries">
+ <item>2 seconds</item>
+ <item>4 seconds</item>
+ <item>6 seconds</item>
+ <item>8 seconds</item>
+ <item>10 seconds</item>
+ <item>Until dismissed</item>
+ </string-array>
+
+ <!-- Do not translate. Values that are retrieved from the ListPreference.
+ These must match the alert_sound_duration_entries above. -->
+ <string-array name="cm_alert_sound_duration_values" translatable="false">
+ <item>2</item>
+ <item>4</item>
+ <item>6</item>
+ <item>8</item>
+ <item>10</item>
+ <item>0</item>
+ </string-array>
+
+</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 140bd8c..57e2d9a 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -239,7 +239,6 @@
<item>6 seconds</item>
<item>8 seconds</item>
<item>10 seconds</item>
- <item>Until dismissed</item>
</string-array>
<!-- Do not translate. Values that are retrieved from the ListPreference.
@@ -250,7 +249,6 @@
<item>6</item>
<item>8</item>
<item>10</item>
- <item>0</item>
</string-array>
<!-- Entries in the ListPreference for alert reminder intervals. [CHAR LIMIT=30] -->
diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml
index 8d3b1fa..3eb422e 100644
--- a/res/xml/preferences.xml
+++ b/res/xml/preferences.xml
@@ -47,8 +47,8 @@
<ListPreference android:key="alert_sound_duration"
android:title="@string/alert_sound_duration_title"
- android:entries="@array/alert_sound_duration_entries"
- android:entryValues="@array/alert_sound_duration_values"
+ android:entries="@array/cm_alert_sound_duration_entries"
+ android:entryValues="@array/cm_alert_sound_duration_values"
android:defaultValue="4"
android:dialogTitle="@string/alert_sound_duration_title" />