summaryrefslogtreecommitdiff
path: root/res/values
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2016-04-28 17:34:24 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2016-06-01 16:30:57 +0000
commit03d697eebe32416a32a36b14d65dc2a2599992d9 (patch)
tree3f530efebffb22e18f37822776a7d40f63f5a56a /res/values
parentd31dc777112af835d977969c06fb4842c6193826 (diff)
downloadMediaProvider-03d697eebe32416a32a36b14d65dc2a2599992d9.tar.gz
Add support for localization of sound names in RingtonePicker
Add a cursor wrapper for queries on the names of sounds. When the string is queried for the title column, build a resource name from the value in the database, and check if a (potentially localized) resource is found. Return that one if available, return the default value if not found. Bug 28347978 Change-Id: Ic1e3bb25acf3fccb18074d40c2fc8bdc42b5c769
Diffstat (limited to 'res/values')
-rw-r--r--res/values/strings.xml26
1 files changed, 26 insertions, 0 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 1fd1c1e0c..aa836c04d 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -41,4 +41,30 @@
<!-- Title for documents backend that offers audio. [CHAR LIMIT=24] -->
<string name="root_audio">Audio</string>
+ <!-- Strings of localized sound names below:
+ VERY IMPORTANT: the lower case version of the names must match the resource
+ name as extracted from the metadata or the file name, all
+ non-alphanumeric characters are replaced by "_", each
+ resource name is preceded by "sound_name_".
+ -->
+
+ <!-- Name of alarm in the alarm sound picker: theme:motion, style:ambient tempo:flowing -->
+ <string name="sound_name_awaken">Awaken</string>
+ <!-- Name of alarm in the alarm sound picker: theme:motion, style:soft pure tones
+ tempo:initially downtempo -->
+ <string name="sound_name_bounce">Bounce</string>
+ <!-- Name of alarm in the alarm sound picker: theme:motion, style:traditional tempo:mid -->
+ <string name="sound_name_drip">Drip</string>
+ <!-- Name of alarm in the alarm sound picker: theme:motion, style:rhythmic tempo:up-tempo -->
+ <string name="sound_name_gallop">Gallop</string>
+ <!-- Name of alarm in the alarm sound picker: theme:motion, style:traditional tempo:mid -->
+ <string name="sound_name_nudge">Nudge</string>
+ <!-- Name of alarm in the alarm sound picker: theme:motion, style:traditional tempo:mid -->
+ <string name="sound_name_orbit">Orbit</string>
+ <!-- Name of alarm in the alarm sound picker: theme:motion, style:digital tempo:mid -->
+ <string name="sound_name_rise">Rise</string>
+ <!-- Name of alarm in the alarm sound picker: theme:motion, style:musical tempo:swaying -->
+ <string name="sound_name_sway">Sway</string>
+ <!-- Name of alarm in the alarm sound picker: theme:motion, style:sound design tempo:mid -->
+ <string name="sound_name_wag">Wag</string>
</resources>