2

I've installed a Craft Pro site with 3 locales: Dutch, French & English, but the people who are going to input data will speak those languages too, so I need to translate the instructions field in the control panel (and, if possible, the field names too since most of the time that makes it clear enough). Is this possible, and if it is: how? Thanks!

1 Answer 1

4

If your main language site is dutch for example, you can do that using your own php files locale and naming them according the other locales languages, en.php, fr.php and put those files in craft/translations/ (a folder you must create yourself). Then you can translate in the array all your string (field name and instructions).

Have a check at the documentation:

Translating Static Text

3
  • Pro-tip: Use namespaces for your fields' translatable instructions – i.e. add a value like "field.body.instructions" to the actual instructions textarea, and then add something like 'field.body.instructions' => 'Awesome instructions', to your static translation files. This works for field titles as well, although it can be a lot of work if you do it across the board :) Commented Oct 6, 2016 at 7:01
  • isn't there an easier way for craft 3?
    – outline4
    Commented Oct 21, 2020 at 18:54
  • I've tried adding a app.php static field translation file, but nothing happens...
    – outline4
    Commented Oct 21, 2020 at 18:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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