apache / apache/grails-core

inList i18n labels are being ignored.

Open
#14,286 3 comments 3 reactions 0 assignees View on GitHub
relates-to: grails-views
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

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.

Contributor guide

Open the contributing guide

Research direction

Start with the example domain files grails-app/domain/com/mycorp/fieldbugs1/TableOne.groovy and the labels around line 73 of grails-app/i18n/messages.properties. Trace how the index, show, and edit/create views resolve inList labels, comparing them with other labels that work. Done means the defined i18n labels are rendered in all mentioned views.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
internationalization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.