gpc / fields

a spiritual successor to the bean-fields plugin
http://gpc.github.io/fields/
84 stars 104 forks source link

More i18n keys wanted #340

Closed sbglasius closed 7 months ago

sbglasius commented 7 months ago

When having a class Button with a String title this creates a i18n key of button.title.label

When having a class using multiple Button properties like:

class MetaInfo {
   Button next
   Button cancel
}

the i18n keys generated and looked up are:

metaInfo.next.title.label
button.title.label
metaInfo.cancel.title.label

Then if I have a second class with the same button properties:

class MetaAck {
   Button next
   Button cancel
}

I get:

metaAck.next.title.label
button.title.label
metaAck.cancel.title.label

I would like to have the additional keys:

next.title.label
cancel.title.label

Having the extra key, without the bean-name would be helpful