HomePhabricator

MWLink: Add a check for title attribute before attempting MT

Authored by santhosh on Jul 3 2019, 8:39 AM.

Description

MWLink: Add a check for title attribute before attempting MT

The MTClient was throwing "Invalid sourceHtml" when the content to
translate is empty or not present. The call was originated from
MWLink translatedLabelRequest

I could not find a case where the title can be empty or not present.
But adding a check anyway.

Bug: T226611
Change-Id: Ic43dd7bbe2a9f0fbb5bca0fcd1bd9c9a05492bbc

Details

Committed
santhoshJul 3 2019, 9:34 AM
Parents
rGCXSaddd2ae5c2f0: Enable machine translation for Italian
Branches
Unknown
Tags
Unknown
References
refs/changes/84/520384/2
ChangeId
Ic43dd7bbe2a9f0fbb5bca0fcd1bd9c9a05492bbc