Cannot save translations due to 'interface-admin' permission

Thanks @Verdy p:. It will be quite tedious to create a list of links and translations for around 70 messages. Do you think that bug will be resolved soon and would it be better for me to wait for some time until I am able to edit the messages directly?

The Discoverer (talk)12:01, 7 November 2019

I have now understood the problem: These "translations" contain plain HTML tags that are forbidden for being edited in MediaWiki. Notably, they contain plain HTML "a" tags that create hyperlinks, instead of the Mediawiki syntax for internal links. The reason for that is that they need to generate a link to the local page using the "#" syntax, over which a javascript will intercept the message. We cannot translate any message containing <a href="#" ...> here without being a very privileged site administrator of this TranslateWiki.net site (being a translator, or even an translation admin is not enough), because such tags could then contain arbitrary javascript code in the "href" element.

The error is accurate in that there is effectively the restriction in href and all plain HTML links everywhere on any wiki.

Those messages should have used placeholders (to be replaced by the actual HTML part that the Mediawiki editor extension itself need to generate to render these messages).

This is not a bug of Translatewiki.net or of the translation UI, the same restrinction applies if you try to translate the individual message directly in the normal Wikitext editor (which is possible in the "MediaWiki:" namespace only on this wiki and forbidden on all other target wikis where these messages will be imported and published, and where that namespace is also restricted to their local site admins (and forbidden as well to translation admins or other translators).

So this is a bug in the Mediawiki editor extension, to be reported to their authors (the developers of Mediawiki itself concerned by the MediaWiki editor) in Phabricator, so that they'll need to change their code and use the translation messages more properly. Those messages however are already deployed, and cannot be modified easily, they'll need to generate new sets of messages with the placeholders, that will use new separate messages (this time they will be translatable as expected).

For now, none of these messages can be modified in this wiki except by contacting the very few site admins of this wiki: you need to prepare the messages in a separate page (but not that the problematic HTML tags will have to be posted in a page by isolating their content within a <pre>...</pre> or <source lang="html5">...</source> block in your message (using "code" is not enough, they must be posted as literal code).

Not all these messages in the message group contain restricted HTML tags, but they were imported as "plain HTML" text (withjout any MediaWiki syntax restriction) so editing them is only allowed to site admins (on this wiki there are no more than 5 site admins, and generally only one available, and he can take a long time to see the issue and can delay a lot their edit or will not do that due to lack of time and lot of other works to do elsewhere to manage the core of this wiki, but no time dedicated to jsut some translations for what is here a bogous TWN project incorretly imported).

Verdy p (talk)13:13, 7 November 2019

Thanks a lot for your detailed answer @Verdy p:. I will do as you say.

The Discoverer (talk)10:53, 13 November 2019