**IMPORTANT** White space separator is discontinued for resource keys

1 view
Skip to first unread message

Indrajit Raychaudhuri

unread,
Feb 22, 2010, 9:22:23 AM2/22/10
to Lift, lift-a...@googlegroups.com
Folks,

If you are an i18n type, read it!

Going forward we are making two policy changes in the naming
convention for i18n resource keys; viz., Discontinuing the usage of
white space to separate keys and preferring all.lower.case for the
keys.

So in you locale properties file, instead of:
Current\ Mood=What ya up to?
you would be writing:
current.mood=What ya up to?

While the former is perfectly valid in in Java (and thus in Scala),
the usage is awkward and confusing. It also throws the IDE code
inspectors off the track :) Further, it's good convention to have the
keys in lower case character.

All the built-in resources in lift-core.properties (and the other
existing locale variant) have been updated. ProtoUser has also been
updated to to reflect the same.

Please reply back to this post if you see something missing.

Cheers, Indrajit

[1] http://groups.google.com/group/liftweb/browse_thread/thread/7c31bc68e33bf0e0/731da62cfc406821
[2] http://www.assembla.com/spaces/liftweb/tickets/320
[3] http://github.com/dpp/liftweb/commit/8d012190168574279369af19dd29f0b5d4086796

Reply all
Reply to author
Forward
0 new messages