This is the documentation for concrete5 version 5.6 and earlier. View Current Documentation

First, make sure you have the locale you are trying to switch to installed.

http://www.concrete5.org/developers/translate/

All set? Awesome, let's write some code. Let's say we want to show "Cancel" in Swedish.

Localization::changeLocale('sv_SE');
echo t('Cancel');

That's it. Happy hacking!

Loading Conversation