Permalink
Browse files

Set locale on the constructor so that elements are translated when cr…

…eated
  • Loading branch information...
1 parent 2f95e2c commit 8fd93f37756e88be3f2a4211fdce550793aed919 @pgiraud pgiraud committed Apr 19, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 Ux/locale/override/st/Component.js
View
6 Ux/locale/override/st/Component.js
@@ -24,6 +24,10 @@ Ext.define('Ux.locale.override.st.Component', {
}
me.callOverridden(arguments);
+
+ if (me.enableLocale) {
+ me.setLocale(Ux.locale.Manager.getLanguage());
+ }
},
setLocale : function(locale) {
@@ -46,4 +50,4 @@ Ext.define('Ux.locale.override.st.Component', {
}
}
}
-});
+});

0 comments on commit 8fd93f3

Please sign in to comment.