2

I have a craft installation (that's up to date), that was installed with english as the system language. Now that Craft has quite a lot of system languages, is there a way to change to another language for the control panel?

7

If you're running Craft Personal or Client, you'll need to go to the craft_locales table in your database and change the locale to one of the support Craft control panel translations (http://buildwithcraft.com/help/cp-languages).

If you're running Craft Pro, you can go to Settings->Locales and add (and re-order) new locales to your site. Then you can go to your user account settings and set your preferred locale from list of existing site locales and the CP will display in that. Again assuming it's one of the locales that the control panel has already been translated into.

| improve this answer | |
  • Yeah, I'm using Personal, so that's why I didn't find anything in the Settings area. Thanks. – peirix Nov 30 '14 at 17:57
3

This solutions works for any locale, even if you don't have it installed as a front-end locale. It also works for Personal or Client Craft installs.

Add a translations file into craft/translations/xx.php named after the currently selected user locale or system locale for Craft Personal installs and use this code to include any locale's translations you want. You can also customize it further by overwriting select translations:

<?php
namespace Craft;

if (craft()->request->isCpRequest())
{
    $en = (include '../craft/app/translations/en_us.php');
    $custom = array(
        'Globals' => 'I freak out!',
    );

    return array_merge($en, $custom);
}

return array();
| improve this answer | |
  • One downside of this approach: it doesn't override plugin translations (if you don not include them aswell). – carlcs Dec 2 '15 at 21:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.