Last modified by Raphaƫl Jakse on 2022/03/17

From version 17.1
edited by slauriere
on 2018/05/16
Change comment: a short warning in case of a single parameter is used was added
To version 16.1
edited by Vincent Massol
on 2017/09/05
Change comment: Renamed back-links.

Summary

Details

Page properties
Parent
... ... @@ -1,1 +1,1 @@
1 -xwiki:Documentation.DevGuide.Tutorials.WebHome
1 +xwiki:Documentation.DevGuide.WebHome
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.slauriere
1 +XWiki.VincentMassol
Content
... ... @@ -36,7 +36,7 @@
36 36  $services.localization.render("key", ["param1", "param2", ...])
37 37  {{/code}}
38 38  
39 -where ##key## is the key for the message to retrieve. Parameters can also be passed as is shown in the second syntax above. Beware the parameters need to be passed as an array, not a plain String even if there's only one parameter: {{code}}$services.localization.render("key", ["param1"]){{/code}}.
39 +where ##key## is the key for the message to retrieve. Parameters can also be passed as is shown in the second syntax above.
40 40  )))
41 41  
42 42  == Old way ==

Get Connected