xclass: 'Ext.app.ViewController',
init: function(view) {
let language = Ext.util.Cookies.get(view.cookieName) || '__default__';
+ if (language === 'kr') {
+ // fix-up wrongly used Korean code before FIXME: remove with trixie releases
+ language = 'ko';
+ let expire = Ext.Date.add(new Date(), Ext.Date.YEAR, 10);
+ Ext.util.Cookies.set(view.cookieName, language, expire);
+ }
this.getViewModel().set('language', language);
},
applyLanguage: function(button) {