From 8e0fe20c309f6f8c2e49c27c991ccb83cf016757 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 12 Aug 2023 16:22:58 +0200 Subject: [PATCH] switch langauge --- static/js/home.bakma.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/static/js/home.bakma.js b/static/js/home.bakma.js index 44e0697..a316a07 100644 --- a/static/js/home.bakma.js +++ b/static/js/home.bakma.js @@ -209,20 +209,22 @@ pandora.ui.home = function() { }), $preferencesButton = Ox.Button({ - title: Ox._('Preferences'), + title: Ox._('Türkçe'), width: 252 }) .css({ }) .bindEvent({ click: function() { - pandora.UI.set({page: 'preferences'}); + var value = "tr" + pandora.UI.set({locale: value}); + pandora.setLocale(value, pandora.$ui.appPanel.reload); that.fadeOutScreen(); } }), $aboutButton = Ox.Button({ - title: Ox._('About {0}', [pandora.site.site.name]), + title: Ox._('English'), width: 252 }) .css({ @@ -230,7 +232,9 @@ pandora.ui.home = function() { }) .bindEvent({ click: function() { - pandora.UI.set({page: 'about'}); + var value = "en" + pandora.UI.set({locale: value}); + pandora.setLocale(value, pandora.$ui.appPanel.reload); that.fadeOutScreen(); } }),