Multiple Language Templates
Wed, 07/28/2010 - 06:23
I am working on a site where it has to be both in English and Spanish. They want a flag at the top to toggle the languages. Can I load a different template through AJAX and not ruin all the form data? Or will I have to reload the page to call a different template?
Any advice on doing multi language sites in qcubed would be great!
Thanks

QCubed has a built in QApplication::Translate function, all you need to worry about is initializing it with the desired language, and having an appropriate .po file with the translations you need.
Check out /assets/_core/php/examples/communication/i18n.php in your local environment.
(Normally, I'd say http://examples.qcu.be/assets/_core/php/examples/communication/i18n.php but it's misconfigured)