Steps to replicate the issue (include links if applicable):
- Export translations contains any fuzzy translations into gettext .po file with Special:ExportTranslations page, then import it back with Special:ImportTranslations page without any changes.
What happens?:
There is a significant bug in the extension which makes it impossible to fully use the Special:ImportTranslations function with the gettext format in cases where the imported po-file contains strings with fuzzy translations. When lines containing, e.g.:
#, fuzzy msgctxt "Help:Requests_for_deletions/1" msgid "Items which do not meet [[$1|Wikidata's notability policy]] can be deleted. Please nominate items for deletions on [[Wikidata:Requests for deletions]] under the \"Requests\" section below. If it is obvious vandalism, just add the page directly (''[[$2|gadget]] available''), or ping an [[$3|administrator]] to delete it. Contact can also be made with an administrator in $4." msgstr "Элементы, не отвечающие [[$1|правилам Викиданных о значимости]], могут быть удалены. Пожалуйста, оставляйте здесь заявки на удаление элементов под заголовком «Запросы» ниже. Если это очевидный вандализм, просто добавьте страницу сюда (''доступен [[$2|гаджет]]'') либо попросите [[$3|администратора]] удалить её. Можно также связаться с администратором с помощью $4."
are imported, instead of being marked as "Import and fuzzy", as they should be, the label "!!FUZZY!!" is added directly before the translation text. This causes already existing translations marked as fuzzy to duplicate this tag, which turns into "!!FUZZY!!!!FUZZY!!" in the text and ruins the translation. As an example, you can see it here: https://www.wikidata.org/w/index.php?title=Translations:Help:Requests_for_deletions/1/ru&type=revision&diff=1774680393&oldid=1299499243&diffmode=source
Please fix this behavior in the extension and make sure that fuzzy translations are marked with Special:ImportTranslations page interface instead of adding prefix label.
What should have happened instead?:
Translations should be imported without additional "!!FUZZY!!" mark if it is already exist in text.