From 188ca778702938d87313592175a3c2ff86bd3218 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Thu, 11 Jun 2009 18:16:15 -0700 Subject: 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. --- res/values/arrays.xml | 14 ++++---------- res/values/strings.xml | 4 ++++ 2 files changed, 8 insertions(+), 10 deletions(-) (limited to 'res') 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 @@ All - - - - + + + + MM-dd-yyyy - dd-MM-yyyy - - MMM d, yyyy - - d-MMM-yyyy - yyyy-MM-dd 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 @@ MM/dd/yyyy + + Normal (%s) + Preview: -- cgit v1.1