rodionmoiseev / c10n

A Java library, focused on making internationalisation more modular, easier to evolve and maintain, robust-to-change and IDE-friendly without excess of external tools.
Apache License 2.0
67 stars 10 forks source link

Add support for unformatted messages/resources #7

Closed rodionmoiseev closed 12 years ago

rodionmoiseev commented 12 years ago

Currently all messages specified in @En("message"), @En(intRes="path/to/resource.txt"), are post-filtered through MessageFormat. This may be undesired, for example, when dealing with external resources scripted in some wiki format, like Markdown, since it may use {} notation.

MessageFormat supports escaping of {} but it is not very intuitive and may get quite verbose.

A possible solution would be to add an additional parameter to the annotation, e.g. raw = true, that would skip the MessageFormat filter.