Hi there! I'm Adam. I work on Mifos. Mifos uses Spring MVC and Freemarker.
Anyone have a macro for helping translation of messages with links?
A set of messages like this:
is much more of a pain to translate than this:Code:welcome.begin=Hello, please welcome.linktext=click here welcome.end=to login.
The former is called a "lego message" or a "patchwork message" by a translator. Stand-alone phrases are most amenable to translation. Since context is lost in a patchwork message, this may lead to a poor translation.Code:welcome.text=Hello, please click here to login.
But, as you might have guessed, the first version is more convenient for a developer when they need to wrap, say, an html anchor element around the "click here" text, like so:
Here's a real patchwork message in Mifos (screenshot of same). We got an idea from Siebrand, one of the kind folks at Translatewiki.net to use MarkdownJ, and an example Freemarker macro using a custom link markup by Van (a Mifos developer).Code:Hello, please <a href="http://example.com/login">click here</a> to login.
Does anyone have another way they allow messages with links to be translated as phrases? Do you use MarkdownJ, some other off-the-shelf syntax, or something custom?