Changes for page Writing XWiki Rendering Macros in wiki pages
Last modified by Simon Urli on 2023/10/10
Change comment:
Added section about the translations for the macro
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. pbas1 +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 cour ant 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 =