Excelent tutorial. In the function $this->translate->_('Book'); how I can tranlate in Zend_Form in labels?. I need to change something in bootstrap?. Tnks
Nice idea, it seems zend_translate is a lot more powerfull than I thought it'd be. I'm simply using a template engine (smarty) to have code and design separated. All my dynamic text is in a mysql database and prefixed text is in a xml file. Depending on what the user has set as his default language, it queries different mysql tables and loads the specific xml files.
Love your tutorials! Watched every single one of them and it helps me a lot! Thanks Alex, keep up the awesome work.
Thats an interesting way of doing it and gives me an idea: I wonder if anyone out there created a full adapter that looks up and stores translations in a DB. I doubt there is anything like it ATM since storing translations in a DB don't seem standard or cross-platform but something one could invest writing an adapter for. Or perhaps this could be a way for a different translation system where translators do not have get to know a translation program, like poedit, but use a web interface.
Great job .... :)
nichetechinstitute 3 months ago
Excelent tutorial. In the function $this->translate->_('Book'); how I can tranlate in Zend_Form in labels?. I need to change something in bootstrap?. Tnks
mastuero 2 years ago
$form->setTranslator($translateInstance);
setTranslator method is also available for individual elements if needed.
integral30 2 years ago
Nice idea, it seems zend_translate is a lot more powerfull than I thought it'd be. I'm simply using a template engine (smarty) to have code and design separated. All my dynamic text is in a mysql database and prefixed text is in a xml file. Depending on what the user has set as his default language, it queries different mysql tables and loads the specific xml files.
Love your tutorials! Watched every single one of them and it helps me a lot! Thanks Alex, keep up the awesome work.
Hobbitstomper 2 years ago
Thats an interesting way of doing it and gives me an idea: I wonder if anyone out there created a full adapter that looks up and stores translations in a DB. I doubt there is anything like it ATM since storing translations in a DB don't seem standard or cross-platform but something one could invest writing an adapter for. Or perhaps this could be a way for a different translation system where translators do not have get to know a translation program, like poedit, but use a web interface.
integral30 2 years ago