]> source.dussan.org Git - archiva.git/commitdiff
add a note on i18n which cause to me some weird issue
authorOlivier Lamy <olamy@apache.org>
Mon, 23 Jan 2012 16:20:46 +0000 (16:20 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 23 Jan 2012 16:20:46 +0000 (16:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1234880 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/site/apt/template-loading.apt

index f61527ca08f781d9462bdacf5aa3cabb7d880fe3..70ed036669ad6c873156c32b588384b88c60ec5b 100644 (file)
@@ -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
+
 +-------------------------