Birzat wrote
> Hi,
> 
> I would like to use zend_validate file for translate the error messages.
> 
> Can i use module.config.php file for parameter this ?
> 
> For example :
> 
> translator' => array(
>         'locale' => 'zend_validate',
>         'translation_file_patterns' => array(
>             array(
>                 'type'     => 'php',
>                 'base_dir' => __DIR__ . '/../language/fr',
>                 'pattern'  => '%s.php',
>             ),
>         ),
>     ),
> 
> This example is not correct.

Try this code:
    'translator' => array(
        'locale' => 'en_US', // here setup default locale
        'translation_file_patterns' => array(
            array(
                'type'     => 'gettext',
                'base_dir' => __DIR__ . '/../language', // folder with your
translations
                'pattern'  => '%s.mo', //en_US.mo or other "lcoale".mo files
            ),
        ),
    ),





-----
Cheers,
--
Luke Mierzwa
--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/ZF2-Use-Zend-Validate-file-in-module-config-php-tp4656964p4656965.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to