Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
18.10.0
-
Unknown
-
Description
The Insert Macro and Edit Macro dialogs of the WYSIWYG editor display the name, description, content description, parameter names and descriptions, parameter group names and enum values of a macro from translation keys (built by MacroDescriptorUIFactory and the html_displayer/enum/edit.vm template). When the English key is missing, the dialog falls back on the hard-coded English text of the Java macro descriptor or of the wiki macro object. English users don't notice anything, but there is nothing to translate on l10n.xwiki.org, so the text stays in English in every language. Review keeps missing it, the latest case being the rawSyntax parameter of the script macros added by XWIKI-26161.
The standard flavor (19.0.0-SNAPSHOT) misses 72 such keys, over 21 macros:
- the 6 notifications*Preferences macros (4 of them have no name or description key at all, and the user parameter is missing for all of them)
- pdftoc, gallery, wikimacroparameter, wikimacrocontent, context, documents, tree, async, attachmentGalleryPicker, translation, office
- include and display (excludeFirstHeading parameter and reference group)
- enum values of the code (layout), context (transformation context mode) and toc (scope) macros
Note that the macros of the Internal category (e.g. pdftoc) are listed too in the Insert Macro dialog for users who display hidden pages, so they need the keys as well.
This issue is about:
- adding the 72 missing English keys to the right translation bundles / Translations pages
- adding a functional test, run on the standard flavor, that lists every registered macro (Java and wiki macros) and fails, naming each missing key, when an English translation key used by the macro dialogs is missing
Attachments
Issue Links
- relates to
-
XWIKI-26161 Allow script macros to output raw HTML instead of wiki syntax
-
- Open
-