From bfcc5953078bcc638d69b9d32f6d0252a3d62702 Mon Sep 17 00:00:00 2001 From: Ben Murdoch Date: Tue, 12 Jul 2011 14:20:12 +0100 Subject: Merge Chromium at r12.0.742.93: Update auto-fill regular expressions. See diff from last update here: http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/autofill/autofill_resources.grd?r1=75368&r2=82248 Change-Id: I521c098932dfcfcb728ed2d96afd22b7926e88e9 --- core/res/res/values/strings.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index 97a8c0b20501..145c34b5d1cb 100755 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -2038,13 +2038,13 @@ phone|telefonnummer|telefono|teléfono|telfixe|電話|telefone|telemovel|телефон|电话 - area code + area.*code|acode|area - ^-$|\\)$|prefix|preselection|ddd + prefix|preselection|ddd - ^-$|suffix + suffix ext|ramal @@ -2077,10 +2077,10 @@ country.*code|ccode|_cc - ^\($ + ^\\($ - ^-$|^\)$ + ^-$|^\\)$ ^-$ -- cgit v1.2.3-59-g8ed1b From 06da76bd2d1bfaf8000f6679ffd49d801ecf482a Mon Sep 17 00:00:00 2001 From: Ben Murdoch Date: Mon, 11 Jul 2011 11:17:10 +0100 Subject: Add missing auto-fill strings. These strings had a defintion native side, but no corresponding definition java side which would lead to a crash. Strings taken from chrome/app/generated_resources.grd - see http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/generated_resources.grd?r1=75912&r2=76117&pathrev=88489 Also note that credit_card_number_preview_format is no longer needed. See also change Ib861245e26197938bb2c5cf0f99c1d797ab0fbf2 Change-Id: I829b5d24e6f9a04211ee91c3f670c8659c004cd9 --- core/java/android/webkit/L10nUtils.java | 13 ++++++++++- core/res/res/values/strings.xml | 38 ++++++++++++++++++++++++++++++--- 2 files changed, 47 insertions(+), 4 deletions(-) diff --git a/core/java/android/webkit/L10nUtils.java b/core/java/android/webkit/L10nUtils.java index f9d0067d96ea..a1c6a539d788 100644 --- a/core/java/android/webkit/L10nUtils.java +++ b/core/java/android/webkit/L10nUtils.java @@ -75,7 +75,18 @@ public class L10nUtils { com.android.internal.R.string.autofill_area_code_notext_re, // IDS_AUTOFILL_AREA_CODE_NOTEXT_RE com.android.internal.R.string.autofill_phone_prefix_separator_re, // IDS_AUTOFILL_PHONE_PREFIX_SEPARATOR_RE com.android.internal.R.string.autofill_phone_suffix_separator_re, // IDS_AUTOFILL_PHONE_SUFFIX_SEPARATOR_RE - com.android.internal.R.string.credit_card_number_preview_format // IDS_CREDIT_CARD_NUMBER_PREVIEW_FORMAT + com.android.internal.R.string.autofill_province, // IDS_AUTOFILL_DIALOG_PROVINCE + com.android.internal.R.string.autofill_postal_code, // IDS_AUTOFILL_DIALOG_POSTAL_CODE + com.android.internal.R.string.autofill_state, // IDS_AUTOFILL_DIALOG_STATE + com.android.internal.R.string.autofill_zip_code, // IDS_AUTOFILL_DIALOG_ZIP_CODE + com.android.internal.R.string.autofill_county, // IDS_AUTOFILL_DIALOG_COUNTY + com.android.internal.R.string.autofill_island, // IDS_AUTOFILL_DIALOG_ISLAND + com.android.internal.R.string.autofill_district, // IDS_AUTOFILL_DIALOG_DISTRICT + com.android.internal.R.string.autofill_department, // IDS_AUTOFILL_DIALOG_DEPARTMENT + com.android.internal.R.string.autofill_prefecture, // IDS_AUTOFILL_DIALOG_PREFECTURE + com.android.internal.R.string.autofill_parish, // IDS_AUTOFILL_DIALOG_PARISH + com.android.internal.R.string.autofill_area, // IDS_AUTOFILL_DIALOG_AREA + com.android.internal.R.string.autofill_emirate // IDS_AUTOFILL_DIALOG_EMIRATE }; private static Context mApplicationContext; diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index 145c34b5d1cb..70c204e222ca 100755 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -2085,9 +2085,41 @@ ^-$ - - - $1 + + Province + + + Postal code + + + State + + + ZIP code + + + County + + + Island + + + District + + + Department + + + Prefecture + + + Parish + + + Area + + + Emirate -- cgit v1.2.3-59-g8ed1b