From: Archana Singh <archus(a)linux.vnet.ibm.com>
This patch adds another drop down list
for user locale selection. The list
includes the 11 languages supported
in UI plus a few extra languages
for now (This will be extended later).
Signed-off-by: Archana Singh <archus(a)linux.vnet.ibm.com>
co-authored by: Pooja Kulkarni <pkulkark(a)linux.vnet.ibm.com>
---
ui/pages/login.html.tmpl | 56 +++++++++++++++++++++++++++++++++++++-----------
1 file changed, 43 insertions(+), 13 deletions(-)
diff --git a/ui/pages/login.html.tmpl b/ui/pages/login.html.tmpl
index 411874b..52b81fd 100644
--- a/ui/pages/login.html.tmpl
+++ b/ui/pages/login.html.tmpl
@@ -119,19 +119,49 @@
<span id="logging" style="display:
none;">$_("Logging in...")</span>
</button>
</div>
- <select id="userLang" class="selectpicker col-md-12
col-lg-12">
- <option value="en_US">English
(US)</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>
- </select>
+ <div class="form-group">
+ <label
for="userLang">$_("Language")</label>
+ <select id="userLang" class="selectpicker
col-md-12 col-lg-12">
+ <option value="en_US">English
(US)</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>
+ </select>
+ </div>
+ <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>
+ </select>
+ </div>
</form>
</div>
<div class="row">
--
1.8.3.1