Browse Source

Update i18n

master
digital dreamer 10 years ago
parent
commit
b0e89777c4
  1. 6
      following.html
  2. 12
      home.html
  3. 7
      js/interface_common.js
  4. 252
      js/interface_localization.js
  5. 22
      js/interface_profile-edit.js
  6. 2
      js/mobile_abstract.js
  7. 12
      js/options.js
  8. 2
      js/twister_following.js
  9. 2
      js/twister_network.js
  10. 8
      login.html
  11. 5
      options.html
  12. 7
      theme_nin/css/style.css
  13. 2
      theme_nin/js/theme_option.js

6
following.html

@ -117,13 +117,13 @@
<!-- THEME NIN added user menu (mentions, messages and edit profile) --> <!-- THEME NIN added user menu (mentions, messages and edit profile) -->
<ul class="mini-profile-indicators selectable_theme theme_nin"> <ul class="mini-profile-indicators selectable_theme theme_nin">
<li class="userMenu-connections"> <li class="userMenu-connections">
<a href="#" title="Mentions"><span class="messages-qtd" style="display:none;">0</span>Mentions</a> <a href="#" title="Mentions"><span class="messages-qtd" style="display:none;">0</span><span>Mentions</span></a>
</li> </li>
<li class="userMenu-messages"> <li class="userMenu-messages">
<a href="#" title="Direct Messages"><span class="messages-qtd" style="display:none;">0</span>Messages</a> <a href="#" title="Direct Messages"><span class="messages-qtd" style="display:none;">0</span><span>Messages</span></a>
</li> </li>
<li class="userMenu-user"> <li class="userMenu-user">
<a href="profile-edit.html" title="Edit profile">Edit profile</a> <a href="profile-edit.html" title="Edit profile"><span>Edit profile</span></a>
</li> </li>
</ul> </ul>

12
home.html

@ -118,13 +118,13 @@
<!-- THEME NIN added sub-menu (mentions, messages and edit profile) --> <!-- THEME NIN added sub-menu (mentions, messages and edit profile) -->
<ul class="mini-profile-indicators selectable_theme theme_nin"> <ul class="mini-profile-indicators selectable_theme theme_nin">
<li class="userMenu-connections"> <li class="userMenu-connections">
<a href="#" title="Mentions"><span class="messages-qtd" style="display:none;">0</span>Mentions</a> <a href="#" title="Mentions"><span class="messages-qtd" style="display:none;">0</span><span>Mentions</span></a>
</li> </li>
<li class="userMenu-messages"> <li class="userMenu-messages">
<a href="#" title="Direct Messages"><span class="messages-qtd" style="display:none;">0</span>Messages</a> <a href="#" title="Direct Messages"><span class="messages-qtd" style="display:none;">0</span><span>Messages</span></a>
</li> </li>
<li class="userMenu-user"> <li class="userMenu-user">
<a href="profile-edit.html" title="Edit profile">Edit profile</a> <a href="profile-edit.html" title="Edit profile"><span>Edit profile</span></a>
</li> </li>
</ul> </ul>
<!--/sub-menu --> <!--/sub-menu -->
@ -166,7 +166,7 @@
<!-- WHO TO FOLLOW MODULE INIT --> <!-- WHO TO FOLLOW MODULE INIT -->
<div class="module toptrends"> <div class="module toptrends">
<h3>Top Trends</h3> <h3><span>Top Trends</span></h3>
<ol class="toptrends-list"> <ol class="toptrends-list">
<!-- use "follow-suggestion-template" here --> <!-- use "follow-suggestion-template" here -->
</ol> </ol>
@ -185,8 +185,8 @@
</h2> </h2>
<!-- Tabs to switch between promoted post and normal posts--> <!-- Tabs to switch between promoted post and normal posts-->
<ul class="promoted-posts-only promoted selectable_theme theme_nin"> <ul class="promoted-posts-only promoted selectable_theme theme_nin">
<li class="normal-posts active">Normal posts</li> <li class="normal-posts active"><span>Normal posts</span></li>
<li class="promoted-posts disabled">Promoted posts</li> <li class="promoted-posts disabled"><span>Promoted posts</span></li>
</ul> </ul>
<!-- Post area on top of postboard --> <!-- Post area on top of postboard -->
<div id="postboard-top" class=" selectable_theme theme_nin"> <div id="postboard-top" class=" selectable_theme theme_nin">

7
js/interface_common.js

@ -125,6 +125,9 @@ function openProfileModal(e)
unfollow(username); unfollow(username);
}); });
}; };
$(".tox-ctc").attr("title", polyglot.t("Copy to clipboard"));
$(".bitmessage-ctc").attr("title", polyglot.t("Copy to clipboard"));
} }
function newHashtagModal(hashtag) { function newHashtagModal(hashtag) {
@ -1058,7 +1061,7 @@ function convert2Unicodes(s, ta)
if (ta.data("unicodeConversionStack").length > 0) if (ta.data("unicodeConversionStack").length > 0)
{ {
var ub = ta.closest(".post-area-new").find(".undo-unicode"); var ub = ta.closest(".post-area-new").find(".undo-unicode");
ub.text("undo: " + ta.data("unicodeConversionStack")[0].u); ub.text(polyglot.t("undo") + ": " + ta.data("unicodeConversionStack")[0].u);
$.MAL.enableButton(ub); $.MAL.enableButton(ub);
} }
else else
@ -1102,7 +1105,7 @@ function undoLastUnicode(e) {
} }
if ($ta.data("unicodeConversionStack").length > 0) if ($ta.data("unicodeConversionStack").length > 0)
$(this).text("undo: " + $ta.data("unicodeConversionStack")[0].u); $(this).text(polyglot.t("undo") + ": " + $ta.data("unicodeConversionStack")[0].u);
else else
{ {
$(this).text("undo"); $(this).text("undo");

252
js/interface_localization.js

@ -4,7 +4,7 @@
// uses Polyglot.js ( https://github.com/airbnb/polyglot.js ) to translate interface // uses Polyglot.js ( https://github.com/airbnb/polyglot.js ) to translate interface
// translators: add your language code here such as "es" for Spanish, "ru" for Russian // translators: add your language code here such as "es" for Spanish, "ru" for Russian
var knownLanguages = ["en","es","nl","it","fr","ru","de","zh","ja","pt-BR","tr","uk"]; var knownLanguages = ["en","es","nl","it","fr","ru","de","zh","ja","pt-BR","tr","uk","cs"];
if( $.Options.getOption('locLang','auto') == 'auto'){ if( $.Options.getOption('locLang','auto') == 'auto'){
// detect language with JavaScript // detect language with JavaScript
@ -226,11 +226,31 @@ if(preferredLanguage == "en"){
"follows you": "follows you", "follows you": "follows you",
"Show conversation": "Show conversation", "Show conversation": "Show conversation",
"Mark all as read": "Mark all as read", "Mark all as read": "Mark all as read",
"show_more_count": "%{count} more...", "show_more_count": "%{smart_count} more...",
"hide": "hide", "hide": "hide",
"Show more in this conversation...": "Show more in this conversation...", "Show more in this conversation...": "Show more in this conversation...",
"conversation_title": "Conversation of @%{username}", "conversation_title": "Conversation of @%{username}",
"copy_to_clipboard": "Press Ctrl/Cmd+C to copy then Enter to close" "copy_to_clipboard": "Press Ctrl/Cmd+C to copy then Enter to close",
"Normal posts": "Normal posts",
"Promoted posts": "Promoted posts",
"Messages": "Messages",
"Edit profile": "Edit profile",
"Top Trends": "Top Trends",
"twisted again by": "twisted again by",
"undo": "undo",
"Are you sure you want to exit the daemon?\nThe Twister client will stop working.": "Are you sure you want to exit the daemon?\nThe Twister client will stop working.",
"Daemon exited...": "Daemon exited...",
"Secret Key": "Secret Key",
"Copy to clipboard": "Copy to clipboard",
"Full name here": "Full name here",
"Describe yourself": "Describe yourself",
"Location": "Location",
"website": "website",
"Tox address": "Tox address",
"Bitmessage address": "Bitmessage address",
"Language": "Language",
"Sound": "Sound",
"Users": "Users",
}; };
} }
if(preferredLanguage == "es"){ if(preferredLanguage == "es"){
@ -1875,7 +1895,7 @@ if(preferredLanguage == "tr"){
"follows you": "seni takip ediyor", "follows you": "seni takip ediyor",
"Show conversation": "Sohbeti göster", "Show conversation": "Sohbeti göster",
"Mark all as read": "hepsini okundu olarak işaretle", "Mark all as read": "hepsini okundu olarak işaretle",
"show_more_count": "%{count} tane daha...", "show_more_count": "%{smart_count} tane daha...",
"hide": "gizle", "hide": "gizle",
"Show more in this conversation...": "Sohbetin tamamını göster...", "Show more in this conversation...": "Sohbetin tamamını göster...",
"conversation_title": "@%{username} kullanıcısının bir sohbeti", "conversation_title": "@%{username} kullanıcısının bir sohbeti",
@ -1883,6 +1903,230 @@ if(preferredLanguage == "tr"){
}; };
} }
if(preferredLanguage == "cs"){
polyglot.locale("cs");
wordset = {
"Actions ▼": "Akce ▼",
"Active DHT nodes:": "Aktivní uzly DHT: ",
"Add DNS": "Přidat DNS",
"Add peer": "Přidat uzel",
"ajax_error": "Ajax chyba: %{error}", // JavaScript error
"All users publicly followed by": "Všichni uživatelé, které veřejně sleduje",
"Available": "Je volná", // username is available
"Block chain information": "Informace o blockchainu",
"Block chain is up-to-date, twister is ready to use!": "Blockchain je aktuální, twister je připraven k použití!",
"Block generation": "Generování bloků ",
"Cancel": "Zrušit",
"Change user": "Změnit uživatele",
"Checking...": "Ověřuji...", // checking if username is available
"Collapse": "Složit", // smaller view of a post
"Configure block generation": "Nastavení generace bloků",
"Connections:": "Připojení: ", // to network
"Connection lost.": "Žádné připojení do sítě.",
"days": "%{smart_count} dnem |||| %{smart_count} dny |||| %{smart_count} dny",
"Detailed information": "Podrobné informace",
"DHT network down.": "Síť DHT je nedostupná.",
"Direct Messages": "Přímé zprávy",
"Disable": "Vypnuto",
"Display mentions to @": "Zobrazit zmínky o @",
"Display retransmissions": "Zobrazit přeposlané",
"DNS to obtain list of peers:": "DNS pro načtení seznamu uzlů:",
"downloading_block_chain": "Stahuji blockchain, prosím počkejte (blockchain je %{days} dnů starý).",
"download_posts_status": "Staženo %{portion} příspěvků", // Downloaded 10/30 posts
"Enable": "Zapnuto",
"error": "Chyba: %{error}",
"error_connecting_to_daemon": "Chyba: Nemohu se připojit k vašemu lokálnímu serveru.",
"Error in 'createwalletuser' RPC.": "Chyba v RPC funkci 'createwalletuser'.",
"Error in 'importprivkey'": "Chyba v RPC funkci 'importprivkey'. RPC: %{rpc}",
"Error in 'sendnewusertransaction' RPC.": "Chyba v RPC funkci 'sendnewusertransaction'.",
"Expand": "Rozbalit", // larger view of a post
"Favorite": "Přidat k oblíbeným",
"File APIs not supported in this browser.": "Upozornění: váš webový prohlížeč nepodporuje File API.",
"Follow": "Sledovat",
"Followed by": "tohoto uživatele sleduje",
"followed_by": "Uživatelé, které sleduje %{username}",
"Followers": "Sledující",
"Following": "Sledovaní",
"Following users": "Sledovaní uživatelé",
"Force connection to peer:": "Vyžádat připojení k uzlu:",
"General information": "Obecné informace",
"Generate blocks (send promoted messages)": "Generovat bloky (posílat přednostní příspěvky)",
"Home": "Domů", // homepage
"hours": "%{smart_count} hodinou |||| %{smart_count} hodinami |||| %{smart_count} hodinami",
"Internal error: lastPostId unknown (following yourself may fix!)": "Vnitřní chyba: neznámé lastPostId",
"Known peers:": "Známé uzly: ",
"Last block is ahead of your computer time, check your clock.": "Čas posledního bloku je popředu před časem vašeho počítače, zkontrolujte seřízení hodin.",
"mentions_at": "Zmínky o @%{user}",
"minutes": "%{smart_count} minutou |||| %{smart_count} minutami |||| %{smart_count} minutami",
"Must be 16 characters or less.": "Příliš dlouhé, maximum je 16 znaků.", // username
"Network": "Síť",
"Network config": "Nastavení sítě",
"Network status": "Stav sítě",
"New direct message...": "Nová přímá zpráva...",
"New Post...": "Nový příspěvek...",
"new_posts": "%{smart_count} nový příspěvek |||| %{smart_count} nové příspěvky |||| %{smart_count} nových příspěvků",
"nobody": "nikdo", // used to promote a post without attaching the user
"Not available": "Tuto přezdívku již někdo používá", // username is not available
"Number of blocks in block chain:": "Počet bloků v blockchainu: ",
"Number of CPUs to use": "Kolik jader procesoru použít? ",
"Only alphanumeric and underscore allowed.": "Povolena jsou jen písmena, čísla a podtržítko.",
"peer address": "adresa uzlu",
"dns address": "adresa dns",
"Private": "Soukromé",
"Profile": "Profil",
"Postboard": "Nástěnka",
"post": "vložit", // verb - button to post a message
"Post to promote:": "Váš přednostní příspěvek: ",
"Posts": "Příspěvky",
"propagating_nickname": "Posílám novou přezdívku %{username} do sítě...",
"Public": "Veřejné",
"Refresh": "Obnovit",
"retransmit_this": "Chcete tento příspěvek přeposlat těm, kdo vás sledují?",
"Reply": "Odpovědět",
"Reply...": "Odpověď...",
"reply_to": "Odpověď pro %{fullname}",
"Retransmit": "Přeposlat",
"Retransmits": "Přeposlání",
"Retransmitted by": "Přeposlal(a)",
"search": "hledat",
"seconds": "%{smart_count} vteřinou |||| %{smart_count} vteřinami |||| %{smart_count} vteřinami",
"send": "odeslat",
"Send post with username": "Příspěvek vložit pod přezdívkou ",
"Sent Direct Message": "Poslat přímou zprávu",
"Sent Post to @": "Poslat veřejný příspěvek pro @",
"Setup account": "Upravit profil",
"switch_to_network": "Váš lokální server ještě není připojen k síti, nebo teprve stahuje\n" +
"aktuální blockchain. Pokud zůstanete na této stránce, vaše akce možná\n" +
"nebudou fungovat. Chcete se místo toho podívat na stav sítě?",
"The File APIs are not fully supported in this browser.": "Upozornění: váš webový prohlížeč nepodporuje File API.",
"time_ago": "před %{time}", // 5 minutes ago
"Time of the last block:": "Čas posledního bloku: ",
"Type message here": "Sem napište příspěvek",
"Unfollow": "Přestat sledovat",
"Update": "Aktualizovat",
"Updating status...": "Aktualizuji stav...", // status of block chain
"user_not_yet_accepted": "Ostatní uzly ještě nepřijaly tohoto nového uživatele.\n" +
"Proto zatím není možné uložit profil nebo vkládat příspěvky.\n" +
"Počkejte prosím pár minut.\n\n" +
"Tlačítko \"Uložit změny\" bude po dokončení tohoto procesu automaticky\n" +
"povoleno. Slibujeme, že je to naposledy, co musíte čekat než budete moci\n"+
"používat twister.\n" +
"Tip: vyberte si mezitím svůj obrázek!",
"users_mentions": "Zmínky o @%{username}",
"users_profile": "Profil %{username}",
"username_undefined": "Uživatelské jméno není definováno, je třeba se přihlásit.",
"View": "Zobrazit",
"View All": "Zobrazit vše",
"Who to Follow": "Koho sledovat",
"Your message was sent!": "Vaše zpráva byla odeslána!",
"twister login": "přihlášení na twister",
"Existing local users": "Existující lokální účty",
"Or...": "Nebo...",
"Create a new user": "Vytvořit nový účet",
"Login": "Přihlásit",
"Check availability": "Ověřit dostupnost",
"Create this nickname": "Vytvořit tuto přezdívku",
"Type nickname here": "Napište sem přezdívku",
"Import secret key": "Importovat tajný klíč",
"52-characters secret": "52 znaků dlouhý tajný klíč",
"With nickname": "S přezdívkou",
"Import key": "Importovat klíč",
"Client Version:": "Verze klienta:",
"Mining difficulty:": "Obtížnost pro mining:",
"Block generation status": "Stav generování bloků",
"Current hash rate:": "Aktuální rychlost hashování:",
"Terminate Daemon:": "Ukončit server:",
"Exit": "Konec",
"Save Changes": "Uložit změny",
"Secret key:": "Tajný klíč:",
"You have to log in to post messages.": "Pro vkládání příspěvků je třeba se přihlásit.",
"You have to log in to post replies.": "Pro vkládání odpovědí je třeba se přihlásit.",
"You have to log in to retransmit messages.": "Pro přeposílání příspěvků je třeba se přihlásit.",
"You have to log in to use direct messages.": "Pro používání přímých zpráv je třeba se přihlásit.",
"You have to log in to follow users.": "Pro sledování jiných uživatelů je třeba se přihlásit.",
"You are not following anyone because you are not logged in.": "Nikoho nesledujete, protože nejste přihlášen(a).",
"You don't have any followers because you are not logged in.": "Nikdo vás nesleduje, protože nejste přihlášen(a).",
"No one can mention you because you are not logged in.": "Nikdo se o vás nemůže zmínit, protože nejste přihlášen(a).",
"You don't have any profile because you are not logged in.": "Nemáte žádný profil, protože nejste přihlášen(a).",
"Options": "Možnosti",
"Switch to Promoted posts": "Přepnout na přednostní příspěvky",
"Switch to Normal posts": "Přepnout na normální příspěvky",
"Use language": "Jazyk",
"Ignore": "Ignorovat",
"Theme": "Styl grafiky",
"Keys": "Klávesy",
"Sound notifications": "Zvuková upozornění",
"Send key": "Klávesa pro odeslání",
"Posts display": "Zobrazení příspěvků",
"Post editor": "Editor příspěvků",
"Inline image preview": "Náhled vložených obrázků",
"Display": "Zobrazit",
"Line feeds": "Nové řádky",
"Supported punctuations:": "Podporovaná znaménka:",
"Supported emotions:": "Podporovaní smajlíci:",
"Supported signs:": "Podporované značky:",
"Supported fractions:": "Podporované zlomky:",
"Automatic unicode conversion options": "Automatická konverze znaků Unicode",
"Convert punctuations to unicode": "Konvertovat interpunkční znaménka do Unicode",
"Convert emotions codes to unicode symbols": "Konvertovat smajlíky do Unicode",
"Convert common signs to unicode": "Konvertovat běžné značky do Unicode",
"Convert fractions to unicode": "Konvertovat zlomky do Unicode",
"Convert all": "Konvertovat vše",
"Auto": "Detekovat automaticky",
"Original": "Původní",
"none": "žádné",
"Custom": "Vlastní nastavení",
"Mentions": "Zmínky",
"Use proxy for image preview only": "Používat proxy jen pro náhledy obrázků",
"Use external links behind a proxy": "Otevírat externí odkazy skrze proxy server",
"There aren't any posts with this hashtag.": "Nebyly nalezeny žádné příspěvky s tímto štítkem.",
"Split only new post": "Dělit pouze nově vkládaný příspěvek",
"Split all": "Dělit všechny",
"Don't split": "Nedělit",
"Split long posts": "Dělení dlouhých příspěvků",
"Posts that begin with mention": "Příspěvky začínající zmínkou",
"Show all": "Ukázat všechny",
"Show only if I am in": "Ukázat jen když zmiňují mně",
"Show if it's between users I follow": "Ukázat pokud jsou posílány mezi uživateli, které sleduji",
"Postboard displays": "Zobrazení na nástěnce",
"RTs those are close to original twist": "Přeposlání blízká původnímu příspěvku",
"Show if the original is older than": "Ukázat pokud je už originál starší než",
"hour(s)": "hodin",
"only numbers are allowed!": "povolena jsou jen čísla!",
"Show with every user name": "Ukázat u každé přezdívky",
"Show at profile modal only": "Ukázat jen v okně profilu",
"Show if a user follows me": "Ukazovat, zda mně uživatel sleduje",
"follows you": "sleduje vás",
"Show conversation": "Zobrazit rozhovor",
"Mark all as read": "Označit všechny jako přečtené",
"show_more_count": "%{smart_count} další... |||| %{smart_count} další... |||| %{smart_count} dalších...",
"hide": "skrýt",
"Show more in this conversation...": "Zobrazit tento rozhovor...",
"conversation_title": "Rozhovor uživatele @%{username}",
"copy_to_clipboard": "Stiskněte Ctrl+C pro zkopírování, a pak Enter pro zavření tohoto okénka.",
"Normal posts": "Normální příspěvky",
"Promoted posts": "Přednostní příspěvky",
"Messages": "Zprávy",
"Edit profile": "Upravit profil",
"Top Trends": "Hlavní trendy",
"twisted again by": "přeposlal(a)",
"undo": "zpět",
"Are you sure you want to exit the daemon?\nThe Twister client will stop working.": "Skutečně chcete ukončit server?\nTwister tím vypnete.",
"Daemon exited...": "Server ukončen...",
"Secret Key": "Tajný klíč",
"Copy to clipboard": "Kopírovat do clipboardu",
"Full name here": "Sem patří celé jméno",
"Describe yourself": "Napište něco o sobě",
"Location": "Místo, kde žijete",
"website": "Webové stránky",
"Tox address": "Adresa pro Tox",
"Bitmessage address": "Adresa pro Bitmessage",
"Language": "Jazyk",
"Sound": "Zvuky",
"Users": "Uživatelé",
};
}
// uncomment to see all translated words replaced with filler // uncomment to see all translated words replaced with filler
//for(var word in wordset){ //for(var word in wordset){
// wordset[word] = "AAAA"; // wordset[word] = "AAAA";

22
js/interface_profile-edit.js

@ -103,18 +103,22 @@ function verifyUserAlreadyInBlockchain()
}); });
} else { } else {
if( !newUserWarnDisplayed ) { if( !newUserWarnDisplayed ) {
alert("Other peers have not yet accepted this new user.\n" + alert(polyglot.t("user_not_yet_accepted"));
"Unfortunately it is not possible to save profile\n" +
"or send any posts in this state.\n\n" +
"Please wait a few minutes to continue.\n\n" +
"The 'Save Changes' will be automatically enabled\n" +
"when the process completes. (I promise this is\n"+
"the last time you will have to wait before using\n" +
"twister).\n\n" +
"Tip: choose your avatar in the meantime!");
newUserWarnDisplayed = true; newUserWarnDisplayed = true;
} }
setTimeout("verifyUserAlreadyInBlockchain()", 5000); setTimeout("verifyUserAlreadyInBlockchain()", 5000);
} }
}, {} ); }, {} );
} }
function localizePlaceholders()
{
$(".input-name").attr("placeholder",polyglot.t("Full name here"));
$(".input-description").attr("placeholder",polyglot.t("Describe yourself"));
$(".input-city").attr("placeholder",polyglot.t("Location"));
$(".input-website").attr("placeholder",polyglot.t("website"));
$(".input-tox").attr("placeholder",polyglot.t("Tox address"));
$(".input-bitmessage").attr("placeholder",polyglot.t("Bitmessage address"));
}
$(document).ready(localizePlaceholders);

2
js/mobile_abstract.js

@ -98,7 +98,7 @@ var MAL = function()
var newTweetsBarMenu = $(".userMenu").find(".menu-news"); // added for home menu entry var newTweetsBarMenu = $(".userMenu").find(".menu-news"); // added for home menu entry
if( newPosts ) { if( newPosts ) {
document.title = "(" + String(newPosts) + ") twister"; document.title = "(" + String(newPosts) + ") twister";
newTweetsBar.text(String(newPosts) + " new posts"); newTweetsBar.text(polyglot.t("new_posts", newPosts));
newTweetsBar.fadeIn("slow"); newTweetsBar.fadeIn("slow");
newTweetsBarMenu.text(String(newPosts)); newTweetsBarMenu.text(String(newPosts));
newTweetsBarMenu.addClass("show"); newTweetsBarMenu.addClass("show");

12
js/options.js

@ -105,6 +105,7 @@ var TwisterOptions = function()
$('#language').val($.Options.getOption('locLang','auto')) $('#language').val($.Options.getOption('locLang','auto'))
$('#language').on('change', function(){ $('#language').on('change', function(){
$.Options.setOption('locLang', $(this).val()); $.Options.setOption('locLang', $(this).val());
location.reload();
}) })
} }
@ -347,3 +348,14 @@ var TwisterOptions = function()
jQuery.Options = new TwisterOptions; jQuery.Options = new TwisterOptions;
function localizeLabels()
{
$("label[for=tab_language]").text(polyglot.t("Language"));
$("label[for=t-2]").text(polyglot.t("Theme"));
$("label[for=t-3]").text(polyglot.t("Sound"));
$("label[for=t-4]").text(polyglot.t("Keys"));
$("label[for=t-5]").text(polyglot.t("Postboard"));
$("label[for=t-6]").text(polyglot.t("Users"));
}
$(document).ready(localizeLabels);

2
js/twister_following.js

@ -477,7 +477,7 @@ function getWhoFollows(username, item) {
fillWhoFollows(list, item, 0, (list.length > 5 ? 5 : list.length)); fillWhoFollows(list, item, 0, (list.length > 5 ? 5 : list.length));
if (list.length > 5) { if (list.length > 5) {
var more_link = $('<a class="show-more-followers">' + polyglot.t('show_more_count', {'count': list.length - 5}) + '</a>'); var more_link = $('<a class="show-more-followers">' + polyglot.t('show_more_count', {'smart_count': list.length - 5}) + '</a>');
more_link.on('click', function() { more_link.on('click', function() {
fillWhoFollows(list, item, 5, list.length - 5); fillWhoFollows(list, item, 5, list.length - 5);

2
js/twister_network.js

@ -222,7 +222,7 @@ function setSpamMsg() {
} }
function exitDaemon() { function exitDaemon() {
if (confirm('Are you sure you want to exit the daemon?\nThe Twister client will stop working.')) { if (confirm(polyglot.t("Are you sure you want to exit the daemon?\nThe Twister client will stop working."))) {
$( ".terminate-daemon").text("Exiting..."); $( ".terminate-daemon").text("Exiting...");
$( ".terminate-daemon").addClass("disabled"); $( ".terminate-daemon").addClass("disabled");
$.MAL.disableButton( $( ".terminate-daemon") ); $.MAL.disableButton( $( ".terminate-daemon") );

8
login.html

@ -55,7 +55,7 @@
<h2> twister login </h2> <h2> twister login </h2>
<div class="module"> <div class="module">
<p> Existing local users </p> <p> <span>Existing local users</span> </p>
<div> <div>
<select class="local-usernames login-user"> <select class="local-usernames login-user">
</select> </select>
@ -66,7 +66,7 @@
<!-- <span> Or... </span> --> <!-- <span> Or... </span> -->
<div class="module"> <div class="module">
<p> Create a new user </p> <p> <span>Create a new user</span> </p>
<div> <div>
<input class="new-username" type="textbox" placeholder="Type nickname here" cols="16" rows="1"></input> <input class="new-username" type="textbox" placeholder="Type nickname here" cols="16" rows="1"></input>
<button class="check-availability">Check availability</button> <button class="check-availability">Check availability</button>
@ -81,11 +81,11 @@
<div class="module"> <div class="module">
<div> <div>
<p> Import secret key </p> <p> <span>Import secret key</span> </p>
<input class="secret-key-import" type="textbox" placeholder="52-characters secret" size="52" rows="1"></input> <input class="secret-key-import" type="textbox" placeholder="52-characters secret" size="52" rows="1"></input>
</div> </div>
<div> <div>
<p class="with-nickname"> With nickname </p> <p class="with-nickname"> <span>With nickname</span> </p>
<input class="username-import" type="textbox" placeholder="Type nickname here" size="16" rows="1"></input> <input class="username-import" type="textbox" placeholder="Type nickname here" size="16" rows="1"></input>
</div> </div>
<div> <div>

5
options.html

@ -74,6 +74,7 @@
<option value="auto">Auto</option> <option value="auto">Auto</option>
<option value="pt-BR">Brazilian Portuguese</option> <option value="pt-BR">Brazilian Portuguese</option>
<option value="zh">Chinese</option> <option value="zh">Chinese</option>
<option value="cs">Czech</option>
<option value="nl">Dutch</option> <option value="nl">Dutch</option>
<option value="en">English</option> <option value="en">English</option>
<option value="fr">French</option> <option value="fr">French</option>
@ -187,7 +188,7 @@
<p class="label"> Posts display </p> <p class="label"> Posts display </p>
<div> <div>
<form action="" id="lineFeedsOpt"> <form action="" id="lineFeedsOpt">
<p>Line feeds</p> <p class="label">Line feeds</p>
<select name="" id="displayLineFeeds"> <select name="" id="displayLineFeeds">
<option value="disable">Ignore</option> <option value="disable">Ignore</option>
<option value="enable">Display</option> <option value="enable">Display</option>
@ -226,7 +227,7 @@
<option value="enable">Convert all</option> <option value="enable">Convert all</option>
<option value="custom">Custom</option> <option value="custom">Custom</option>
</select> </select>
<div class="suboptions"> <div class="suboptions unicode-suboptions">
<input name="" id="convertPunctuationsOpt" type="checkbox" /> <span class="label">Convert punctuations to unicode</span><br/> <input name="" id="convertPunctuationsOpt" type="checkbox" /> <span class="label">Convert punctuations to unicode</span><br/>
<div> <div>
<label class="label">Supported punctuations: </label> <label class="label">Supported punctuations: </label>

7
theme_nin/css/style.css

@ -8,6 +8,7 @@
@font-face { font-family: "Roboto"; src: url("fonts/roboto/Roboto-MediumItalic.ttf"); font-weight: 500; font-style: italic; } @font-face { font-family: "Roboto"; src: url("fonts/roboto/Roboto-MediumItalic.ttf"); font-weight: 500; font-style: italic; }
@font-face { font-family: "Roboto"; src: url("fonts/roboto/Roboto-BoldItalic.ttf"); font-weight: 700; font-style: italic; } @font-face { font-family: "Roboto"; src: url("fonts/roboto/Roboto-BoldItalic.ttf"); font-weight: 700; font-style: italic; }
@font-face { font-family: "Bemio"; src: url("fonts/BemioItalic.otf"); } @font-face { font-family: "Bemio"; src: url("fonts/BemioItalic.otf"); }
@font-face { font-family: "Symbola"; src: url("/css/Symbola.ttf"); }
/****** fontello ****** */ /****** fontello ****** */
@font-face { font-family: "fontello"; src: url("fonts/fontello/fontello.eot?7584488"); src: url("fonts/fontello/fontello.eot?7584488#iefix") format("embedded-opentype"), url("fonts/fontello/fontello.woff?7584488") format("woff"), url("fonts/fontello/fontello.ttf?7584488") format("truetype"), url("fonts/fontello/fontello.svg?7584488#fontello") format("svg"); font-weight: normal; font-style: normal; } @font-face { font-family: "fontello"; src: url("fonts/fontello/fontello.eot?7584488"); src: url("fonts/fontello/fontello.eot?7584488#iefix") format("embedded-opentype"), url("fonts/fontello/fontello.woff?7584488") format("woff"), url("fonts/fontello/fontello.ttf?7584488") format("truetype"), url("fonts/fontello/fontello.svg?7584488#fontello") format("svg"); font-weight: normal; font-style: normal; }
[class^="icon-"]:before, [class*=" icon-"]:before, .extend-icon:before, .userMenu li.userMenu-config > a:before, .post-context span:before, .post-reply:before, .post-propagate:before, .post-favorite:before, .post .show-more:before, .mini-profile-actions span:before, ul.userMenu-search-profiles button:before, ul.userMenu-search-profiles .modal-back:before, .mini-profile-indicators .userMenu-connections a:before, .mini-profile-indicators .userMenu-messages a:before, .mini-profile-indicators .userMenu-user a:before, .twister-user-remove:before, .refresh-users:before, .modal-close:before, .mark-all-as-read:before, .modal-back:before, .icon-down-after:after { font-family: "fontello"; font-style: normal; font-weight: normal; speak: none; display: inline-block; text-decoration: inherit; width: 1em; margin-right: 3px; text-align: center; font-variant: normal; text-transform: none; line-height: 1em; margin-left: 2px; } [class^="icon-"]:before, [class*=" icon-"]:before, .extend-icon:before, .userMenu li.userMenu-config > a:before, .post-context span:before, .post-reply:before, .post-propagate:before, .post-favorite:before, .post .show-more:before, .mini-profile-actions span:before, ul.userMenu-search-profiles button:before, ul.userMenu-search-profiles .modal-back:before, .mini-profile-indicators .userMenu-connections a:before, .mini-profile-indicators .userMenu-messages a:before, .mini-profile-indicators .userMenu-user a:before, .twister-user-remove:before, .refresh-users:before, .modal-close:before, .mark-all-as-read:before, .modal-back:before, .icon-down-after:after { font-family: "fontello"; font-style: normal; font-weight: normal; speak: none; display: inline-block; text-decoration: inherit; width: 1em; margin-right: 3px; text-align: center; font-variant: normal; text-transform: none; line-height: 1em; margin-left: 2px; }
@ -229,7 +230,7 @@ article, aside, details, figcaption, figure, footer, header, hgroup, main, menu,
.post-info-time { float: right; font-size: 11px; line-height: 14px; text-decoration: none; color: #b3b5b7; } .post-info-time { float: right; font-size: 11px; line-height: 14px; text-decoration: none; color: #b3b5b7; }
.post-info-time:hover { color: #727578; } .post-info-time:hover { color: #727578; }
.post-text { margin: 0 0 0 58px; word-wrap: break-word; min-height: 25px; padding: 0; } .post-text { margin: 0 0 0 58px; word-wrap: break-word; min-height: 25px; padding: 0; font-family: "Roboto", sans-serif, Symbola; }
.post-context { font-size: 11px; line-height: 11px; margin: 0 0 1em 0; color: #b3b5b7; } .post-context { font-size: 11px; line-height: 11px; margin: 0 0 1em 0; color: #b3b5b7; }
.post-context span:before { display: block; float: left; background: #b4c669; text-align: center; padding: 1px 2px 2px 2px; line-height: 9px; font-size: 9px; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; color: white; margin-right: 0.4em; } .post-context span:before { display: block; float: left; background: #b4c669; text-align: center; padding: 1px 2px 2px 2px; line-height: 9px; font-size: 9px; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; color: white; margin-right: 0.4em; }
@ -411,6 +412,7 @@ button, .mini-profile-actions span, .modal-back, a.button { padding: 6px 8px; fo
button:hover, .mini-profile-actions span:hover, .modal-back:hover, a.button:hover { background: #aaaaaa; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1); } button:hover, .mini-profile-actions span:hover, .modal-back:hover, a.button:hover { background: #aaaaaa; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1); }
button.disabled, .mini-profile-actions span.disabled, .disabled.modal-back, a.button.disabled { opacity: 0.5; background-color: #999999; } button.disabled, .mini-profile-actions span.disabled, .disabled.modal-back, a.button.disabled { opacity: 0.5; background-color: #999999; }
button.disabled:hover, .mini-profile-actions span.disabled:hover, .disabled.modal-back:hover, a.button.disabled:hover { color: white; } button.disabled:hover, .mini-profile-actions span.disabled:hover, .disabled.modal-back:hover, a.button.disabled:hover { color: white; }
button.undo-unicode { font-family: "fontello", "Roboto", Symbola; }
.options { position: relative; } .options { position: relative; }
.options .label { font-weight: 700; } .options .label { font-weight: 700; }
@ -499,7 +501,7 @@ ul.userMenu-search-profiles button:after, ul.userMenu-search-profiles .mini-prof
.mini-follower-link:after { content: "·"; font-weight: 900; color: #66686b; margin-left: 1px; } .mini-follower-link:after { content: "·"; font-weight: 900; color: #66686b; margin-left: 1px; }
/**************** POST AREA ************** */ /**************** POST AREA ************** */
.post-area-new textarea { resize: none; box-shadow: none !important; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; width: 100%; display: block; transition: all 0.3s linear; -webkit-transition: height 0.3s linear; -moz-transition: height 0.3s linear; -o-transition: height 0.3s linear; -ms-transition: height 0.3s linear; height: 28px; border: none; background: white; border: 1px solid rgba(0, 0, 0, 0.1); padding: 3px; margin: 5px 0; } .post-area-new textarea { resize: none; box-shadow: none !important; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; width: 100%; display: block; transition: all 0.3s linear; -webkit-transition: height 0.3s linear; -moz-transition: height 0.3s linear; -o-transition: height 0.3s linear; -ms-transition: height 0.3s linear; height: 28px; border: none; background: white; border: 1px solid rgba(0, 0, 0, 0.1); padding: 3px; margin: 5px 0; font-family: "Roboto", sans-serif, Symbola; }
#postboard-top { clear: both; position: relative; margin-bottom: 1px; transition: height 0.3s linear; padding: 10px 10px 5px 10px; background: white; overflow: hidden; } #postboard-top { clear: both; position: relative; margin-bottom: 1px; transition: height 0.3s linear; padding: 10px 10px 5px 10px; background: white; overflow: hidden; }
#postboard-top.hide { display: none !important; } #postboard-top.hide { display: none !important; }
@ -688,6 +690,7 @@ ol.toptrends-list a:hover { background: white; color: #66686b; }
.suboptions { margin: 5px 30px; border: double 2px rgba(69, 71, 77, 0.1); height: 0px; padding: 0 !important; overflow: hidden; float: right; transition: height 0.3s linear; -webkit-transition: height 0.3s linear; -moz-transition: height 0.3s linear; -o-transition: height 0.3s linear; -ms-transition: height 0.3s linear; font-size: 0.9em; line-height: 0.9em; font-style: italic; } .suboptions { margin: 5px 30px; border: double 2px rgba(69, 71, 77, 0.1); height: 0px; padding: 0 !important; overflow: hidden; float: right; transition: height 0.3s linear; -webkit-transition: height 0.3s linear; -moz-transition: height 0.3s linear; -o-transition: height 0.3s linear; -ms-transition: height 0.3s linear; font-size: 0.9em; line-height: 0.9em; font-style: italic; }
.suboptions div { float: none !important; } .suboptions div { float: none !important; }
.suboptions span { font-style: normal; } .suboptions span { font-style: normal; }
.unicode-suboptions { font-family: "Roboto", sans-serif, Symbola; }
/* Autocomplite */ /* Autocomplite */
.textcomplete-wrapper textarea { display: inline; } .textcomplete-wrapper textarea { display: inline; }

2
theme_nin/js/theme_option.js

@ -3,7 +3,7 @@ $(function(){
$('#closeModal').html(''); $('#closeModal').html('');
$('.profile-card-main').attr('style', ''); $('.profile-card-main').attr('style', '');
$('img[src$="img/tornado_avatar.png"]').attr("src","theme_nin/img/tornado_avatar.png"); $('img[src$="img/tornado_avatar.png"]').attr("src","theme_nin/img/tornado_avatar.png");
$('.userMenu-search-profiles button').html('').attr('title','Follow'); $('.userMenu-search-profiles button').html('').attr('title',polyglot.t('Follow'));
$('.mini-profile-actions span').html(''); $('.mini-profile-actions span').html('');
$('.post-context').each(function(){ $('.post-context').each(function(){

Loading…
Cancel
Save