switch langauge
This commit is contained in:
parent
31579987aa
commit
8e0fe20c30
1 changed files with 8 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
}),
|
||||
|
|
Loading…
Reference in a new issue