From 98fc76a7d4fd7bd5ed9f0e8cccadf5a1f44ea78d Mon Sep 17 00:00:00 2001 From: X-NicON Date: Sun, 12 Oct 2014 19:03:17 +0400 Subject: [PATCH] add code localizations mobile version --- js/interface_localization.js | 58 +++++++++++++++++++++++++----------- tmobile.html | 4 +-- 2 files changed, 43 insertions(+), 19 deletions(-) diff --git a/js/interface_localization.js b/js/interface_localization.js index eae05a1..a174d1b 100644 --- a/js/interface_localization.js +++ b/js/interface_localization.js @@ -252,6 +252,10 @@ if(preferredLanguage == "en"){ "Sound": "Sound", "Users": "Users", "Direct Message's copy to self": "Direct Message's copy to self", + "Terminate Daemon": "Terminate Daemon", + "New post": "New post", + "Search": "Search", + "Direct Msg": "Direct Msg" }; } if(preferredLanguage == "es"){ @@ -1699,7 +1703,7 @@ if(preferredLanguage == "ru"){ "Retransmit": "Перепостить", "Retransmits": "Репосты", "Retransmitted by": "Перепощено ", - "search": "поиск", + "search": "найти", "seconds": "%{smart_count} секунда |||| %{smart_count} секунд", "send": "отправить", "Send post with username": "Отправить сообщение от имени", @@ -1841,6 +1845,9 @@ if(preferredLanguage == "ru"){ "Users": "Пользователи", "Direct Message's copy to self": "Синхронизировать отправленные личные сообщения", "Terminate Daemon": "Выключить twister демон", + "New post": "Новый пост", + "Search": "Поиск", + "Direct Msg": "ЛС", }; } @@ -2987,6 +2994,9 @@ polyglot.extend(wordset); // Text from HTML and not JavaScript is selected and translated at $(document).ready // Add selectors here to translate the text and placeholders inside new UI var fixedLabels = [ + // page titles + "title", + // An easy way to include new items in translation is to add the "label" class ".label", @@ -3023,27 +3033,41 @@ var fixedLabels = [ ".login-local-username", ".login input", - //options page + // options page "option", - //page titles - "title" + // mobile version // + + ".ui-btn-text", + ".ui-title", + ".ui-input-text" ]; + $(document).ready(function(){ - for(var i=0;i Login -

Edit Profile

+

Edit profile

Following @@ -399,7 +399,7 @@
- Secret key: + Secret key: