Quantcast

Zend_Translate Help - Slovak Languege

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Zend_Translate Help - Slovak Languege

Richard Knop
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)?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Zend_Translate Help - Slovak Languege

sNop
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


signature.asc (267 bytes) Download Attachment
Loading...