将月份名称更改为cakephp 2+中的印度尼西亚语;

将月份名称更改为cakephp 2+中的印度尼西亚语;,php,cakephp,Php,Cakephp,我想更改默认日期时间选择器中的语言 我在bootstrap.php中设置了以下配置 Configure::write('Config.language', 'id'); setlocale(LC_ALL, 'id'); …app\Locale\id\LC\u MESSAGES\default.po文件包含 msgid "january" msgstr "januari" $from_date_options = array(); $from_date_options['type'

我想更改默认日期时间选择器中的语言

我在bootstrap.php中设置了以下配置

 Configure::write('Config.language', 'id');
 setlocale(LC_ALL, 'id');
…app\Locale\id\LC\u MESSAGES\default.po文件包含

 msgid "january"
 msgstr "januari"
 $from_date_options = array();
 $from_date_options['type'] = 'datetime';
 $from_date_options['div'] = 'clearfix';
 $from_date_options['div'] = 'input text required';
 $from_date_options['orderYear'] = 'asc';
 $from_date_options['minYear'] = date('Y') -10;
 $from_date_options['maxYear'] = date('Y') +10;
 $from_date_options['label'] = __('Starts');                                                                
 $from_date_options['timeFormat'] = '24';
 $from_date_options['dateFormat'] = 'DMY';
 $from_date_options['separator'] = '/';

echo $this->Form->input('CustomPricePerTypestart_date', $from_date_options);
我的视图文件包含

 msgid "january"
 msgstr "januari"
 $from_date_options = array();
 $from_date_options['type'] = 'datetime';
 $from_date_options['div'] = 'clearfix';
 $from_date_options['div'] = 'input text required';
 $from_date_options['orderYear'] = 'asc';
 $from_date_options['minYear'] = date('Y') -10;
 $from_date_options['maxYear'] = date('Y') +10;
 $from_date_options['label'] = __('Starts');                                                                
 $from_date_options['timeFormat'] = '24';
 $from_date_options['dateFormat'] = 'DMY';
 $from_date_options['separator'] = '/';

echo $this->Form->input('CustomPricePerTypestart_date', $from_date_options);
月份未翻译。我哪里出错了

我找到了答案, 引导文件只需要语言配置。它接受以下两种情况

 Configure::write('Config.language', 'id');
 Configure::write('Config.language', 'ind');
文件结构应该是

...app\Locale\ind\LC_MESSAGES\cake.po

试着把它加到蛋糕上。锅不是默认的锅汉克斯迪多斯和你的线索只有我找到了答案