spicywebau / craft-fieldlabels

Override Craft CMS field labels and instructions in the field layout designer
MIT License
123 stars 9 forks source link

Support site translations for relabel name and instructions #49

Closed bertoost closed 4 years ago

bertoost commented 4 years ago

Description

I'd prefer to write everything in English. But as for my Dutch clients I always translate field labels, instructions, options in dropdowns, select lists etc. etc. Would be great if this awesome relabel plugin also supports this by apply the same technic as Craft does.

\Craft::t('site', $label);

Other information

ttempleton commented 4 years ago

Hi @bertoost,

This is already possible, but Field Labels uses its own translation category to achieve this, rather than using site, so the Field Labels-related translations will work once they are stored in translations/<language>/fieldlabels.php.

bertoost commented 4 years ago

Yeah I already found it. Thanks 👍🏻