From: Olivier Lamy Date: Mon, 23 Jan 2012 16:20:46 +0000 (+0000) Subject: add a note on i18n which cause to me some weird issue X-Git-Tag: archiva-1.4-M3~1501 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3d6bc9b9fd87b898ed5ce18bb3720e38f4b8c32e;p=archiva.git add a note on i18n which cause to me some weird issue git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1234880 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/site/apt/template-loading.apt b/archiva-modules/archiva-web/archiva-webapp-js/src/site/apt/template-loading.apt index f61527ca0..70ed03666 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/site/apt/template-loading.apt +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/site/apt/template-loading.apt @@ -62,6 +62,9 @@ require(["text!archiva/templates/menu.html","text!archiva/templates/topbar.html" $.tmpl( menu, $.i18n.map ).appendTo("#html-fragments"); to get i18n values in your template you can use ${register} or ${$.i18n.prop('register')} + + Note if you use the simple form ${register} and the property is not available, the template system will try to use if exists the function register + +-------------------------