diff --git a/core/java/android/text/format/DateFormat.java b/core/java/android/text/format/DateFormat.java
index 963f42967db39..3d10f171538c5 100644
--- a/core/java/android/text/format/DateFormat.java
+++ b/core/java/android/text/format/DateFormat.java
@@ -262,16 +262,65 @@ public class DateFormat {
/**
* Returns a {@link java.text.DateFormat} object that can format the date
* in short form (such as 12/31/1999) according
- * to the current locale.
+ * to the current locale and the user's date-order preference.
* @param context the application context
* @return the {@link java.text.DateFormat} object that properly formats the date.
*/
public static final java.text.DateFormat getDateFormat(Context context) {
+ String value = Settings.System.getString(context.getContentResolver(),
+ Settings.System.DATE_FORMAT);
+
+ return getDateFormatForSetting(context, value);
+ }
+
+ /**
+ * Returns a {@link java.text.DateFormat} object to format the date
+ * as if the date format setting were set to value,
+ * including null to use the locale's default format.
+ * @param context the application context
+ * @param value the date format setting string to interpret for
+ * the current locale
+ * @hide
+ */
+ public static java.text.DateFormat getDateFormatForSetting(Context context,
+ String value) {
+ if (value != null) {
+ int month = value.indexOf('M');
+ int day = value.indexOf('d');
+ int year = value.indexOf('y');
+
+ if (month >= 0 && day >= 0 && year >= 0) {
+ String template = context.getString(R.string.numeric_date_template);
+ if (year < month) {
+ if (month < day) {
+ value = String.format(template, "yyyy", "MM", "dd");
+ } else {
+ value = String.format(template, "yyyy", "dd", "MM");
+ }
+ } else if (month < day) {
+ if (day < year) {
+ value = String.format(template, "MM", "dd", "yyyy");
+ } else { // unlikely
+ value = String.format(template, "MM", "yyyy", "dd");
+ }
+ } else { // day < month
+ if (month < year) {
+ value = String.format(template, "dd", "MM", "yyyy");
+ } else { // unlikely
+ value = String.format(template, "dd", "yyyy", "MM");
+ }
+ }
+
+ return new java.text.SimpleDateFormat(value);
+ }
+ }
+
/*
+ * The setting is not set; use the default.
* We use a resource string here instead of just DateFormat.SHORT
* so that we get a four-digit year instead a two-digit year.
*/
- String value = context.getString(R.string.numeric_date_format);
+ value = context.getString(R.string.numeric_date_format);
return new java.text.SimpleDateFormat(value);
}
diff --git a/core/res/res/values-ar-rEG/donottranslate-cldr.xml b/core/res/res/values-ar-rEG/donottranslate-cldr.xml
index 02c098a06f156..4826a41179c97 100644
--- a/core/res/res/values-ar-rEG/donottranslate-cldr.xml
+++ b/core/res/res/values-ar-rEG/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%-e/%-m/%Y
d/M/yyyy
+ "%s/%s/%s"
%-e %B، %Y
%-l:%M:%S %p
%-l:%M:%S %p %d/%m/%Y
diff --git a/core/res/res/values-bg-rBG/donottranslate-cldr.xml b/core/res/res/values-bg-rBG/donottranslate-cldr.xml
index 2ba7ba21e81e6..010b97459250e 100644
--- a/core/res/res/values-bg-rBG/donottranslate-cldr.xml
+++ b/core/res/res/values-bg-rBG/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%d.%m.%Y
dd.MM.yyyy
+ "%s.%s.%s"
%d %B %Y
%H:%M:%S
%H:%M:%S %d.%m.%Y
diff --git a/core/res/res/values-ca-rES/donottranslate-cldr.xml b/core/res/res/values-ca-rES/donottranslate-cldr.xml
index 23c15082b62c5..4eabba7701873 100644
--- a/core/res/res/values-ca-rES/donottranslate-cldr.xml
+++ b/core/res/res/values-ca-rES/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%d/%m/%Y
dd/MM/yyyy
+ "%s/%s/%s"
%-e de %B de %Y
%-k:%M:%S
%-k:%M:%S %d/%m/%Y
diff --git a/core/res/res/values-cs-rCZ/donottranslate-cldr.xml b/core/res/res/values-cs-rCZ/donottranslate-cldr.xml
index 38e6a1416b37e..0670080aa5e9c 100644
--- a/core/res/res/values-cs-rCZ/donottranslate-cldr.xml
+++ b/core/res/res/values-cs-rCZ/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%-e.%-m.%Y
d.M.yyyy
+ "%s.%s.%s"
%-e. %B %Y
%-k:%M:%S
%-k:%M:%S %-e.%-m.%Y
diff --git a/core/res/res/values-cs/donottranslate-cldr.xml b/core/res/res/values-cs/donottranslate-cldr.xml
index 38e6a1416b37e..0670080aa5e9c 100644
--- a/core/res/res/values-cs/donottranslate-cldr.xml
+++ b/core/res/res/values-cs/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%-e.%-m.%Y
d.M.yyyy
+ "%s.%s.%s"
%-e. %B %Y
%-k:%M:%S
%-k:%M:%S %-e.%-m.%Y
diff --git a/core/res/res/values-da-rDK/donottranslate-cldr.xml b/core/res/res/values-da-rDK/donottranslate-cldr.xml
index 9e525a0feca2b..4a2a6563cff30 100644
--- a/core/res/res/values-da-rDK/donottranslate-cldr.xml
+++ b/core/res/res/values-da-rDK/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
HH.mm
%d/%m/%Y
dd/MM/yyyy
+ "%s/%s/%s"
%-e. %b %Y
%H.%M.%S
%H.%M.%S %d/%m/%Y
diff --git a/core/res/res/values-de-rAT/donottranslate-cldr.xml b/core/res/res/values-de-rAT/donottranslate-cldr.xml
index d90da70d52303..e6112ba6850ac 100644
--- a/core/res/res/values-de-rAT/donottranslate-cldr.xml
+++ b/core/res/res/values-de-rAT/donottranslate-cldr.xml
@@ -65,6 +65,7 @@
H:mm
%d.%m.%Y
dd.MM.yyyy
+ "%s.%s.%s"
%d. %B %Y
%H:%M:%S
%H:%M:%S %d.%m.%Y
diff --git a/core/res/res/values-de-rCH/donottranslate-cldr.xml b/core/res/res/values-de-rCH/donottranslate-cldr.xml
index 9e057895a369f..b611c08463e70 100644
--- a/core/res/res/values-de-rCH/donottranslate-cldr.xml
+++ b/core/res/res/values-de-rCH/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%d.%m.%Y
dd.MM.yyyy
+ "%s.%s.%s"
%-e. %B %Y
%H:%M:%S
%H:%M:%S %d.%m.%Y
diff --git a/core/res/res/values-de-rDE/donottranslate-cldr.xml b/core/res/res/values-de-rDE/donottranslate-cldr.xml
index 9e057895a369f..b611c08463e70 100644
--- a/core/res/res/values-de-rDE/donottranslate-cldr.xml
+++ b/core/res/res/values-de-rDE/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%d.%m.%Y
dd.MM.yyyy
+ "%s.%s.%s"
%-e. %B %Y
%H:%M:%S
%H:%M:%S %d.%m.%Y
diff --git a/core/res/res/values-de-rLI/donottranslate-cldr.xml b/core/res/res/values-de-rLI/donottranslate-cldr.xml
index 9e057895a369f..b611c08463e70 100644
--- a/core/res/res/values-de-rLI/donottranslate-cldr.xml
+++ b/core/res/res/values-de-rLI/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%d.%m.%Y
dd.MM.yyyy
+ "%s.%s.%s"
%-e. %B %Y
%H:%M:%S
%H:%M:%S %d.%m.%Y
diff --git a/core/res/res/values-de/donottranslate-cldr.xml b/core/res/res/values-de/donottranslate-cldr.xml
index 9e057895a369f..b611c08463e70 100644
--- a/core/res/res/values-de/donottranslate-cldr.xml
+++ b/core/res/res/values-de/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%d.%m.%Y
dd.MM.yyyy
+ "%s.%s.%s"
%-e. %B %Y
%H:%M:%S
%H:%M:%S %d.%m.%Y
diff --git a/core/res/res/values-el-rGR/donottranslate-cldr.xml b/core/res/res/values-el-rGR/donottranslate-cldr.xml
index 088019021ebad..f76281a224b5a 100644
--- a/core/res/res/values-el-rGR/donottranslate-cldr.xml
+++ b/core/res/res/values-el-rGR/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%d/%m/%Y
dd/MM/yyyy
+ "%s/%s/%s"
%d %B %Y
%-l:%M:%S %p
%-l:%M:%S %p %d %b %Y
diff --git a/core/res/res/values-en-rAU/donottranslate-cldr.xml b/core/res/res/values-en-rAU/donottranslate-cldr.xml
index 903a36c8b248e..223a22be337e4 100644
--- a/core/res/res/values-en-rAU/donottranslate-cldr.xml
+++ b/core/res/res/values-en-rAU/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
HH:mm
%-e/%m/%Y
d/MM/yyyy
+ "%s/%s/%s"
%-e %B %Y
%-l:%M:%S %p
%d/%m/%Y, %-l:%M:%S %p
diff --git a/core/res/res/values-en-rCA/donottranslate-cldr.xml b/core/res/res/values-en-rCA/donottranslate-cldr.xml
index 8f8097c5f46bd..32fa2b03a62ed 100644
--- a/core/res/res/values-en-rCA/donottranslate-cldr.xml
+++ b/core/res/res/values-en-rCA/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
HH:mm
%Y-%m-%d
yyyy-MM-dd
+ "%s-%s-%s"
%B %-e, %Y
%-l:%M:%S %p
%Y-%m-%d, %-l:%M:%S %p
diff --git a/core/res/res/values-en-rGB/donottranslate-cldr.xml b/core/res/res/values-en-rGB/donottranslate-cldr.xml
index b2182f5c20b18..b90112fc82600 100644
--- a/core/res/res/values-en-rGB/donottranslate-cldr.xml
+++ b/core/res/res/values-en-rGB/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
HH:mm
%d/%m/%Y
dd/MM/yyyy
+ "%s/%s/%s"
%-e %B %Y
%H:%M:%S
%-e %b %Y, %H:%M:%S
diff --git a/core/res/res/values-en-rIE/donottranslate-cldr.xml b/core/res/res/values-en-rIE/donottranslate-cldr.xml
index fd0001aabc274..4143da521e028 100644
--- a/core/res/res/values-en-rIE/donottranslate-cldr.xml
+++ b/core/res/res/values-en-rIE/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
HH:mm
%d/%m/%Y
dd/MM/yyyy
+ "%s/%s/%s"
%-e %B %Y
%H:%M:%S
%-e %b %Y, %H:%M:%S
diff --git a/core/res/res/values-en-rIN/donottranslate-cldr.xml b/core/res/res/values-en-rIN/donottranslate-cldr.xml
index ba3f94e674973..6522d6776ee9a 100644
--- a/core/res/res/values-en-rIN/donottranslate-cldr.xml
+++ b/core/res/res/values-en-rIN/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
HH:mm
%d/%m/%Y
dd/MM/yyyy
+ "%s/%s/%s"
%-e %B %Y
%-l:%M:%S %p
%d-%b-%Y, %-l:%M:%S %p
diff --git a/core/res/res/values-en-rNZ/donottranslate-cldr.xml b/core/res/res/values-en-rNZ/donottranslate-cldr.xml
index ab713459a9e8b..d29455a0f177a 100644
--- a/core/res/res/values-en-rNZ/donottranslate-cldr.xml
+++ b/core/res/res/values-en-rNZ/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
HH:mm
%-e/%m/%Y
d/MM/yyyy
+ "%s/%s/%s"
%-e %B %Y
%-l:%M:%S %p
%-e/%m/%Y, %-l:%M:%S %p
diff --git a/core/res/res/values-en-rSG/donottranslate-cldr.xml b/core/res/res/values-en-rSG/donottranslate-cldr.xml
index 2e87deeab9363..56c58e2444c02 100644
--- a/core/res/res/values-en-rSG/donottranslate-cldr.xml
+++ b/core/res/res/values-en-rSG/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
HH:mm
%-m/%-e/%Y
M/d/yyyy
+ "%s/%s/%s"
%B %-e, %Y
%-l:%M:%S %p
%b %-e, %Y, %-l:%M:%S %p
diff --git a/core/res/res/values-en-rUS/donottranslate-cldr.xml b/core/res/res/values-en-rUS/donottranslate-cldr.xml
index 2e87deeab9363..56c58e2444c02 100644
--- a/core/res/res/values-en-rUS/donottranslate-cldr.xml
+++ b/core/res/res/values-en-rUS/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
HH:mm
%-m/%-e/%Y
M/d/yyyy
+ "%s/%s/%s"
%B %-e, %Y
%-l:%M:%S %p
%b %-e, %Y, %-l:%M:%S %p
diff --git a/core/res/res/values-en-rZA/donottranslate-cldr.xml b/core/res/res/values-en-rZA/donottranslate-cldr.xml
index 011e56e8ef92b..e1aac04663469 100644
--- a/core/res/res/values-en-rZA/donottranslate-cldr.xml
+++ b/core/res/res/values-en-rZA/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
HH:mm
%Y/%m/%d
yyyy/MM/dd
+ "%s/%s/%s"
%d %B %Y
%-l:%M:%S %p
%d %b %Y, %-l:%M:%S %p
diff --git a/core/res/res/values-es-rES/donottranslate-cldr.xml b/core/res/res/values-es-rES/donottranslate-cldr.xml
index 590a21e1b271d..b5162917023fe 100644
--- a/core/res/res/values-es-rES/donottranslate-cldr.xml
+++ b/core/res/res/values-es-rES/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%d/%m/%Y
dd/MM/yyyy
+ "%s/%s/%s"
%-e de %B de %Y
%H:%M:%S
%H:%M:%S %d/%m/%Y
diff --git a/core/res/res/values-es-rUS/donottranslate-cldr.xml b/core/res/res/values-es-rUS/donottranslate-cldr.xml
index bf61cd045cade..587a615c79d71 100644
--- a/core/res/res/values-es-rUS/donottranslate-cldr.xml
+++ b/core/res/res/values-es-rUS/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%-m/%-e/%Y
M/d/yyyy
+ "%s/%s/%s"
%-e de %B de %Y
%-l:%M:%S %p
%-l:%M:%S %p %b %-e, %Y
diff --git a/core/res/res/values-es/donottranslate-cldr.xml b/core/res/res/values-es/donottranslate-cldr.xml
index 590a21e1b271d..b5162917023fe 100644
--- a/core/res/res/values-es/donottranslate-cldr.xml
+++ b/core/res/res/values-es/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%d/%m/%Y
dd/MM/yyyy
+ "%s/%s/%s"
%-e de %B de %Y
%H:%M:%S
%H:%M:%S %d/%m/%Y
diff --git a/core/res/res/values-fi-rFI/donottranslate-cldr.xml b/core/res/res/values-fi-rFI/donottranslate-cldr.xml
index fe140d337d9c4..40cda53a1eafa 100644
--- a/core/res/res/values-fi-rFI/donottranslate-cldr.xml
+++ b/core/res/res/values-fi-rFI/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H.mm
%-e.%-m.%Y
d.M.yyyy
+ "%s.%s.%s"
%-e. %B %Y
%-k.%M.%S
%-k.%M.%S %-e.%-m.%Y
diff --git a/core/res/res/values-fr-rBE/donottranslate-cldr.xml b/core/res/res/values-fr-rBE/donottranslate-cldr.xml
index b7ec69a3a1e89..0795cc5229b63 100644
--- a/core/res/res/values-fr-rBE/donottranslate-cldr.xml
+++ b/core/res/res/values-fr-rBE/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%-e/%m/%Y
d/MM/yyyy
+ "%s/%s/%s"
%-e %B %Y
%H:%M:%S
%H:%M:%S %-e %b %Y
diff --git a/core/res/res/values-fr-rCA/donottranslate-cldr.xml b/core/res/res/values-fr-rCA/donottranslate-cldr.xml
index d4033b5a271d7..7802ee04eb76d 100644
--- a/core/res/res/values-fr-rCA/donottranslate-cldr.xml
+++ b/core/res/res/values-fr-rCA/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%Y-%m-%d
yyyy-MM-dd
+ "%s-%s-%s"
%-e %B %Y
%H:%M:%S
%H:%M:%S %Y-%m-%d
diff --git a/core/res/res/values-fr-rCH/donottranslate-cldr.xml b/core/res/res/values-fr-rCH/donottranslate-cldr.xml
index a330cd2fd3ebe..bbda44a643373 100644
--- a/core/res/res/values-fr-rCH/donottranslate-cldr.xml
+++ b/core/res/res/values-fr-rCH/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%d.%m.%Y
dd.MM.yyyy
+ "%s.%s.%s"
%-e %B %Y
%H:%M:%S
%H:%M:%S %-e %b %Y
diff --git a/core/res/res/values-fr-rFR/donottranslate-cldr.xml b/core/res/res/values-fr-rFR/donottranslate-cldr.xml
index 0ee65c91d65a8..76d41411038e4 100644
--- a/core/res/res/values-fr-rFR/donottranslate-cldr.xml
+++ b/core/res/res/values-fr-rFR/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%d/%m/%Y
dd/MM/yyyy
+ "%s/%s/%s"
%-e %B %Y
%H:%M:%S
%H:%M:%S %-e %b %Y
diff --git a/core/res/res/values-fr/donottranslate-cldr.xml b/core/res/res/values-fr/donottranslate-cldr.xml
index 0ee65c91d65a8..76d41411038e4 100644
--- a/core/res/res/values-fr/donottranslate-cldr.xml
+++ b/core/res/res/values-fr/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%d/%m/%Y
dd/MM/yyyy
+ "%s/%s/%s"
%-e %B %Y
%H:%M:%S
%H:%M:%S %-e %b %Y
diff --git a/core/res/res/values-he-rIL/donottranslate-cldr.xml b/core/res/res/values-he-rIL/donottranslate-cldr.xml
index 3b0f499aa098f..1c8a6f75372c5 100644
--- a/core/res/res/values-he-rIL/donottranslate-cldr.xml
+++ b/core/res/res/values-he-rIL/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%d/%m/%Y
dd/MM/yyyy
+ "%s/%s/%s"
%-e ב%B %Y
%H:%M:%S
%H:%M:%S %-e.%-m.%Y
diff --git a/core/res/res/values-hi-rIN/donottranslate-cldr.xml b/core/res/res/values-hi-rIN/donottranslate-cldr.xml
index 476c4e163778a..ba4ded7193561 100644
--- a/core/res/res/values-hi-rIN/donottranslate-cldr.xml
+++ b/core/res/res/values-hi-rIN/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%-e-%-m-%Y
d-M-yyyy
+ "%s-%s-%s"
%-e %B %Y
%-l:%M:%S %p
%-l:%M:%S %p %d-%m-%Y
diff --git a/core/res/res/values-hu-rHU/donottranslate-cldr.xml b/core/res/res/values-hu-rHU/donottranslate-cldr.xml
index b2119c62a7edc..8dcb426a0b6f7 100644
--- a/core/res/res/values-hu-rHU/donottranslate-cldr.xml
+++ b/core/res/res/values-hu-rHU/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
HH:mm
%Y.%m.%d.
yyyy.MM.dd.
+ "%s.%s.%s."
%Y. %B %-e.
%-k:%M:%S
%-k:%M:%S %Y.%m.%d.
diff --git a/core/res/res/values-id-rID/donottranslate-cldr.xml b/core/res/res/values-id-rID/donottranslate-cldr.xml
index 4402b1ea17ff2..feac981e50b9c 100644
--- a/core/res/res/values-id-rID/donottranslate-cldr.xml
+++ b/core/res/res/values-id-rID/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%d/%m/%Y
dd/MM/yyyy
+ "%s/%s/%s"
%-e %B %Y
%H:%M:%S
%H:%M:%S %-e %b %Y
diff --git a/core/res/res/values-it-rCH/donottranslate-cldr.xml b/core/res/res/values-it-rCH/donottranslate-cldr.xml
index 251bd9beef086..6b76f8ea822d8 100644
--- a/core/res/res/values-it-rCH/donottranslate-cldr.xml
+++ b/core/res/res/values-it-rCH/donottranslate-cldr.xml
@@ -93,6 +93,7 @@
HH:mm
%d.%m.%Y
dd.MM.yyyy
+ "%s.%s.%s"
%-e %B %Y
%H.%M.%S
%H.%M.%S %-e-%b-%Y
diff --git a/core/res/res/values-it-rIT/donottranslate-cldr.xml b/core/res/res/values-it-rIT/donottranslate-cldr.xml
index 754558109ca28..929f8995c441c 100644
--- a/core/res/res/values-it-rIT/donottranslate-cldr.xml
+++ b/core/res/res/values-it-rIT/donottranslate-cldr.xml
@@ -93,6 +93,7 @@
HH:mm
%d/%m/%Y
dd/MM/yyyy
+ "%s/%s/%s"
%d %B %Y
%H.%M.%S
%H.%M.%S %d/%b/%Y
diff --git a/core/res/res/values-it/donottranslate-cldr.xml b/core/res/res/values-it/donottranslate-cldr.xml
index 754558109ca28..929f8995c441c 100644
--- a/core/res/res/values-it/donottranslate-cldr.xml
+++ b/core/res/res/values-it/donottranslate-cldr.xml
@@ -93,6 +93,7 @@
HH:mm
%d/%m/%Y
dd/MM/yyyy
+ "%s/%s/%s"
%d %B %Y
%H.%M.%S
%H.%M.%S %d/%b/%Y
diff --git a/core/res/res/values-ja-rJP/donottranslate-cldr.xml b/core/res/res/values-ja-rJP/donottranslate-cldr.xml
index 3d0531e177256..ae07433058794 100644
--- a/core/res/res/values-ja-rJP/donottranslate-cldr.xml
+++ b/core/res/res/values-ja-rJP/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%Y/%m/%d
yyyy/MM/dd
+ "%s/%s/%s"
%Y年%-m月%-e日
%-k:%M:%S
%-k:%M:%S %Y/%m/%d
diff --git a/core/res/res/values-ja/donottranslate-cldr.xml b/core/res/res/values-ja/donottranslate-cldr.xml
index 3d0531e177256..ae07433058794 100644
--- a/core/res/res/values-ja/donottranslate-cldr.xml
+++ b/core/res/res/values-ja/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%Y/%m/%d
yyyy/MM/dd
+ "%s/%s/%s"
%Y年%-m月%-e日
%-k:%M:%S
%-k:%M:%S %Y/%m/%d
diff --git a/core/res/res/values-ko-rKR/donottranslate-cldr.xml b/core/res/res/values-ko-rKR/donottranslate-cldr.xml
index b46d9cd69e1fa..4ec1ba49c4290 100644
--- a/core/res/res/values-ko-rKR/donottranslate-cldr.xml
+++ b/core/res/res/values-ko-rKR/donottranslate-cldr.xml
@@ -86,6 +86,7 @@
H:mm
%Y. %-m. %-e.
yyyy. M. d.
+ "%s. %s. %s."
%Y년 %-m월 %-e일
%p %-l:%M:%S
%p %-l:%M:%S %Y. %-m. %-e.
diff --git a/core/res/res/values-ko/donottranslate-cldr.xml b/core/res/res/values-ko/donottranslate-cldr.xml
index b46d9cd69e1fa..4ec1ba49c4290 100644
--- a/core/res/res/values-ko/donottranslate-cldr.xml
+++ b/core/res/res/values-ko/donottranslate-cldr.xml
@@ -86,6 +86,7 @@
H:mm
%Y. %-m. %-e.
yyyy. M. d.
+ "%s. %s. %s."
%Y년 %-m월 %-e일
%p %-l:%M:%S
%p %-l:%M:%S %Y. %-m. %-e.
diff --git a/core/res/res/values-lt-rLT/donottranslate-cldr.xml b/core/res/res/values-lt-rLT/donottranslate-cldr.xml
index 0d1841100cb0c..17f228d04bf2a 100644
--- a/core/res/res/values-lt-rLT/donottranslate-cldr.xml
+++ b/core/res/res/values-lt-rLT/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%Y-%m-%d
yyyy-MM-dd
+ "%s-%s-%s"
%Y m. %B %-e d.
%H:%M:%S
%H:%M:%S %Y.%m.%d
diff --git a/core/res/res/values-lv-rLV/donottranslate-cldr.xml b/core/res/res/values-lv-rLV/donottranslate-cldr.xml
index 14062abaeac74..e6c3b796953bb 100644
--- a/core/res/res/values-lv-rLV/donottranslate-cldr.xml
+++ b/core/res/res/values-lv-rLV/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
HH:mm
%d.%m.%Y
dd.MM.yyyy
+ "%s.%s.%s"
%Y. gada %-e. %B
%H:%M:%S
%H:%M:%S %Y. gada %-e. %b
diff --git a/core/res/res/values-nb/donottranslate-cldr.xml b/core/res/res/values-nb/donottranslate-cldr.xml
index e7fe6af62350e..17c9b24e7564e 100644
--- a/core/res/res/values-nb/donottranslate-cldr.xml
+++ b/core/res/res/values-nb/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
HH.mm
%d.%m.%Y
dd.MM.yyyy
+ "%s.%s.%s"
%-e. %B %Y
%H.%M.%S
%H.%M.%S %-e. %b %Y
diff --git a/core/res/res/values-nl-rBE/donottranslate-cldr.xml b/core/res/res/values-nl-rBE/donottranslate-cldr.xml
index 1ff4b5a7604b5..72a4694bdb0d2 100644
--- a/core/res/res/values-nl-rBE/donottranslate-cldr.xml
+++ b/core/res/res/values-nl-rBE/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
HH:mm
%-e/%m/%Y
d/MM/yyyy
+ "%s/%s/%s"
%-e %B %Y
%H:%M:%S
%H:%M:%S %-e-%b-%Y
diff --git a/core/res/res/values-nl-rNL/donottranslate-cldr.xml b/core/res/res/values-nl-rNL/donottranslate-cldr.xml
index 581177ae3daae..549d816deccbb 100644
--- a/core/res/res/values-nl-rNL/donottranslate-cldr.xml
+++ b/core/res/res/values-nl-rNL/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
HH:mm
%d-%m-%Y
dd-MM-yyyy
+ "%s-%s-%s"
%-e %B %Y
%H:%M:%S
%H:%M:%S %-e %b %Y
diff --git a/core/res/res/values-nl/donottranslate-cldr.xml b/core/res/res/values-nl/donottranslate-cldr.xml
index 581177ae3daae..549d816deccbb 100644
--- a/core/res/res/values-nl/donottranslate-cldr.xml
+++ b/core/res/res/values-nl/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
HH:mm
%d-%m-%Y
dd-MM-yyyy
+ "%s-%s-%s"
%-e %B %Y
%H:%M:%S
%H:%M:%S %-e %b %Y
diff --git a/core/res/res/values-pl-rPL/donottranslate-cldr.xml b/core/res/res/values-pl-rPL/donottranslate-cldr.xml
index 3b00264c727bf..c4bed0d716ce9 100644
--- a/core/res/res/values-pl-rPL/donottranslate-cldr.xml
+++ b/core/res/res/values-pl-rPL/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%d-%m-%Y
dd-MM-yyyy
+ "%s-%s-%s"
%-e %B %Y
%H:%M:%S
%H:%M:%S %d-%m-%Y
diff --git a/core/res/res/values-pl/donottranslate-cldr.xml b/core/res/res/values-pl/donottranslate-cldr.xml
index 3b00264c727bf..c4bed0d716ce9 100644
--- a/core/res/res/values-pl/donottranslate-cldr.xml
+++ b/core/res/res/values-pl/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%d-%m-%Y
dd-MM-yyyy
+ "%s-%s-%s"
%-e %B %Y
%H:%M:%S
%H:%M:%S %d-%m-%Y
diff --git a/core/res/res/values-pt-rBR/donottranslate-cldr.xml b/core/res/res/values-pt-rBR/donottranslate-cldr.xml
index b2ee7c7c2fdbb..7b3304c88273a 100644
--- a/core/res/res/values-pt-rBR/donottranslate-cldr.xml
+++ b/core/res/res/values-pt-rBR/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H'h'mm
%d/%m/%Y
dd/MM/yyyy
+ "%s/%s/%s"
%-e de %B de %Y
%H:%M:%S
%H:%M:%S %d/%m/%Y
diff --git a/core/res/res/values-pt-rPT/donottranslate-cldr.xml b/core/res/res/values-pt-rPT/donottranslate-cldr.xml
index 16f7cd8f701f3..b14dbcb084832 100644
--- a/core/res/res/values-pt-rPT/donottranslate-cldr.xml
+++ b/core/res/res/values-pt-rPT/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H'h'mm
%d/%m/%Y
dd/MM/yyyy
+ "%s/%s/%s"
%-e de %B de %Y
%H:%M:%S
%H:%M:%S %-e de %b de %Y
diff --git a/core/res/res/values-pt/donottranslate-cldr.xml b/core/res/res/values-pt/donottranslate-cldr.xml
index b2ee7c7c2fdbb..7b3304c88273a 100644
--- a/core/res/res/values-pt/donottranslate-cldr.xml
+++ b/core/res/res/values-pt/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H'h'mm
%d/%m/%Y
dd/MM/yyyy
+ "%s/%s/%s"
%-e de %B de %Y
%H:%M:%S
%H:%M:%S %d/%m/%Y
diff --git a/core/res/res/values-ro-rRO/donottranslate-cldr.xml b/core/res/res/values-ro-rRO/donottranslate-cldr.xml
index a4f1097a8cd40..3672c944ef12a 100644
--- a/core/res/res/values-ro-rRO/donottranslate-cldr.xml
+++ b/core/res/res/values-ro-rRO/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%d.%m.%Y
dd.MM.yyyy
+ "%s.%s.%s"
%-e %B %Y
%H:%M:%S
%H:%M:%S, %d.%m.%Y
diff --git a/core/res/res/values-ru-rRU/donottranslate-cldr.xml b/core/res/res/values-ru-rRU/donottranslate-cldr.xml
index 64f98455b56c5..2b8c235e121be 100644
--- a/core/res/res/values-ru-rRU/donottranslate-cldr.xml
+++ b/core/res/res/values-ru-rRU/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%d.%m.%Y
dd.MM.yyyy
+ "%s.%s.%s"
%-e %B %Y г.
%-k:%M:%S
%-k:%M:%S %d.%m.%Y
diff --git a/core/res/res/values-ru/donottranslate-cldr.xml b/core/res/res/values-ru/donottranslate-cldr.xml
index 64f98455b56c5..2b8c235e121be 100644
--- a/core/res/res/values-ru/donottranslate-cldr.xml
+++ b/core/res/res/values-ru/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%d.%m.%Y
dd.MM.yyyy
+ "%s.%s.%s"
%-e %B %Y г.
%-k:%M:%S
%-k:%M:%S %d.%m.%Y
diff --git a/core/res/res/values-sk-rSK/donottranslate-cldr.xml b/core/res/res/values-sk-rSK/donottranslate-cldr.xml
index 0a1245a1ccd18..ea2a5abc39c3a 100644
--- a/core/res/res/values-sk-rSK/donottranslate-cldr.xml
+++ b/core/res/res/values-sk-rSK/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
HH:mm
%-e.%-m.%Y
d.M.yyyy
+ "%s.%s.%s"
%-e. %B %Y
%-k:%M:%S
%-k:%M:%S %-e.%-m.%Y
diff --git a/core/res/res/values-sl-rSI/donottranslate-cldr.xml b/core/res/res/values-sl-rSI/donottranslate-cldr.xml
index f16b9ea819a35..b9c30c90c66d6 100644
--- a/core/res/res/values-sl-rSI/donottranslate-cldr.xml
+++ b/core/res/res/values-sl-rSI/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%-e. %m. %Y
d. MM. yyyy
+ "%s. %s. %s"
%d. %B %Y
%H:%M:%S
%H:%M:%S %-e. %b. %Y
diff --git a/core/res/res/values-sr-rRS/donottranslate-cldr.xml b/core/res/res/values-sr-rRS/donottranslate-cldr.xml
index 1cd9d6a285eeb..f88de6b1f1e56 100644
--- a/core/res/res/values-sr-rRS/donottranslate-cldr.xml
+++ b/core/res/res/values-sr-rRS/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
HH.mm
%-e.%-m.%Y.
d.M.yyyy.
+ "%s.%s.%s."
%d. %B %Y.
%H.%M.%S
%H.%M.%S %d.%m.%Y.
diff --git a/core/res/res/values-sv-rSE/donottranslate-cldr.xml b/core/res/res/values-sv-rSE/donottranslate-cldr.xml
index ce756bb7f733a..c846719c800de 100644
--- a/core/res/res/values-sv-rSE/donottranslate-cldr.xml
+++ b/core/res/res/values-sv-rSE/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H.mm
%Y-%m-%d
yyyy-MM-dd
+ "%s-%s-%s"
%-e %B %Y
%H:%M:%S
%H:%M:%S %-e %b %Y
diff --git a/core/res/res/values-th-rTH/donottranslate-cldr.xml b/core/res/res/values-th-rTH/donottranslate-cldr.xml
index 876bb80c0a24d..53cd4d7cf0e6d 100644
--- a/core/res/res/values-th-rTH/donottranslate-cldr.xml
+++ b/core/res/res/values-th-rTH/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%-e/%-m/%Y
d/M/yyyy
+ "%s/%s/%s"
%-e %B %Y
%-k:%M:%S
%-k:%M:%S, %-e %b %Y
diff --git a/core/res/res/values-tr-rTR/donottranslate-cldr.xml b/core/res/res/values-tr-rTR/donottranslate-cldr.xml
index 6220ebae9ae10..2475b2100385b 100644
--- a/core/res/res/values-tr-rTR/donottranslate-cldr.xml
+++ b/core/res/res/values-tr-rTR/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
HH:mm
%d %m %Y
dd MM yyyy
+ "%s %s %s"
%d %B %Y
%H:%M:%S
%H:%M:%S %d %b %Y
diff --git a/core/res/res/values-uk-rUA/donottranslate-cldr.xml b/core/res/res/values-uk-rUA/donottranslate-cldr.xml
index 43eaba0c6334a..51dabd0ce6ac2 100644
--- a/core/res/res/values-uk-rUA/donottranslate-cldr.xml
+++ b/core/res/res/values-uk-rUA/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%d.%m.%Y
dd.MM.yyyy
+ "%s.%s.%s"
%-e %B %Y р.
%H:%M:%S
%H:%M:%S %-e %b %Y
diff --git a/core/res/res/values-vi-rVN/donottranslate-cldr.xml b/core/res/res/values-vi-rVN/donottranslate-cldr.xml
index b9342fb60db5a..0d9eebc8c063c 100644
--- a/core/res/res/values-vi-rVN/donottranslate-cldr.xml
+++ b/core/res/res/values-vi-rVN/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%d/%m/%Y
dd/MM/yyyy
+ "%s/%s/%s"
Ngày %d tháng %-m năm %Y
%H:%M:%S
%d-%m-%Y %H:%M:%S
diff --git a/core/res/res/values-zh-rCN/donottranslate-cldr.xml b/core/res/res/values-zh-rCN/donottranslate-cldr.xml
index 631ef1064305a..6685a7d9302c4 100644
--- a/core/res/res/values-zh-rCN/donottranslate-cldr.xml
+++ b/core/res/res/values-zh-rCN/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%Y-%-m-%-e
yyyy-M-d
+ "%s-%s-%s"
%Y年%-m月%-e日
%p%I:%M:%S
%p%I:%M:%S %Y-%-m-%-e
diff --git a/core/res/res/values-zh-rTW/donottranslate-cldr.xml b/core/res/res/values-zh-rTW/donottranslate-cldr.xml
index 631ef1064305a..6685a7d9302c4 100644
--- a/core/res/res/values-zh-rTW/donottranslate-cldr.xml
+++ b/core/res/res/values-zh-rTW/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
H:mm
%Y-%-m-%-e
yyyy-M-d
+ "%s-%s-%s"
%Y年%-m月%-e日
%p%I:%M:%S
%p%I:%M:%S %Y-%-m-%-e
diff --git a/core/res/res/values/donottranslate-cldr.xml b/core/res/res/values/donottranslate-cldr.xml
index 2e87deeab9363..56c58e2444c02 100644
--- a/core/res/res/values/donottranslate-cldr.xml
+++ b/core/res/res/values/donottranslate-cldr.xml
@@ -98,6 +98,7 @@
HH:mm
%-m/%-e/%Y
M/d/yyyy
+ "%s/%s/%s"
%B %-e, %Y
%-l:%M:%S %p
%b %-e, %Y, %-l:%M:%S %p
diff --git a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
index f6958ede6aa62..b2f3557fc3294 100644
--- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
+++ b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
@@ -609,10 +609,6 @@ class DatabaseHelper extends SQLiteOpenHelper {
loadBooleanSetting(stmt, Settings.System.ACCELEROMETER_ROTATION,
R.bool.def_accelerometer_rotation);
- // Default date format based on build
- loadSetting(stmt, Settings.System.DATE_FORMAT,
- SystemProperties.get("ro.com.android.dateformat",
- "MM-dd-yyyy"));
stmt.close();
}