switch langauge

This commit is contained in:
j 2023-08-12 16:22:58 +02:00
parent 31579987aa
commit 8e0fe20c30

View file

@ -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();
}
}),