fields icon indicating copy to clipboard operation
fields copied to clipboard

inList i18n labels are being ignored.

Open aadrian opened this issue 7 years ago • 3 comments

Hi,

It seems that inList elements that have labels in the i18n files are rendered without those labels.

e.g. https://github.com/aadrian/fieldbugs1/blob/master/grails-app/domain/com/mycorp/fieldbugs1/TableOne.groovy#L8 and https://github.com/aadrian/fieldbugs1/blob/master/grails-app/domain/com/mycorp/fieldbugs1/TableOne.groovy#L10

have i18n labels starting from https://github.com/aadrian/fieldbugs1/blob/master/grails-app/i18n/messages.properties#L73

yet in the index, show and edit/create views they don't seem to be used :(. Other labels seem to be used correctly.

Thank you.

aadrian avatar Mar 19 '18 13:03 aadrian

I also noticed this problem.

zexxar avatar Mar 21 '18 05:03 zexxar

I think this should be an opt-in solution/configurable. There have never been support for this, and we could break behavior if changing it. Imagine a inLIst:['S','M','L','XL'] which renders just the single letter now, upgrading the plugin suddenly would render some.package.name.l.label

JacobAae avatar Oct 18 '18 15:10 JacobAae

think this should be an opt-in solution/configurable.

As I mentioned in the description: "inList elements that have labels in the i18n files"

aadrian avatar Oct 19 '18 16:10 aadrian