[Solved]Unrecognized Locale "gal".

Good morning.

I changed the core messages to Galician.

It works fine but if I write:




echo(Yii::app()->dateFormatter->format('yyyy-mm-dd HH:mm:ss',

                                           '01/01/2012 '.date('H:i:s')));



It shows the error:




Unrecognized locale "gal".



My files:

main.php




'sourceLanguage' => 'en',

        'language'=>'gal',



[u][b]

protected/messages/gal/yii.php[/b][/u]: contains the translation.

Regards.

Hi lagogz,

Probably you have to use "gl_es" instead of "gal".

The locales supported in the framework are listed in "/framework/i18n/data" directory.

Solved!!!

Thanks, softark.

I changed




'language'=>'gal',

to


'language'=>'gl_es',

and ready.

Regards.