Page MenuHomePhabricator

Apertium fails to translate a quote template
Closed, ResolvedPublic

Description

Translating en:Užican_dialect to Spanish. Under "History" section, there is one quote that starts with "The Turkish influence...".

Trying to translate that quote silently fails and empty section is added instead, while using Apertium.

Event Timeline

santhosh edited projects, added CX-cxserver; removed ContentTranslation.

Change 463454 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/services/cxserver@master] Do not pass blank textblocks to machine translation services

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

Before the patch, trying to translate the quote resulted in empty section. With the patch, template is adapted, although author is not mapped well: you can see "24px24px" being used in the author field.
As far as the main piece of text goes, the source is applied, not translated via Apertium.

cx2-quote-template-apertium.png (317×795 px, 18 KB)

No plans to translate the content of template params. We don't do it for any templates.

Parameter mapping depends so many details. And not 100% guranteed. In this case the template params are numbered params and order differs in source and target language. This will require editor intervention.

image.png (494×788 px, 24 KB)

Change 463454 merged by jenkins-bot:
[mediawiki/services/cxserver@master] Do not pass blank textblocks to machine translation services

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

@KartikMistry - has cxserver been deployed? The issue is still present in testwiki (wmf.24) although Apertium handles the translation as per @Petar.petkovic comment's screenshot. The translation of quote template still silently fails in cx2 (both for Apertium and Yandex(of course)).

Mentioned in SAL (#wikimedia-operations) [2018-10-15T03:18:46Z] <kartik@deploy1001> Finished deploy [cxserver/deploy@5a70ef1]: Update cxserver to 47a864b (T205420, T203077, T205700, T205616) (duration: 04m 44s)

Verified. It doesn't silently fail now.

Re-checked in wmf.26 - Apertium doesn't silently fails, but doesn't translate the quote template either:

Screen Shot 2018-10-21 at 3.09.32 PM.png (592×1 px, 190 KB)

Since the title of this task was about actually translating the content of the quote template - "Apertium fails to translate a quote template" - I'm moving the task back to Priority Backlog.

Pginer-WMF subscribed.

Since the title of this task was about actually translating the content of the quote template - "Apertium fails to translate a quote template" - I'm moving the task back to Priority Backlog.

Moving to general backlog since it was not in priority backlog before.

No plans to translate the content of template params. We don't do it for any templates.

Moving back to QA, because the reason the ticket got moved to Backlog is the template params not being translated.

@Petar.petkovic translating quote template in cx2 strangely regressed Apertium silently failing.

In production (wmf.26)

  • the quote is displayed in English as before (see the screenshot in my comment above)
  • a user is correctly informed that "Template unavailable"

Given the current behavior for translating quote template in production in production and @santhosh comment

No plans to translate the content of template params. We don't do it for any templates.

I am closing the issue as resolved.