From 3d6bc9b9fd87b898ed5ce18bb3720e38f4b8c32e Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 23 Jan 2012 16:20:46 +0000 Subject: [PATCH] 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 --- .../archiva-webapp-js/src/site/apt/template-loading.apt | 3 +++ 1 file changed, 3 insertions(+) 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 + +------------------------- -- 2.39.5