summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorPrzemyslaw Szczepaniak <pszczepaniak@google.com>2013-08-02 17:06:41 +0100
committerPrzemyslaw Szczepaniak <pszczepaniak@google.com>2013-08-05 10:55:07 +0100
commit4c85c1d6f4e97f33e03a8f28f882d7a4110b8f88 (patch)
tree64123ce16d0ff128b64a68581868760b3c9f6809 /res
parent2500f7a3f5d7a313b8e47129bf8cc7cba3113cb7 (diff)
downloadpackages_apps_Settings-4c85c1d6f4e97f33e03a8f28f882d7a4110b8f88.tar.gz
packages_apps_Settings-4c85c1d6f4e97f33e03a8f28f882d7a4110b8f88.tar.bz2
packages_apps_Settings-4c85c1d6f4e97f33e03a8f28f882d7a4110b8f88.zip
Disable TTS "Listen to the example" if not supported
If current TTS locale (most of the cases same as device locale) is not supported by the TTS engine, field for setting synthesis speed and "Listen to the example" will be disabled. Added new field, "Default language status" to indicate level of support for currently selected language. It can take one of three messages: %s is fully supported %s requires network connection %s is not supported Where %s is locale display name. Added example string that will provide a fallback for example text if not provided by Settings or TTS engine. Change-Id: Ia2a920a71197a85d3812fc8df9dfed4ebe6b515f Bug: 9982002
Diffstat (limited to 'res')
-rw-r--r--res/values/strings.xml15
-rw-r--r--res/xml/tts_settings.xml5
2 files changed, 20 insertions, 0 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index b7973408e..49a888bea 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -3560,6 +3560,21 @@
<!-- Warning message about required internet conectivity for TTS synthesis, displayed as a dialog
message when the user selects to play an example for network only locale and there's no internet connectivity. -->
<string name="tts_engine_network_required">This language requires a working network connection for text-to-speech output.</string>
+ <!-- Text spoken by the TTS engine as an example if the engine doesn't provide sample text [CHAR LIMIT=100] -->
+ <string name="tts_default_sample_string">This is an example of speech synthesis</string>
+ <!-- On main TTS Settings screen, title of a field explaining current TTS engine status for
+ current default language [CHAR LIMIT=50] -->
+ <string name="tts_status_title">Default language status</string>
+ <!-- On main TTS Settings screen, current TTS engine status for the current default language,
+ selected language is fully supported by the engine [CHAR LIMIT=150]-->
+ <string name="tts_status_ok"><xliff:g id="locale" example="English (United States)">%1$s</xliff:g> is fully supported</string>
+ <!-- On main TTS Settings screen, current TTS engine status for the current default language,
+ selected language is supported by the engine only if there's a working network connection
+ [CHAR LIMIT=150]-->
+ <string name="tts_status_requires_network"><xliff:g id="locale" example="English (United States)">%1$s</xliff:g> requires network connection</string>
+ <!-- On main TTS Settings screen, current TTS engine status for the current default language,
+ selected language is not supported by the engine [CHAR LIMIT=150]-->
+ <string name="tts_status_not_supported"><xliff:g id="locale" example="English (United States)">%1$s</xliff:g> is not supported</string>
<!-- On main TTS Settings screen, text for divider under which all TTS engines are listed -->
<string name="tts_engines_section">Engines</string>
<!-- On main TTS Settings screen, text preceded by the TTS engine name, clicking this button will launch the engine settings -->
diff --git a/res/xml/tts_settings.xml b/res/xml/tts_settings.xml
index 2b145d188..ab132df9e 100644
--- a/res/xml/tts_settings.xml
+++ b/res/xml/tts_settings.xml
@@ -37,4 +37,9 @@
android:persistent="false"
android:title="@string/tts_play_example_title"
android:summary="@string/tts_play_example_summary" />
+
+ <Preference android:key="tts_status"
+ style="?android:attr/preferenceInformationStyle"
+ android:persistent="false"
+ android:title="@string/tts_status_title"/>
</PreferenceScreen>