4

I have content editors that speaks different languages. Is there a way to translate the name and introduction of a field in the control panel? A simple {{ "value"|t }} seams not to work.

Example: English content editors should see "surname" as field name and german speaking editors should see "Nachname".

Field configuration

4

Static text on the front-end and Craft CP translations are handled through your translation files.

All you need to do is name your fields without the translate filter and make sure they have suitable translation arrays in your translation files.

It's also worth mentioning you will need Craft Pro to take advantage of localisation and translation features.

Here is an example to get you started, this will be added to the translation file for your German locale:

<?php

return array(
    'Surname' => 'Nachname',
);
  • Great! I tryed only to use translations with the filter. Now, without the filter it works as expected! – Tom Bauer Aug 11 '15 at 14:13

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.