Richard Knop napsal(a):
> I need to just translate form error messages in my application.
>
> The application is not multilingual, it is al in Slovak (so I already write
> labels and stuff in Slovak language), just need to translate error messages.
>
> I have made this method in my bootstrap file:
>
> protected function _initTranslate()
> {
> $this->translate = new Zend_Translate('gettext',
>
> '/path/to/translation/source-sk.mo',
> 'sk');
> Zend_Form::setDefaultTranslator($this->translate);
> }
>
> But how to create the source-sk.mo file? Do I need to download it somewhere
> from the Web (I searched for source-sk.mo on Google and haven't found
> anything)?
>
http://framework.zend.com/manual/en/zend.translate.adapter.html#zend.translate.adapter.gettext