summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2009-09-02 15:15:33 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2009-09-02 15:48:32 -0700
commite8e23db7072c201435493e4a5e8af5ab89733aeb (patch)
tree4e212c7e9803486a10e7a8c03dc9f252890696dc /res
parentab6552c3f01f893ca927fc8ef0fec95a6c8f178f (diff)
downloadpackages_apps_settings-e8e23db7072c201435493e4a5e8af5ab89733aeb.zip
packages_apps_settings-e8e23db7072c201435493e4a5e8af5ab89733aeb.tar.gz
packages_apps_settings-e8e23db7072c201435493e4a5e8af5ab89733aeb.tar.bz2
Fix bug 2088099 where the TTS example doesn't play in the Settings app
when the UI is in Japanese. Rewrite of the initialization of the default language in the TTS Settings. The previous implementation had the following issues: - the "Listen to an example" didn't use the default settings - the string used for the example didn't match the selected language (this was in order to not imply that TTS is doing translation, but that proved confusing to users). The language initialization is now implemented in initDefaultLang() and ensures that the default locale is one supported in the array of available locales. The speech rate is also initialized from the settings or the default rate (if no value was stored in the settings).
Diffstat (limited to 'res')
-rw-r--r--res/values/arrays.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index 6ec90ca..82f7d5e 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -129,6 +129,15 @@
<item>ita-ITA</item>
<item>spa-ESP</item>
</string-array>
+ <!-- Do not translate. -->
+ <string-array name="tts_demo_strings">
+ <item>This is an example of speech synthesis in English.</item>
+ <item>This is an example of speech synthesis in English.</item>
+ <item>Voici un échantillon de synthèse vocale en français.</item>
+ <item>Dies ist ein Beispiel für Sprachsynthese in Deutsch.</item>
+ <item>Questo è un esempio di sintesi vocale in italiano.</item>
+ <item>Este es un ejemplo de síntesis de voz en español.</item>
+ </string-array>
<!-- Wi-Fi settings -->