Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs 日期选择器与翻译_Extjs_Sencha Touch_Sencha Touch 2_Sencha Architect_Sencha Touch 2.1 - Fatal编程技术网

Extjs 日期选择器与翻译

Extjs 日期选择器与翻译,extjs,sencha-touch,sencha-touch-2,sencha-architect,sencha-touch-2.1,Extjs,Sencha Touch,Sencha Touch 2,Sencha Architect,Sencha Touch 2.1,我有一个日期选择器(默认值),我需要在其上将月份列转换为任何其他语言 我还没有能够访问这些字段,似乎也找不到一个合适的方法 有人知道我如何将“选择器”选项设置为我想要的选项(即翻译文本) 工作得很有魅力,很难找到合适的方法 { fn: function(element, eOpts) { var picker = this.query('pickerslot')[0]; var store = picker.getStore();

我有一个日期选择器(默认值),我需要在其上将月份列转换为任何其他语言

我还没有能够访问这些字段,似乎也找不到一个合适的方法

有人知道我如何将“选择器”选项设置为我想要的选项(即翻译文本)

工作得很有魅力,很难找到合适的方法

{
    fn: function(element, eOpts) 
    {
        var picker = this.query('pickerslot')[0];
        var store = picker.getStore();

        for (i in LANG.word.months)
        {
            store.getAt(i).data.text=LANG.word.months[i];
        }

        picker.refresh();
    },
    event: 'painted'
}