Multiple Language Templates

Login or register to post comments
1 reply [Last post]
Offline
Joined: 03/09/2009

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

Offline
Joined: 03/31/2008

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)