Am 17.04.2015 um 22:35 schrieb Maxime Poulin:

Hi,

I can't seem to be able to get Diet templates to be localized properly using the built-in "&" syntax as demonstrated in the example. Calling trWeb() however works fine, so I'm a bit lost on what I did wrong.

@translationContext!MyTranslations
public class MyController {
	public void index(HTTPServerRequest req, HTTPServerResponse res) {
		res.render!("view.dt");
	}
}

The compile-time translation is currently a feature of
vibe.web.web.render and doesn't work with the low level render, so
the following should work:

@translationContext!MyTranslations
public class MyController {
	public void index() {
		render!("view.dt");
	}
}

There should probably a warning message for this situation. I'll look
into that.