Page MenuHomePhabricator

Google Translate adds extra spaces for templates
Open, MediumPublic

Description

(1) Start translating en:Alice Williams by using Google translate:

Screen Shot 2019-04-12 at 3.50.50 PM.png (92×912 px, 27 KB)

The Interlanguage template will have additional space added after inserted template.

Note: Translating with Yandex/Apertium will not add extra spaces for templates, e.g.

Screen Shot 2019-04-12 at 3.55.10 PM.png (82×510 px, 8 KB)

(2) Start translating en:Truism to es - {{spaced ndash}} template will have extra spaces and Citation needed is completely missing from the target page:

Screen Shot 2019-04-12 at 4.16.45 PM.png (430×1 px, 128 KB)

Note: Translating the same paragraph with Apertium/Yandex will have indication of Citation needed missing -

Screen Shot 2019-04-12 at 4.27.14 PM.png (182×965 px, 64 KB)

(3) translating to Japanese - references have extra space added - en:Hugo Kołłątaj

Screen Shot 2019-04-12 at 4.38.41 PM.png (349×974 px, 161 KB)

translating the same article to Spanish, no extra spaces added:

Screen Shot 2019-04-12 at 4.45.28 PM.png (345×977 px, 144 KB)


A related bug was reported on Google's side.

Event Timeline

Reedy renamed this task from Google Trasnlate adds extra spaces for templates to Google Translate adds extra spaces for templates.Apr 12 2019, 11:42 PM