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
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:
-
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 -
-
I've tried adding a app.php static field translation file, but nothing happens...– outline4Commented Oct 21, 2020 at 18:54