Enhancement
Larger operations that run in the user context (e.g. imports) can result in several error/notice messages. In this case, it does not make sense to terminate with an internationalizable message(TopLogicException) at the first error. When using the Log interface(com.top_logic.basic.Log), several messages with different severity levels can be produced, but this interface does not force the message to be internationalized (message is string).
Improvement
Log interface that forces to internationalize the messages:
#!java public interface I18NLog { void error(ResKey message); ... }
For XML parsing/generation, an interface that both forces/requests internationalization and specifies where a problem occurred:
#!java public interface XMLStreamLog { void error(Location location, ResKey message); ... }
Test
- test.com.top_logic.basic.log.TestI18NLog