[Kimchi-devel] [PATCH v2] [Wok] Externalise the tab names and locale list

Aline Manera alinefm at linux.vnet.ibm.com
Mon Aug 22 13:50:38 UTC 2016


Ops... Some comments below:

On 08/01/2016 06:30 AM, pkulkark at linux.vnet.ibm.com wrote:
> From: Pooja Kulkarni <pkulkark at linux.vnet.ibm.com>
>
> The tab names (Wok, Host, Virtualization) should be
> externalised. Also, the list of locales needs to be
> externalised so that it is translatable based on the
> language selected.
>
> Signed-off-by: Pooja Kulkarni <pkulkark at linux.vnet.ibm.com>
> ---
>   ui/js/src/wok.main.js    |   7 +-
>   ui/pages/i18n.json.tmpl  |   3 +
>   ui/pages/login.html.tmpl | 344 +++++++++++++++++++++++------------------------
>   3 files changed, 179 insertions(+), 175 deletions(-)
>
> diff --git a/ui/js/src/wok.main.js b/ui/js/src/wok.main.js
> index 1d49c9e..1683c95 100644
> --- a/ui/js/src/wok.main.js
> +++ b/ui/js/src/wok.main.js
> @@ -35,6 +35,7 @@ wok.main = function() {
>       var genTabs = function(tabs) {
>           var tabsHtml = [];
>           $(tabs).each(function(i, tab) {
> +            tab_i18n = i18n[tab] ? i18n[tab] : tab;
>               var functionality = tab['functionality'];
>               var title = tab['title'];
>               var path = tab['path'];
> @@ -58,11 +59,11 @@ wok.main = function() {
>
>       var genFuncTabs  = function(tabs){
>           var functionalTabHtml = [];
> -        $(tabs).each(function(i, tab) {
> +        $(tabs).each(function(i, tab_i18n) {
>               functionalTabHtml.push(
>                   '<li>',
> -                    '<a class="item',' ',tab.toLowerCase(),'Tab','" href="#">',
> -                        tab,
> +                    '<a class="item',' ',tab_i18n.toLowerCase(),'Tab','" href="#">',
> +                        tab_i18n,
>                       '</a>',
>                   '</li>'
>               );
> diff --git a/ui/pages/i18n.json.tmpl b/ui/pages/i18n.json.tmpl
> index 5628479..aca2449 100644
> --- a/ui/pages/i18n.json.tmpl
> +++ b/ui/pages/i18n.json.tmpl
> @@ -24,6 +24,9 @@
>   #silent _ = t.gettext
>   #silent _t = t.gettext
>   {

> +    "Host": "$_("Host")",
> +    "Virtualization": "$_("Virtualization")",

Host and Virtualization tabs are not part of Wok. Each one come from a 
plugin Ginger and Kimchi, respectively.
That way, we should not add plugin specific strings into Wok code. We 
need to change the way we do the translation to Wok get the translated 
string from the plugin.

If you compromise in doing that fix, I will keep this commit upstream. 
Otherwise, I will revert this commit so we can work on a better solution.

> +    "Wok": "$_("Wok")",
>       "Settings": "$_("Settings")",
>
>       "WOKAPI6005E": "$_("No such data available.")",
> diff --git a/ui/pages/login.html.tmpl b/ui/pages/login.html.tmpl
> index 6890d9b..170f8fe 100644
> --- a/ui/pages/login.html.tmpl
> +++ b/ui/pages/login.html.tmpl
> @@ -144,178 +144,178 @@
>                       <div class="form-group">
>                           <label for="userLocale">$_("Locale")</label>
>                           <select id="userLocale" class="selectpicker col-md-12 col-lg-12">
> -                           <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 (Korea, South)</option>
> -                           <option value="lo-LA">Lao (Laos)</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-AO">Portuguese (Angola)</option>
> -                           <option value="pt-BR">Portuguese (Brazil)</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>
> -                           <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="es-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="es-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="es-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 (India)</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>
> +                           <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 (Korea, South)")</option>
> +                           <option value="lo-LA">$_("Lao (Laos)")</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-AO">$_("Portuguese (Angola)")</option>
> +                           <option value="pt-BR">$_("Portuguese (Brazil)")</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>
> +                           <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="es-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="es-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="es-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 (India)")</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>

What is the idea behind translating the Location setting name?
I am not sure if that makes sense. What I usually see other the internet 
is the Locale setting translated to the language it represents. Example, 
'Portuguese (Brazil)' would be 'Português (Brasil)'.

>                           </select>
>                       </div>
>                   </form>




More information about the Kimchi-devel mailing list