aboutsummaryrefslogtreecommitdiff
path: root/cpp/libaddressinput.gyp
diff options
context:
space:
mode:
authorrouslan@chromium.org <rouslan@chromium.org@38ededc0-08b8-5190-f2ac-b31f878777ad>2014-05-14 07:47:13 +0000
committerrouslan@chromium.org <rouslan@chromium.org@38ededc0-08b8-5190-f2ac-b31f878777ad>2014-05-14 07:47:13 +0000
commit947ce24396bbb66ec5fcd14a73f85f4e32c3dcc0 (patch)
tree5690ec7daed768b42524fe15b0193afdc4353b67 /cpp/libaddressinput.gyp
parentc9cd8929fc3b9ff6918b9246220ea645cae78185 (diff)
downloadsrc-947ce24396bbb66ec5fcd14a73f85f4e32c3dcc0.tar.gz
Determine language tag and order of UI components.
This patch changes BuildComponents() function to read the UI language tag and determine the language tag that should be stored with the address data. The function also chooses between the default and the Latin order of UI components in the address form. A language tag is a sequence of one of more subtags separated by hyphen ("-"). All characters are in ASCII and case-insensitive. The first subtag is the base language, for example "zh". The first four-character subtag is the script, for example "Hans". git-svn-id: http://libaddressinput.googlecode.com/svn/trunk@208 38ededc0-08b8-5190-f2ac-b31f878777ad
Diffstat (limited to 'cpp/libaddressinput.gyp')
-rw-r--r--cpp/libaddressinput.gyp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/libaddressinput.gyp b/cpp/libaddressinput.gyp
index e57bda0..b4ab884 100644
--- a/cpp/libaddressinput.gyp
+++ b/cpp/libaddressinput.gyp
@@ -37,6 +37,7 @@
'src/address_problem.cc',
'src/address_ui.cc',
'src/address_validator.cc',
+ 'src/language.cc',
'src/localization.cc',
'src/lookup_key.cc',
'src/lookup_key_util.cc',
@@ -75,6 +76,7 @@
'test/fake_downloader_test.cc',
'test/fake_storage.cc',
'test/fake_storage_test.cc',
+ 'test/language_test.cc',
'test/localization_test.cc',
'test/lookup_key_test.cc',
'test/lookup_key_util_test.cc',