(Go: >> BACK << -|- >> HOME <<)

Page MenuHomePhabricator

Language templates causing problems in both the source and translation
Closed, ResolvedPublic

Description

When translating Kaidu from English to Spanish, there are some problems with the Language-related templates used in the first text paragraph:

  • The Lang-mn template used to show Mongolian text is rendered in the source document with an unexpected "<> templatestyles" element.
  • When the paragraph is added to the translation, the templatestyles element is transferred and the rest of the paragraph after it is lost (this happens with Google and Yandex but not Apertium)

Screenshot 2019-09-17 at 09.59.38.png (388×846 px, 97 KB)

There are no javascript errors in the console.

This quick link allows to test the specific issue based on an example page.

Event Timeline

Change 537982 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/services/cxserver@master] Do not include template styles in the content to translate

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

Change 537982 merged by jenkins-bot:
[mediawiki/services/cxserver@master] Do not include template styles in the content to translate

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

not working in prod and can't test in cx2-testing, waiting for env fix or deploy to prod

Change 539520 had a related patch set uploaded (by KartikMistry; owner: KartikMistry):
[operations/deployment-charts@master] Update cxserver to 2019-09-26-034732-production

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

Change 539520 merged by jenkins-bot:
[operations/deployment-charts@master] Update cxserver to 2019-09-26-034732-production

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