summaryrefslogtreecommitdiffstats
path: root/android
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2011-02-23 14:28:33 +0000
committerBen Murdoch <benm@google.com>2011-02-28 14:09:15 +0000
commitd8e800e5cd4b5ff1c84124f27b98f9c174ec2738 (patch)
tree5381d7fd9e46da6d7c27018d73eda33b35bc7e40 /android
parenta0a75b28bb1264f9c1fe914ca7c9ef1d37198e48 (diff)
downloadexternal_chromium-d8e800e5cd4b5ff1c84124f27b98f9c174ec2738.zip
external_chromium-d8e800e5cd4b5ff1c84124f27b98f9c174ec2738.tar.gz
external_chromium-d8e800e5cd4b5ff1c84124f27b98f9c174ec2738.tar.bz2
Localise autofill regular expressions
Improve the AutoFill experience on non-English pages by reading localised regular expressions from Java instead of using hard-coded English ones. This is essentially a cherry pick of Chromium CL: http://codereview.chromium.org/6026010/ Requires a change in frameworks/base, see: I9c0544e67bf0333abcb9ea607855ff92f69bff8e Change-Id: Ie927514cae7b7390c5a291dfae4dcfe3782bb5b7
Diffstat (limited to 'android')
-rw-r--r--android/app/l10n_util.h38
1 files changed, 37 insertions, 1 deletions
diff --git a/android/app/l10n_util.h b/android/app/l10n_util.h
index 3912ff6..52b7e51 100644
--- a/android/app/l10n_util.h
+++ b/android/app/l10n_util.h
@@ -34,9 +34,45 @@
#define IDS_AUTOFILL_DIALOG_ADDRESS_SUMMARY_NAME_FORMAT 1
#define IDS_AUTOFILL_DIALOG_ADDRESS_SUMMARY_SEPARATOR 2
#define IDS_AUTOFILL_DIALOG_ADDRESS_SUMMARY_FORMAT 3
+#define IDS_AUTOFILL_ATTENTION_IGNORED_RE 4
+#define IDS_AUTOFILL_REGION_IGNORED_RE 5
+#define IDS_AUTOFILL_COMPANY_RE 6
+#define IDS_AUTOFILL_ADDRESS_LINE_1_RE 7
+#define IDS_AUTOFILL_ADDRESS_LINE_1_LABEL_RE 8
+#define IDS_AUTOFILL_ADDRESS_LINE_2_RE 9
+#define IDS_AUTOFILL_ADDRESS_LINE_3_RE 10
+#define IDS_AUTOFILL_COUNTRY_RE 11
+#define IDS_AUTOFILL_ZIP_CODE_RE 12
+#define IDS_AUTOFILL_ZIP_4_RE 13
+#define IDS_AUTOFILL_CITY_RE 14
+#define IDS_AUTOFILL_STATE_RE 15
+#define IDS_AUTOFILL_ADDRESS_TYPE_SAME_AS_RE 16
+#define IDS_AUTOFILL_ADDRESS_TYPE_USE_MY_RE 17
+#define IDS_AUTOFILL_BILLING_DESIGNATOR_RE 18
+#define IDS_AUTOFILL_SHIPPING_DESIGNATOR_RE 19
+#define IDS_AUTOFILL_EMAIL_RE 20
+#define IDS_AUTOFILL_USERNAME_RE 21
+#define IDS_AUTOFILL_NAME_RE 22
+#define IDS_AUTOFILL_NAME_SPECIFIC_RE 23
+#define IDS_AUTOFILL_FIRST_NAME_RE 24
+#define IDS_AUTOFILL_MIDDLE_INITIAL_RE 25
+#define IDS_AUTOFILL_MIDDLE_NAME_RE 26
+#define IDS_AUTOFILL_LAST_NAME_RE 27
+#define IDS_AUTOFILL_PHONE_RE 28
+#define IDS_AUTOFILL_AREA_CODE_RE 29
+#define IDS_AUTOFILL_PHONE_PREFIX_RE 30
+#define IDS_AUTOFILL_PHONE_SUFFIX_RE 31
+#define IDS_AUTOFILL_PHONE_EXTENSION_RE 32
+#define IDS_AUTOFILL_NAME_ON_CARD_RE 33
+#define IDS_AUTOFILL_NAME_ON_CARD_CONTEXTUAL_RE 34
+#define IDS_AUTOFILL_CARD_CVC_RE 35
+#define IDS_AUTOFILL_CARD_NUMBER_RE 36
+#define IDS_AUTOFILL_EXPIRATION_MONTH_RE 37
+#define IDS_AUTOFILL_EXPIRATION_DATE_RE 38
+#define IDS_AUTOFILL_CARD_IGNORED_RE 39
// Don't forget to update the count if you add a new message ID!
// (And also update frameworks/base/core/java/android/webkit/L10nUtils.java)
-#define ANDROID_L10N_IDS_MESSAGE_COUNT 4
+#define ANDROID_L10N_IDS_MESSAGE_COUNT 40
namespace l10n_util {
string16 GetStringUTF16(int message_id);