Page MenuHomePhabricator

SpecialTranslate: Translating to qqq causes JS error data.validation is undefined
Closed, ResolvedPublic

Description

Summary

Translating to qqq (message documentation) causes JS error,

Uncaught TypeError: data.validation is undefined

Steps to reproduce

  1. Visit https://www.mediawiki.org/w/index.php?title=Special:Translate/page-Template:PD_Help_Page&action=translate&task=view&group=page-Template%3APD+Help+Page&language=qqq&filter=%21translated
  2. Type "assasa" into Template:PD Help Page translation editor
  3. See console

QA plan

  1. After deployment, try typing into the text editor when translating to qqq.
  2. Review the response from translationcheck API call when translating to qqq. It should have the errors and warnings property set to an empty array.

Event Timeline

abi_ triaged this task as Medium priority.
abi_ moved this task from Backlog to tux on the MediaWiki-extensions-Translate board.

Change 612177 had a related patch set uploaded (by Abijeet Patro; owner: Abijeet Patro):
[mediawiki/extensions/Translate@master] ApiTranslationCheck: Remove empty validation response from API

https://gerrit.wikimedia.org/r/612177

abi_ renamed this task from data.validation is undefined to Translating to qqq causes JS error data.validation is undefined.Jul 13 2020, 10:51 AM
abi_ updated the task description. (Show Details)
abi_ renamed this task from Translating to qqq causes JS error data.validation is undefined to SpecialTranslate: Translating to qqq causes JS error data.validation is undefined.Jul 13 2020, 2:22 PM
abi_ updated the task description. (Show Details)

Change 612177 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] ApiTranslationCheck: Remove empty validation response from API

https://gerrit.wikimedia.org/r/612177

This is no longer happening on Mediawiki.org