Fra*_*ard 1 translation extjs sencha-touch-2
我需要在我的应用程序中翻译所有selectField的按钮.我做了什么:
Ext.override(Ext.Picker, {
doneButton: 'Terminer',
cancelButton: 'Annuler'
});
Run Code Online (Sandbox Code Playgroud)
不工作.
和...
{
xtype: 'selectfield',
name: 'default_language',
options: [
{text: 'English', value: 'en'},
{text: 'Francais', value: 'fr'}
],
doneButton: {
text: "Terminer"
}
}
Run Code Online (Sandbox Code Playgroud)
不工作......
还有其他想法吗?谢谢.
您可以为两个电话/平板电脑指定配置,Voila:http://docs.sencha.com/touch/2.0.2/#!/ api/Script.field .Select-cfg-defaultPhonePickerConfig
{
xtype : 'selectfield',
label : 'My Label',
defaultPhonePickerConfig : {
doneButton : 'You Button Text!',
cancelButton : 'You Button Text!'
},
options : [
{ text : 'First Option', value : 'first' },
{ text : 'Second Option', value : 'second' },
{ text : 'Third Option', value : 'third' }
]
}
Run Code Online (Sandbox Code Playgroud)