OLD | NEW |
---|---|
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, |
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1207 const std::string& RegionDataConstants::GetLanguageCompactLineSeparator( | 1207 const std::string& RegionDataConstants::GetLanguageCompactLineSeparator( |
1208 const std::string& language_code) { | 1208 const std::string& language_code) { |
1209 static const std::string kEmptyString; | 1209 static const std::string kEmptyString; |
1210 static const std::string kArabicSeparator = "، "; | 1210 static const std::string kArabicSeparator = "، "; |
1211 static const std::string kSpace = " "; | 1211 static const std::string kSpace = " "; |
1212 static const std::string kCommaAndSpace = ", "; | 1212 static const std::string kCommaAndSpace = ", "; |
1213 if (language_code == "ja" || | 1213 if (language_code == "ja" || |
1214 language_code == "zh" || | 1214 language_code == "zh" || |
1215 language_code == "zh-hant" || | 1215 language_code == "zh-hant" || |
1216 language_code == "zh-hans") { | 1216 language_code == "zh-hans") { |
1217 return kEmptyString; | 1217 return kEmptyString; |
1218 } else if (language_code == "ar" || | 1218 } |
1219 language_code == "cjm" || | 1219 |
1220 language_code == "doi" || | 1220 if (language_code == "ar" || |
1221 language_code == "fa" || | 1221 language_code == "cjm" || |
1222 language_code == "lah" || | 1222 language_code == "doi" || |
1223 language_code == "prd" || | 1223 language_code == "fa" || |
1224 language_code == "ps" || | 1224 language_code == "lah" || |
1225 language_code == "swb" || | 1225 language_code == "prd" || |
1226 language_code == "ug" || | 1226 language_code == "ps" || |
1227 language_code == "ur") { | 1227 language_code == "swb" || |
1228 language_code == "ug" || | |
1229 language_code == "ur") { | |
1228 return kArabicSeparator; | 1230 return kArabicSeparator; |
1229 } else if (language_code == "ko" || | 1231 } |
1230 language_code == "kdt" || | 1232 |
1231 language_code == "lcp" || | 1233 if (language_code == "ko" || |
1232 language_code == "lwl" || | 1234 language_code == "kdt" || |
1233 language_code == "th" || | 1235 language_code == "lcp" || |
1234 language_code == "tts") { | 1236 language_code == "lwl" || |
1237 language_code == "th" || | |
1238 language_code == "tts") { | |
1235 return kSpace; | 1239 return kSpace; |
1236 } | 1240 } |
1241 | |
Dan Beam
2014/01/29 03:26:59
though i agree with this, are we sure this is a li
Evan Stade
2014/01/29 04:11:00
yes
| |
1237 return kCommaAndSpace; | 1242 return kCommaAndSpace; |
1238 } | 1243 } |
1239 | 1244 |
1240 } // namespace addressinput | 1245 } // namespace addressinput |
1241 } // namespace i18n | 1246 } // namespace i18n |
OLD | NEW |