Skip to content

Consistent Properties

We should talk about properties. What is your favorite?

Approach A

not_in_range = Seite existiert nicht!

Upsides: Least to write, allows direct use in EL via #{labels.not_in_range}
Downsides: Duplicate IDs can occur very often, one doesn't see where property is used

Approach B

paginator.not_in_range = Seite existiert nicht!

Upsides: Duplicate IDs only possible in one use case, one instantaneously sees what use case this refers to
Downsides: Long, must use #{labels['paginator.not_in_range']} in EL

Approach C

paginator_not_in_range = Seite existiert nicht!

Upsides: Combines both other approaches' strengths
Downside: Long