From 1c384ea61f2844a3570b124927503dbb6fc8c331 Mon Sep 17 00:00:00 2001 From: Michael Totschnig Date: Mon, 18 Nov 2024 10:41:10 +0100 Subject: [PATCH] Fix broken redirection to Portuguese site remove outdated redirects --- docs/index.html | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/index.html b/docs/index.html index e98b962aaa..1c9b68bdf8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -14,7 +14,9 @@ var translations, lang; var userLang = (getURLParameter("lang") || window.navigator.userLanguage || window.navigator.language).substring(0,2); if (userLang == 'zh') - userLang = 'zh-tw'; + userLang = 'zh-cn'; + if (userLang == 'pt') + userLang = 'pt-br'; var hash = window.location.hash; switch (hash) { case "#tutorial": @@ -24,10 +26,6 @@ return "http://" + window.location.host + "/" + lang + "/tutorial_r4/introduction.html" case "#paypal": return "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A7ZPSCUTS23K6"; - case "#flattr": - return "https://flattr.com/thing/1028216/My-Expenses-GPL-licenced-Android-Expense-Tracking-App"; - case "#news": - return "https://plus.google.com/116736113799210525299"; case "#changelog": hash = "#versionlist"; break; @@ -38,7 +36,7 @@ hash = "#premium"; break } - translations = ["en","de","fr","it","es","tr","vi","ar","hu","ca","zh-tw","pt","pl","cs","ru","ro","ja","ms","hr","eu","da","bg","el","iw"]; + translations = ["ar","bg","ca","cs","da","de","el","en","es","eu","fr","hr","hu","it","iw","ja","kn","ko","ms","nl","pl","pt-br","pt-pt","ro","ru","ta","te","tr","uk","vi","zh-cn","zh-tw"]; lang = translations.indexOf(userLang) > -1 ? userLang : "en"; return "https://" + window.location.host + "/" + lang + hash; } @@ -52,7 +50,7 @@
  • {{title[1]}}
  • {% endfor %} - +