From 62af762e9a5209a848ca9b4f290d1dbf0c526bf6 Mon Sep 17 00:00:00 2001 From: Simon Grim Date: Wed, 4 Mar 2015 05:21:50 +0500 Subject: [PATCH] missing stuff of follow button and following config localization --- js/interface_localization.js | 22 ++++++++++++++++++++++ js/twister_following.js | 4 ++++ 2 files changed, 26 insertions(+) diff --git a/js/interface_localization.js b/js/interface_localization.js index 34115c0..fc20020 100644 --- a/js/interface_localization.js +++ b/js/interface_localization.js @@ -314,6 +314,8 @@ if(preferredLanguage == "es"){ "Favorite": "Favorito", "File APIs not supported in this browser.": "Los archivos API no compatibles con este navegador", "Follow": "Seguir", + "Following config": "Following config", + "Which way do you want to follow": "Which way do you want to follow", "Followed by": "Seguido por", "followed_by": "Seguido por %{username}", "Followers": "Seguidores", @@ -556,6 +558,8 @@ if(preferredLanguage == "uk"){ "Favorite": "Улюблені", "File APIs not supported in this browser.": "File APIs не підтримуєтся цим браузером.", "Follow": "Підписатись", + "Following config": "Following config", + "Which way do you want to follow": "Which way do you want to follow", "Followed by": "Підписаний на", "followed_by": "%{username} підписан", "Followers": "Читачі", @@ -796,6 +800,8 @@ if(preferredLanguage == "zh"){ "Favorite": "收藏", "File APIs not supported in this browser.": "这个浏览器不支持文件APIs", "Follow": "关注", + "Following config": "Following config", + "Which way do you want to follow": "Which way do you want to follow", "Followed by": "被关注", "followed_by": "被 %{username} 关注", "Followers": "粉丝", @@ -1036,6 +1042,8 @@ if(preferredLanguage == "nl"){ "Favorite": "Favoriet", "File APIs not supported in this browser.": "File APIs worden nie ondersteund in deze browser.", "Follow": "Volgen", + "Following config": "Following config", + "Which way do you want to follow": "Which way do you want to follow", "Followed by": "Gevolgd door", "followed_by": "Gevolgd door %{username}", "Followers": "Volgers", @@ -1277,6 +1285,8 @@ if(preferredLanguage == "it"){ "Favorite": "Preferito", "File APIs not supported in this browser.": "File APIs non supportati in questo browser.", "Follow": "Segui", + "Following config": "Following config", + "Which way do you want to follow": "Which way do you want to follow", "Followed by": "Seguito da", "followed_by": "Seguiti da %{username}", "Followers": "Lettori", @@ -1516,6 +1526,8 @@ if(preferredLanguage == "fr"){ "Favorite": "Favori", "File APIs not supported in this browser.": "L'API de fichiers n'est pas pris en charge dans votre navigateur.", "Follow": "Suivre", + "Following config": "Following config", + "Which way do you want to follow": "Which way do you want to follow", "Followed by": "Suivi par", "followed_by": "Suivi par %{username}", "Followers": "Abonnés", @@ -2007,6 +2019,8 @@ if(preferredLanguage == "de"){ "Favorite": "Favorisieren", "File APIs not supported in this browser.": "File APIs werden von diesem Browser nicht unterstützt.", "Follow": "Folgen", + "Following config": "Following config", + "Which way do you want to follow": "Which way do you want to follow", "Followed by": "Gefolgt von", "followed_by": "Gefolgt von %{username}", "Followers": "Followers", @@ -2249,6 +2263,8 @@ if(preferredLanguage == "ja"){ "Favorite": "お気に入り", "File APIs not supported in this browser.": "利用しているブラウザはファイルAPIをサポートしていません。", "Follow": "フォロー", + "Following config": "Following config", + "Which way do you want to follow": "Which way do you want to follow", "Followed by": "フォローされている", "followed_by": "%{username}にフォローされている", "Followers": "フォロワー", @@ -2488,6 +2504,8 @@ if(preferredLanguage == "pt-BR"){ "Favorite": "Favorito", "File APIs not supported in this browser.": "O gerenciamento de arquivos não é suportado neste navegador.", "Follow": "Seguir", + "Following config": "Following config", + "Which way do you want to follow": "Which way do you want to follow", "Followed by": "Seguido por", "followed_by": "Seguido por %{username}", "Followers": "Seguidores", @@ -2731,6 +2749,8 @@ if(preferredLanguage == "tr"){ "Favorite": "Favori", "File APIs not supported in this browser.": "Tarayıcınızda dosya API'si desteklenmiyor.", "Follow": "Takip et", + "Following config": "Following config", + "Which way do you want to follow": "Which way do you want to follow", "Followed by": "Takip edenler", "followed_by": "%{username} tarafından takip edilenler", "Followers": "Takipçiler", @@ -2971,6 +2991,8 @@ if(preferredLanguage == "cs"){ "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", + "Following config": "Following config", + "Which way do you want to follow": "Which way do you want to follow", "Followed by": "tohoto uživatele sleduje", "followed_by": "Uživatelé, které sleduje %{username}", "Followers": "Sledující", diff --git a/js/twister_following.js b/js/twister_following.js index e355b25..d47affc 100644 --- a/js/twister_following.js +++ b/js/twister_following.js @@ -682,6 +682,10 @@ function newFollowingConfigModal(username) { function userClickFollow(e) { e.stopPropagation(); e.preventDefault(); + + var followingInitiator = $(".followingInitiator"); + if (followingInitiator) + followingInitiator.removeClass("followingInitiator"); $(e.target).addClass("followingInitiator"); var $this = $(this);