[Kimchi-devel] [PATCH] i18n support: Add new languages in login page.

Paulo Vital pvital at linux.vnet.ibm.com
Fri Aug 29 16:59:59 UTC 2014


Adding the 'Deutsch (Deutschland)' German, 'Español (España)'
Spanish, 'Français (France)' French, 'Italiano (Italia)' Italian,
'日本語 (日本)' Japanese, '한국어 (대한민국)' Korean,
'Русский (Россия)' Russian and '中文(繁體)' Traditional Chinese
languages as options in the login page to be selected before use
Kimchi.

Signed-off-by: Paulo Vital <pvital at linux.vnet.ibm.com>
---
 ui/js/src/kimchi.lang.js | 10 +++++++++-
 ui/pages/login.html.tmpl |  8 ++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/ui/js/src/kimchi.lang.js b/ui/js/src/kimchi.lang.js
index da55307..1d2de4e 100644
--- a/ui/js/src/kimchi.lang.js
+++ b/ui/js/src/kimchi.lang.js
@@ -20,7 +20,15 @@ kimchi.lang = {
         return {
           'en_US': 'English (US)',
           'zh_CN': '中文(简体)',
-          'pt_BR': 'Português (Brasil)'
+          'pt_BR': 'Português (Brasil)',
+          'de_DE': 'Deutsch (Deutschland)',
+          'es_ES': 'Español (España)',
+          'fr_FR': 'Français (France)',
+          'it_IT': 'Italiano (Italia)',
+          'ja_JP': '日本語 (日本)',
+          'ko_KR': '한국어 (대한민국)',
+          'ru_RU': 'Русский (Россия)',
+          'zh_TW': '中文(繁體)'
         };
     },
 
diff --git a/ui/pages/login.html.tmpl b/ui/pages/login.html.tmpl
index 7d61a6a..d4d5b7e 100644
--- a/ui/pages/login.html.tmpl
+++ b/ui/pages/login.html.tmpl
@@ -65,6 +65,14 @@
         <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 id="login-window" class="login-area">
-- 
1.9.3




More information about the Kimchi-devel mailing list