Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: third_party/libaddressinput/chromium/cpp/src/rule.cc

Issue 134903003: libaddressinput string translations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: pull all the way Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (C) 2013 Google Inc. 1 // Copyright (C) 2013 Google Inc.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and 12 // See the License for the specific language governing permissions and
13 // limitations under the License. 13 // limitations under the License.
14 14
15 #include "rule.h" 15 #include "rule.h"
16 16
17 #include <libaddressinput/address_field.h> 17 #include <libaddressinput/address_field.h>
18 #include <libaddressinput/util/scoped_ptr.h> 18 #include <libaddressinput/util/scoped_ptr.h>
19 19
20 #include <cassert> 20 #include <cassert>
21 #include <cstddef> 21 #include <cstddef>
22 #include <string> 22 #include <string>
23 #include <vector> 23 #include <vector>
24 24
25 #include "grit.h" 25 #include "grit.h"
26 #include "messages.h" 26 #include "grit/libaddressinput_strings.h"
27 #include "region_data_constants.h" 27 #include "region_data_constants.h"
28 #include "util/json.h" 28 #include "util/json.h"
29 #include "util/string_split.h" 29 #include "util/string_split.h"
30 30
31 namespace i18n { 31 namespace i18n {
32 namespace addressinput { 32 namespace addressinput {
33 33
34 namespace { 34 namespace {
35 35
36 bool ParseToken(char c, AddressField* field) { 36 bool ParseToken(char c, AddressField* field) {
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 return IDS_LIBADDRESSINPUT_I18N_INVALID_DEPENDENT_LOCALITY_LABEL; 267 return IDS_LIBADDRESSINPUT_I18N_INVALID_DEPENDENT_LOCALITY_LABEL;
268 case POSTAL_CODE: 268 case POSTAL_CODE:
269 return invalid_postal_code_message_id_; 269 return invalid_postal_code_message_id_;
270 default: 270 default:
271 return IDS_LIBADDRESSINPUT_I18N_INVALID_ENTRY; 271 return IDS_LIBADDRESSINPUT_I18N_INVALID_ENTRY;
272 } 272 }
273 } 273 }
274 274
275 } // namespace addressinput 275 } // namespace addressinput
276 } // namespace i18n 276 } // namespace i18n
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698