From: Pooja Kulkarni <pkulkark(a)linux.vnet.ibm.com>
co-authored by: 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).
By default, the locale will be the
UI language selected.
Signed-off-by: Pooja Kulkarni <pkulkark(a)linux.vnet.ibm.com>
---
ui/pages/login.html.tmpl | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/ui/pages/login.html.tmpl b/ui/pages/login.html.tmpl
index 411874b..6ea80e1 100644
--- a/ui/pages/login.html.tmpl
+++ b/ui/pages/login.html.tmpl
@@ -119,6 +119,9 @@
<span id="logging" style="display:
none;">$_("Logging in...")</span>
</button>
</div>
+ <div id="">
+ <dl>
+ <dt>
<select id="userLang" class="selectpicker col-md-12
col-lg-12">
<option value="en_US">English
(US)</option>
<option value="zh_CN">中文(简体)</option>
@@ -132,6 +135,37 @@
<option value="ru_RU">Русский
(Россия)</option>
<option value="zh_TW">中文(繁體)</option>
</select>
+ </dt>
+ <dd><h3 style="margin-top:7px; margin-bottom:40px;
color:grey">Language</h3></dd>
+ <dt>
+ <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>
+ </dt>
+ <dd><h3 style="margin-top:7px;
color:grey">Locale</dd>
+ </dl>
+ </div>
</form>
</div>
<div class="row">
--
2.1.0