Archive i18n_patch contains following files:
logparams.h - This file should be copied into <drlvm_trunk>/vm/port/include/
harmony.properties - This file should be copied into < drlvm_trunk>/vm/vmcore/src/init/
classlib_portlib.patch - patch for CLASSLIB's portlib.
drlvm.patch - patch for drlvm.
Some implementation details:
1. Work with message catalogues was reused (with little overpatching) from CLASSLIB's portlib module. Now, portlib can use 1-4 message catalogues simultaneously instead of 1, because at present we have 2 sets of message catalogues: one for CLASSLIB and second for the drlvm.
2. I added encoding functionality to CLASSLIB's portlib - buf_write_text function. This function convert input buffer to the appropriate platform encoding and return another buffer with converted data. There is a question: Should portlib's version be increased?
3. drlvm logging system (based on apache log4cxx) was adapted to use internationalization. LECHO, LDIE and LWARN macroses were introduced for these purposes.
4. Initial refactoring was done. Almost all DIE, ECHO and WARN messages were replaced by their localized analogs.
This patch was tested on Windows ia32 and Linux ia32.
At present, drlvm has only one message catalogue (harmony.properties file). It is English message catalogue. We should translate this MC to other languages.