See for example: https://translatewiki.net/wiki/Special:Translate?group=out-fuel-desktop&language=hi&filter=&action=translate It shows an empty interface to the user. This isn't a very user-friendly behavior. Instead, it should tell the user about it through an error message. Non-TUX shows "Translation to this language is disabled".
Description
Details
Related Objects
Event Timeline
Change 424607 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/Translate@master] Move language validation from Special:Translate to ApiQueryMessageCollection
Change 424607 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Move language validation from Special:Translate to ApiQueryMessageCollection
@Nikerabbit the url in the ticket redirects to the page with the error message about non-existing message group.
.So far, I haven't seen the error messages from the patch:
"apierror-translate-language-disabled": "Translation to $1 is disabled.", "apierror-translate-language-disabled-reason": "Translation to $1 is disabled: $2", "apierror-translate-language-disabled-source": "The source language of this group is $1. Please select another language to translate into."
It seems that these error messages will appear if I can select a valid lang from the list of available languages but it would be disabled? Checking for Special:Translate?group=ext-wikitextloggedinout&language=tlh&filter=&action=translate (https://translatewiki.net/wiki/Portal:Tlh) for the valid message group displays an empty page without any error messages:
@Etonkovidova The patch was merged late my time yesterday, so I had not deployed it yet. Sorry about that, I am doing it now. The patch also fixes other tasks, which I am adding to the QA column (we only added one to not clog up the to-review board).
Other test URLs:
- https://translatewiki.net/w/i.php?title=Special:Translate&group=ajapaik-playstore&language=hif&filter=%21translated&action=translate
- https://translatewiki.net/w/i.php?title=Special:Translate&group=page-User%3ANike%2Ftest&action=page&filter=&language=fi
- https://translatewiki.net/w/i.php?title=Special:Translate&group=ajapaik-playstore&language=en&filter=%21translated&action=translate
Thanks, @Nikerabbit.
https://translatewiki.net/w/i.php?title=Special:Translate&group=ajapaik-app&language=hif&filter=%21translated&action=translate
displays
But strangely, https://translatewiki.net/w/i.php?title=Special:Translate&group=ajapaik-playstore&language=hif&filter=%21translated&action=translate will display
$1 is displayed instead of the language name - is it expected?
I thought that it could be because of the dash in the Group name, but there are many of such group names, e.g. https://translatewiki.net/w/i.php?title=Special:Translate&group=tsint-commonshelper2&language=hif&filter=%21translated&action=translate. I tried few of such names and all seem to be fine.
I am closing the task as Resolve since the reported issues has been fixed.