enhancement
Larger operations that run in the user context (e.g., imports) can result in multiple error or warning messages. In this case, it does not make sense to terminate the operation with an internationalizable message (TopLogicException) upon the first error. While using the Log interface (com.top_logic.basic.Log) allows for the generation of multiple messages with different severity levels, this interface does not enforce the internationalization of the message (Message is a String).
Improvement
Log interface that enforces the internationalization of messages:
#!java
public interface I18NLog {
void error(ResKey message);
...
}
For XML parsing or generation, an interface that requires both internationalization and the specification of the location where a problem occurred:
#!java
public interface XMLStreamLog {
void error(Location location, ResKey message);
...
}
Test
- test.com.top_logic.basic.log.TestI18NLog