Last modified by Simon Urli on 2023/10/10

<
From version < 91.2 >
edited by Pascal Bastien
on 2016/06/29
To version < 91.1 >
edited by Anca Luca
on 2016/05/03
>
Change comment: Added section about the translations for the macro

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.pbas
1 +XWiki.lucaa
Content
... ... @@ -94,10 +94,8 @@
94 94  {{hello greetUser="true"/}}
95 95  {{/code}}
96 96  
97 -== Translations ==
97 +== Translations ==
98 98  
99 -
100 -
101 101  When your macro is ready, you might want to provide the description of the macro and its parameters in different languages. For that, you need to create a set of translation keys and values (as described [[here>>DevGuide.InternationalizingApplications]]) and then just use the following convention for the keys you add in this storage (no modification is needed on the macro itself, the association of the translations to the macro is done based on a convention of the form of the translation keys):
102 102  
103 103  {{code}}
... ... @@ -116,7 +116,7 @@
116 116  rendering.macro.hello.name=Macro pour dire bonjour
117 117  rendering.macro.hello.description=Ceci est une macro qui va dire "Bonjour" a l'utilisateur
118 118  rendering.macro.hello.parameter.greetUser.name=Personnaliser le message
119 -rendering.macro.hello.parameter.greetUser.description=Personnaliser le message pour l'utilisateur courant en train de visualiser la page. Les valeurs possibles sont "true" (oui) et "false" (non).
117 +rendering.macro.hello.parameter.greetUser.description=Personnaliser le message pour l'utilisateur courent en train de visualiser la page. Les valeurs possibles sont "true" (oui) et "false" (non).
120 120  {{/code}}
121 121  
122 122  = WYSIWYG Access =

Get Connected