summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorEric Fischer <enf@google.com>2009-06-11 18:16:15 -0700
committerEric Fischer <enf@google.com>2009-06-12 13:23:07 -0700
commit188ca778702938d87313592175a3c2ff86bd3218 (patch)
tree471fde6820641f8c5c4c6384ddff3fa9b90e2bcf /res
parent1617706d2529b2182d1a7fe2348495fb8f40bb81 (diff)
downloadpackages_apps_settings-188ca778702938d87313592175a3c2ff86bd3218.zip
packages_apps_settings-188ca778702938d87313592175a3c2ff86bd3218.tar.gz
packages_apps_settings-188ca778702938d87313592175a3c2ff86bd3218.tar.bz2
Make the Settings side of the date format settings more locale-aware.
Remove the two formats that have a spelled-out month, since applications using this setting are trying to format numeric dates. Do not forcibly set the setting the first time you go into Date & Time -- let the setting remain null if it was null before. Add a choice corresponding to null to the list of format options. It will look like "Normal (12-31-2009)" in the list, and will cause the system to use whatever numeric format the locale calls for. For the other choices, feed them to the locale-aware formatter so they will appear with the punctuation that the locale calls for.
Diffstat (limited to 'res')
-rw-r--r--res/values/arrays.xml14
-rw-r--r--res/values/strings.xml4
2 files changed, 8 insertions, 10 deletions
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index 4a60c36..06bf787 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -39,18 +39,12 @@
<item>All</item>
</string-array>
- <!-- There is a setting to control the format of dates displayed throughout the system. This is in the Date & Time Settings screen. Unfortunately, these cannot be changed at all. --> <skip />
- <!-- Do not translate. This is fed directly to the formatter. -->
- <string-array name="date_format_values">
- <!-- Do not translate. This is fed directly to the formatter. -->
+ <!-- There is a setting to control the format of dates displayed throughout the system. This is in the Date & Time Settings screen. These will be adjusted to use punctuation appropriate to the user's locale. -->
+ <string-array name="date_format_values" translatable="false">
+ <!-- The blank item means to use whatever the locale calls for. -->
+ <item></item>
<item>MM-dd-yyyy</item>
- <!-- Do not translate. This is fed directly to the formatter. -->
<item>dd-MM-yyyy</item>
- <!-- Do not translate. This is fed directly to the formatter. -->
- <item>MMM d, yyyy</item>
- <!-- Do not translate. This is fed directly to the formatter. -->
- <item>d-MMM-yyyy</item>
- <!-- Do not translate. This is fed directly to the formatter. -->
<item>yyyy-MM-dd</item>
</string-array>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 3b91ef6..d2ca51b 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -243,6 +243,10 @@
<!-- Do not translate. Used as the value for a setting. -->
<string name="default_date_format"><xliff:g id="default_date_format">MM/dd/yyyy</xliff:g></string>
+ <!-- The option in the date-format picker for using the normal format
+ called for by the user's locale. -->
+ <string name="normal_date_format">Normal (<xliff:g id="date" example="12-31-2009">%s</xliff:g>)</string>
+
<!-- Label of preview text when tweaking font size -->
<string name="display_preview_label">Preview:</string>
<!-- Label for chosen font size -->