Details
-
Improvement
-
Status: Open
-
Trivial
-
Resolution: Unresolved
-
None
-
None
-
None
Description
All modules in Harmony project are to be internationalized.
After applying HARMONY-1201 patch every module has o.a.h.<module>.internal.nls package where you can find initial property file messages.properties with messages and Messages class to use these messages in sources. Keys in messages.properties file are supposed to have names <module>.<num>, where <module> is module name and <num> number of the message in the messages list in hex format.
The task is to scan modules source files, find exception messages, extract them into the resource bundle and replace these messages in the source
files with corresponding Messages.getString() call by key parameter from the resource bundle. The most convenient way to implement this is to use Eclipse with it's tool to externalize strings. The way to do that and it's advantages/disadvantages were discussed in the [classlib]strings externalization thread [1]. Strings that are not supposed to be externalized should be marked with NON-NLS tags (Eclipse tool skip such strings during externalization process).