On Fri 26 Sep 09:23, Sönke Ludwig wrote:
On Fri, 26 Sep 2014 03:07:36 +0200, Lemonfiend wrote:
Currently only by using the undocumented
diet_translate__
function:input(type="text", placeholder=diet_translate__("my_i18n_placeholder"))
I can't seem to get this to work.
It needs a
@translationContext
defined, but otherwise it seems to work for me. Try putting this into the "web-i18n" example.
Yep you're right, it does work. I must've been trying it on an
un-@translationContext'd webinterface.. now I feel silly :)
Thanks!