Page MenuHomePhabricator

Parsoid should not replace namespace aliases by other translations
Open, MediumPublic

Description

See reproduction below

[subbu@earth:~/work/wmf/parsoid] cat /tmp/wt
[[Imagem:Ellipse PLS en.png|256px|thumb|Parâmetros de uma elipse.]]
[subbu@earth:~/work/wmf/parsoid] php bin/parse.php --wt2wt < /tmp/wt
[[Imagem:Ellipse PLS en.png|256px|thumb|Parâmetros de uma elipse.]]

[subbu@earth:~/work/wmf/parsoid] php bin/parse.php --domain pt.wikibooks.org < /tmp/wt > /tmp/old.html
[subbu@earth:~/work/wmf/parsoid] cp /tmp/old.html /tmp/new.html

... edit new.html and change the image ...

[subbu@earth:~/work/wmf/parsoid] php bin/parse.php --domain pt.wikibooks.org --html2wt < /tmp/new.html 
[[Ficheiro:Ellipse_PLS_en.snv|256px|thumb|Parâmetros de uma elipse.]]

On this edit
https://pt.wikibooks.org/wiki/Matem%C3%A1tica_elementar/Trigonometria/Arcos_e_%C3%A2ngulos?diff=270018
VisualEditor replaced the good namespace "Imagem" by "Ficheiro", which is worse.
The word "Ficheiro" is not appropriated here:

  • It is not used in the pt-BR variant, so per discussion in the community it should be avoided whenever it is possible[1][2]. And it is always possible to be avoid this word if the file is an image (because "Imagem" is a common word in pt-BR and pt-PT);
  • It replaced a precise description of the file by a generic one. There is nothing wrong in saying that "Foo.PNG" is a image.

[1] https://pt.wikipedia.org/wiki/WP:Esplanada/propostas/Incentivar_o_uso_de_%22Imagem%22_em_vez_de_%22Arquivo%22_ou_%22Ficheiro%22_(12mar2011)
[2] http://sourceforge.net/p/pywikipediabot/bugs/1323/


Version: unspecified
Severity: normal

Details

Reference
bz63060

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:00 AM
bzimport set Reference to bz63060.

Sorry for the slow triage here; I'm not sure if this is still an issue in Parsoid?

Arlolra triaged this task as Medium priority.Jan 19 2016, 8:27 PM

This happened in dewiki: https://de.wikipedia.org/w/index.php?title=Totengr%C3%A4ber_(K%C3%A4fer)&type=revision&diff=193594417&oldid=191699592
And the funny thing is that some users can reproduce it, and some can't, and sometimes the behaviour just changes. When I tested a few days ago, VE/Parsoid changed every Bild ("Image") to Datei ("File"), but when I tested again today, no such automatic changes occurred, even with the same edits in the same articles.

Now I found the recently created and fixed T237040: Visual editor changing automatically something in text while saving. Can we assume that after that change currently no automatic replacement happens, and that this issue can be closed, too, even if the original cause might have been different?

ssastry updated the task description. (Show Details)
ssastry moved this task from Backlog to Bugs & Crashers on the Parsoid board.