[Kimchi-devel] [PATCH] [Wok] Added extended locale list arranged it in alphabetic order.

Aline Manera alinefm at linux.vnet.ibm.com
Mon May 30 15:09:29 UTC 2016



On 05/30/2016 12:03 PM, Aline Manera wrote:
>
>
> On 05/23/2016 09:07 AM, archus at linux.vnet.ibm.com wrote:
>> From: Archana Singh <archus at linux.vnet.ibm.com>
>>
>> Signed-off-by: Archana Singh <archus at linux.vnet.ibm.com>
>> ---
>>   ui/pages/login.html.tmpl | 194 
>> +++++++++++++++++++++++++++++++++++++++++------
>>   1 file changed, 172 insertions(+), 22 deletions(-)
>>
>> diff --git a/ui/pages/login.html.tmpl b/ui/pages/login.html.tmpl
>> index 52b81fd..81b4e7a 100644
>> --- a/ui/pages/login.html.tmpl
>> +++ b/ui/pages/login.html.tmpl
>> @@ -138,28 +138,178 @@
>>                       <div class="form-group">
>>                           <label for="userLocale">$_("Locale")</label>
>>                           <select id="userLocale" class="selectpicker 
>> col-md-12 col-lg-12">
>> -                            <option value="af-NA">Afrikaans 
>> (Namibia)</option>
>> -                            <option value="ar-DZ">Arabic 
>> (Algeria)</option>
>> -                            <option value="az-AZ">Azerbaijani 
>> (Azerbaijan)</option>
>> -                            <option value="en-US">English (US)</option>
>> -                            <option value="hy-AM">Armenian 
>> (Armenia)</option>
>> -                            <option value="hi-IN">Hindi 
>> (India)</option>
>> -                            <option value="nl-BE">Dutch 
>> (Belgium)</option>
>> -                            <option value="ms-MY">Malay 
>> (Malaysia)</option>
>> -                            <option value="no-NO">Norwegian 
>> (Norway)</option>
>> -                            <option value="sq-AL">Albanian 
>> (Albania)</option>
>> -                            <option value="sv-SE">Swedish 
>> (Sweden)</option>
>> -                            <option value="uz-UZ">Uzbek 
>> (Uzbekistan)</option>
>> -                            <option value="zh-CN">中文(简体)</option>
>> -                            <option value="pt-BR">Português 
>> (Brasil)</option>
>> -                            <option value="de-DE">Deutsch 
>> (Deutschland)</option>
>> -                            <option value="es-ES">Español 
>> (España)</option>
>> -                            <option value="fr-FR">Français 
>> (France)</option>
>> -                            <option value="it-IT">Italiano 
>> (Italia)</option>
>> -                            <option value="ja-JP">日本語 (日本)</option> 
>>
>> -                            <option value="ko-KR">한국어 
>> (대한민국)</option>
>> -                            <option value="ru-RU">Русский 
>> (Россия)</option>
>> -                            <option value="zh-TW">中文(繁體)</option>
>> +                           <option value="af-ZA">Afrikaans (South 
>> Africa)</option>
>> +                           <option value="sq-AL">Albanian 
>> (Albania)</option>
>> +                           <option value="am-ET">Amharic 
>> (Ethiopia)</option>
>> +                           <option value="ar-DZ">Arabic 
>> (Algeria)</option>
>> +                           <option value="ar-BH">Arabic 
>> (Bahrain)</option>
>> +                           <option value="ar-EG">Arabic 
>> (Egypt)</option>
>> +                           <option value="ar-IQ">Arabic (Iraq)</option>
>> +                           <option value="ar-JO">Arabic 
>> (Jordan)</option>
>> +                           <option value="ar-KW">Arabic 
>> (Kuwait)</option>
>> +                           <option value="ar-LB">Arabic 
>> (Lebanon)</option>
>> +                           <option value="ar-LY">Arabic 
>> (Libya)</option>
>> +                           <option value="ar-MR">Arabic 
>> (Mauritania)</option>
>> +                           <option value="ar-MA">Arabic 
>> (Morocco)</option>
>> +                           <option value="ar-OM">Arabic (Oman)</option>
>> +                           <option value="ar-QA">Arabic 
>> (Qatar)</option>
>> +                           <option value="ar-SA">Arabic (Saudi 
>> Arabia)</option>
>> +                           <option value="ar-SY">Arabic 
>> (Syria)</option>
>> +                           <option value="ar-TN">Arabic 
>> (Tunisia)</option>
>> +                           <option value="ar-AE">Arabic (United Arab 
>> Emirates)</option>
>> +                           <option value="ar-YE">Arabic 
>> (Yemen)</option>
>> +                           <option value="hy-AM">Armenian 
>> (Armenia)</option>
>> +                           <option value="as-IN">Assamese 
>> (India)</option>
>> +                           <option value="az-AZ">Azerbaijani 
>> (Azerbaijan)</option>
>> +                           <option value="eu-ES">Basque 
>> (Spain)</option>
>> +                           <option value="be-BY">Belarusian 
>> (Belarus)</option>
>> +                           <option value="bn-BD">Bengali 
>> (Bangladesh)</option>
>> +                           <option value="bn-IN">Bengali 
>> (India)</option>
>> +                           <option value="bs-BA">Bosnian 
>> (Bosnia)</option>
>> +                           <option value="bg-BG">Bulgarian 
>> (Bulgaria)</option>
>> +                           <option value="my-MM">Burmese 
>> (Myanmar)</option>
>> +                           <option value="ca-ES">Catalan 
>> (Spain)</option>
>> +                           <option value="zh-CN">Chinese-simplified 
>> (China)</option>
>> +                           <option value="zh-SG">Chinese-simplified 
>> (Singapore)</option>
>> +                           <option value="zh-HK">Chinese-traditional 
>> (Hong Kong S.A.R. of China)</option>
>> +                           <option value="zh-MO">Chinese-traditional 
>> (Macao)</option>
>> +                           <option value="zh-TW">Chinese-traditional 
>> (Taiwan)</option>
>> +                           <option value="hr-HR">Croatian 
>> (Croatia)</option>
>> +                           <option value="cs-CZ">Czech (Czech 
>> Republic)</option>
>> +                           <option value="da-DK">Danish 
>> (Denmark)</option>
>> +                           <option value="nl-BE">Dutch 
>> (Belgium)</option>
>> +                           <option value="nl-NL">Dutch (The 
>> Netherlands)</option>
>> +                           <option value="en-AU">English 
>> (Australia)</option>
>> +                           <option value="en-BE">English 
>> (Belgium)</option>
>> +                           <option value="en-CM">English 
>> (Cameroon)</option>
>> +                           <option value="en-CA">English 
>> (Canada)</option>
>> +                           <option value="en-GH">English 
>> (Ghana)</option>
>> +                           <option value="en-HK">English (Hong Kong 
>> S.A.R. of China)</option>
>> +                           <option value="en-IN">English 
>> (India)</option>
>> +                           <option value="en-IE">English 
>> (Ireland)</option>
>> +                           <option value="en-KE">English 
>> (Kenya)</option>
>> +                           <option value="en-MU">English 
>> (Mauritius)</option>
>> +                           <option value="en-NZ">English (New 
>> Zealand)</option>
>> +                           <option value="en-NG">English 
>> (Nigeria)</option>
>> +                           <option value="en-PH">English 
>> (Philippines)</option>
>> +                           <option value="en-SG">English 
>> (Singapore)</option>
>> +                           <option value="en-ZA">English (South 
>> Africa)</option>
>> +                           <option value="en-TZ">English 
>> (Tanzania)</option>
>> +                           <option value="en-GB">English (United 
>> Kingdom)</option>
>> +                           <option value="en-US">English (United 
>> States)</option>
>> +                           <option value="en-ZM">English 
>> (Zambia)</option>
>> +                           <option value="et-EE">Estonian 
>> (Estonia)</option>
>> +                           <option value="tl-PH">Filipino 
>> (Philippines)</option>
>> +                           <option value="fi-FI">Finnish 
>> (Finland)</option>
>> +                           <option value="fr-DZ">French 
>> (Algeria)</option>
>> +                           <option value="fr-CM">French 
>> (Cameroon)</option>
>> +                           <option value="fr-CD">French (Democratic 
>> Republic of the Congo)</option>
>> +                           <option value="fr-BE">French 
>> (Belgium)</option>
>> +                           <option value="fr-CA">French 
>> (Canada)</option>
>> +                           <option value="fr-FR">French 
>> (France)</option>
>> +                           <option value="fr-CI">French (Ivory Coast 
>> [Côte d’Ivoire])</option>
>> +                           <option value="fr-LU">French 
>> (Luxembourg)</option>
>> +                           <option value="fr-MR">French 
>> (Mauritania)</option>
>> +                           <option value="fr-MU">French 
>> (Mauritius)</option>
>> +                           <option value="fr-MA">French 
>> (Morocco)</option>
>> +                           <option value="fr-SN">French 
>> (Senegal)</option>
>> +                           <option value="fr-CH">French 
>> (Switzerland)</option>
>> +                           <option value="fr-TN">French 
>> (Tunisia)</option>
>> +                           <option value="gl-ES">Galician 
>> (Spain)</option>
>> +                           <option value="lg-UG">Ganda 
>> (Uganda)</option>
>> +                           <option value="ka-GE">Georgian 
>> (Georgia)</option>
>> +                           <option value="de-AT">German 
>> (Austria)</option>
>> +                           <option value="de-DE">German 
>> (Germany)</option>
>> +                           <option value="de-LU">German 
>> (Luxembourg)</option>
>> +                           <option value="de-CH">German 
>> (Switzerland)</option>
>> +                           <option value="el-GR">Greek 
>> (Greece)</option>
>> +                           <option value="gu-IN">Gujarati 
>> (India)</option>
>> +                           <option value="ha-NG">Hausa 
>> (Nigeria)</option>
>> +                           <option value="he-IL">Hebrew 
>> (Israel)</option>
>> +                           <option value="hi-IN">Hindi (India)</option>
>> +                           <option value="hu-HU">Hungarian 
>> (Hungary)</option>
>> +                           <option value="is-IS">Icelandic 
>> (Iceland)</option>
>> +                           <option value="ig-NG">Igbo 
>> (Nigeria)</option>
>> +                           <option value="id-ID">Indonesian 
>> (Indonesia)</option>
>> +                           <option value="it-IT">Italian 
>> (Italy)</option>
>> +                           <option value="it-CH">Italian 
>> (Switzerland)</option>
>> +                           <option value="ja-JP">Japanese 
>> (Japan)</option>
>> +                           <option value="kn-IN">Kannada 
>> (India)</option>
>> +                           <option value="kk-KZ">Kazakh 
>> (Kazakhstan)</option>
>> +                           <option value="km-KH">Khmer 
>> (Cambodia)</option>
>> +                           <option value="rw-RW">Kinyarwanda 
>> (Rwanda)</option>
>> +                           <option value="kok-IN">Konkani 
>> (India)</option>
>> +                           <option value="ko-KR">Korean 
>> (India)</option>
>> +                           <option value="lo-LA">Lao (Korea, 
>> South)</option>
>> +                           <option value="lv-LV">Latvian 
>> (Latvia)</option>
>> +                           <option value="lt-LT">Lithuanian 
>> (Lithuania)</option>
>> +                           <option value="mk-MK">Macedonian 
>> (Macedonia)</option>
>> +                           <option value="ms-MY">Malay-Latin 
>> (Malaysia)</option>
>> +                           <option value="ml-IN">Malayalam 
>> (India)</option>
>> +                           <option value="mt-MT">Maltese 
>> (Malta)</option>
>> +                           <option value="mr-IN">Marathi 
>> (India)</option>
>> +                           <option 
>> value="mn-Cyrl-MN">Mongolian-Cyrillic (Mongolia)</option>
>> +                           <option value="ne-IN">Nepali 
>> (India)</option>
>> +                           <option value="ne-NP">Nepali 
>> (Nepal)</option>
>> +                           <option value="nb-NO">Norwegian Bokmål 
>> (Norway)</option>
>> +                           <option value="nn-NO">Norwegian Nynorsk 
>> (Norway)</option>
>> +                           <option value="or-IN">Oriya [aka, Odia] 
>> (India)</option>
>> +                           <option value="om-ET">Oromo 
>> (Ethiopia)</option>
>> +                           <option value="pl-PL">Polish 
>> (Poland)</option>
>> +                           <option value="pt-MO">Portuguese 
>> (Macao)</option>
>> +                           <option value="pt-MZ">Portuguese 
>> (Mozambique)</option>
>> +                           <option value="pt-PT">Portuguese 
>> (Portugal)</option>
>
>> +                           <option value="pa-IN">Punjabi  
>> (India)</option>
>> +                           <option value="ro-RO">Romanian  
>> (Romania)</option>
>
> There are 2 spaces between the Language and Location. I will fix it 
> before applying upstream.
>

I found some inconsistencies in this patch.

As Portuguese is my native language, I am confused about those 2 entries:

+                           <option value="pt-AO">Portuguese Bokmål 
(Angola)</option>
+                           <option value="pt-BR">Portuguese Nynorsk 
(Brazil)</option>


After a quick search over the Internet, I identified Bokmål and Nynorsk 
are related to Norwegian.

Where did you get that list of Locale? Is there any reference for 
consulting?

In the same way, we have those inconsistencies for Portuguese, we may 
have for other languages/locales we are not very familiar with.

>> +                           <option value="ru-RU">Russian 
>> (Russia)</option>
>> +                           <option value="sr-RS">Serbian-Cyrillic 
>> (Serbia)</option>
>> +                           <option value="sr-ME">Serbian-Latin 
>> (Montenegro)</option>
>> +                           <option value="sr-Latn-RS">Serbian-Latin  
>> (Serbia)</option>
>> +                           <option value="si-LK">Sinhala (Sri 
>> Lanka)</option>
>> +                           <option value="sk-SK">Slovak 
>> (Slovakia)</option>
>> +                           <option value="sl-SI">Slovenian  
>> (Slovenia)</option>
>> +                           <option value="es-AR">Spanish 
>> (Argentina)</option>
>> +                           <option value="es-BO">Spanish 
>> (Bolivia)</option>
>> +                           <option value="es-CL">Spanish 
>> (Chile)</option>
>> +                           <option value="es-CO">Spanish 
>> (Colombia)</option>
>> +                           <option value="en-CR">Spanish (Costa 
>> Rica)</option>
>> +                           <option value="es-DO">Spanish (Dominican 
>> Republic)</option>
>> +                           <option value="es-EC">Spanish 
>> (Ecuador)</option>
>> +                           <option value="es-SV">Spanish (El 
>> Salvador)</option>
>> +                           <option value="es-GT">Spanish 
>> (Guatemala)</option>
>> +                           <option value="en-HN">Spanish 
>> (Honduras)</option>
>> +                           <option value="es-MX">Spanish 
>> (Mexico)</option>
>> +                           <option value="es-NI">Spanish 
>> (Nicaragua)</option>
>> +                           <option value="es-PA">Spanish 
>> (Panama)</option>
>> +                           <option value="es-PY">Spanish 
>> (Paraguay)</option>
>> +                           <option value="en-PE">Spanish 
>> (Peru)</option>
>> +                           <option value="es-PR">Spanish (Puerto 
>> Rico)</option>
>> +                           <option value="es-ES">Spanish 
>> (Spain)</option>
>> +                           <option value="es-US">Spanish (United 
>> States)</option>
>> +                           <option value="es-UY">Spanish 
>> (Uruguay)</option>
>> +                           <option value="es-VE">Spanish 
>> (Venezuela)</option>
>> +                           <option value="sw-KE">Swahili 
>> (Kenya)</option>
>> +                           <option value="sw-TZ">Swahili 
>> (Tanzania)</option>
>> +                           <option value="sv-SE">Swedish 
>> (Sweden)</option>
>> +                           <option value="ta-IN">Tamil (India)</option>
>> +                           <option value="te-IN">Telugu 
>> (Venezuela)</option>
>> +                           <option value="th-TH">Thai 
>> (Thailand)</option>
>> +                           <option value="tr-TR">Turkish 
>> (Turkey)</option>
>> +                           <option value="uk-UA">Ukrainian 
>> (Ukraine)</option>
>> +                           <option value="ur-IN">Urdu (India)</option>
>> +                           <option value="ur-PK">Urdu 
>> (Pakistan)</option>
>> +                           <option value="uz-Cyrl-UZ">Uzbek-Cyrillic 
>> (Uzbekistan)</option>
>> +                           <option value="uz-Latn-UZ">Uzbek-Latin 
>> (Uzbekistan)</option>
>> +                           <option value="vi-VN">Vietnamese 
>> (Vietnam)</option>
>> +                           <option value="cy-GB">Welsh (United 
>> Kingdom)</option>
>> +                           <option value="yo-NG">Yoruba 
>> (Nigeria)</option>
>> +                           <option value="ZU-ZA">Zulu (South 
>> Africa)</option>
>> +                           <option value="az-AZ">Azerbaijani-Latin 
>> (Azerbaijan)</option>
>> +                           <option value="sr-CS">Serbian-Cyrillic 
>> ()</option>
>> +                           <option 
>> value="sr-Cyrl-CS">Serbian-Cyrillic (Serbia and Montenegro)</option>
>> +                           <option value="sr-Latn-CS">Serbian-Latin 
>> (Serbia and Montenegro)</option>
>>                           </select>
>>                       </div>
>>                   </form>
>
> _______________________________________________
> Kimchi-devel mailing list
> Kimchi-devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/kimchi-devel




More information about the Kimchi-devel mailing list