benel / Dolomite

Directories Led by Members
https://github.com/benel/Dolomite/wiki
21 stars 20 forks source link

Fix: Error messages in both languages fr & en #57

Closed jeranvier closed 12 years ago

jeranvier commented 13 years ago

The error messages such a the messages in the app/controllers/inscription.java @Required(message="The first password is required") should not be set directly in the source code but should refer to a message in the message.en and message.fr file.

However, the @required annotation only allow the use of constants (It's not possible to call the Message class). An idea could be to handle the error messages directly in the body of the methods, it is less easier than with annotations but would allow the use of multi-languages