Open dgsiegel opened 1 year ago
The string '(No link)' gets defined here: https://github.com/sebastian-lenz/craft-linkfield/blob/main/src/models/LinkType.php#L113
'(No link)'
I was hoping that it will get translated in the linkfield twig template for the select field. But looking at the twig code, I can't find any translation in there. However, as you already added a few translated strings, replacing that line with
return Craft::t('typedlinkfield', '(No link)');
might be the easiest solution.
Interestingly you do translate all other display groups: https://github.com/sebastian-lenz/craft-linkfield/blob/main/src/models/LinkType.php#L103
The string
'(No link)'
gets defined here: https://github.com/sebastian-lenz/craft-linkfield/blob/main/src/models/LinkType.php#L113I was hoping that it will get translated in the linkfield twig template for the select field. But looking at the twig code, I can't find any translation in there. However, as you already added a few translated strings, replacing that line with
return Craft::t('typedlinkfield', '(No link)');
might be the easiest solution.
Interestingly you do translate all other display groups: https://github.com/sebastian-lenz/craft-linkfield/blob/main/src/models/LinkType.php#L103