Last modified: 2014-07-27 00:09:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57242, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55242 - Fix translateAndCapitalizeNamespaces for Portuguese
Fix translateAndCapitalizeNamespaces for Portuguese
Status: NEW
Product: Pywikibot
Classification: Unclassified
Cosmetic changes (Other open bugs)
compat-(1.0)
All All
: Normal enhancement
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:49 UTC by Kunal Mehta (Legoktm)
Modified: 2014-07-27 00:09 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:49:36 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1323/
Reported by: heldergeovane
Created on: 2011-06-30 14:48:20
Subject: Fix translateAndCapitalizeNamespaces for Portuguese
Assigned to: xqt
Original description:
Per discussion on
https://secure.wikimedia.org/wikipedia/pt/wiki/Wikipédia:Esplanada/propostas/Incentivar\_o\_uso\_de\_"Imagem"\_em\_vez\_de\_"Arquivo"\_ou\_"Ficheiro"\_\(12mar2011\)?uselang=en
please, change the function translateAndCapitalizeNamespaces \(from cosmetic\_changes.py\) so that the bots stop doing the following chnges:
\* Image --> Ficheiro
\* File --> Ficheiro
\* Arquivo --> Ficheiro
\* Imagem --> Ficheiro

This is necessary in order to avoid linguistic  problems, considering that "Arquivo" is the preferred word on Brazil but "Ficheiro" is preferred on Portugal.

For \*\*image\*\* files, the word "Imagem" is common to both Portuguese variants, and as such it is preferred, so this should be the name used when changing the namespace name of images. The use of "Ficheiro" and "Arquivo" is preferred only for \*\*other kinds of files\*\* \(such as PDF or OGG\), which are not images.

So, in short, the bots should do the following changes:
\* For images \(i.e. files with one of the following extensions: png, gif, jpg, jpeg, svg, tiff, tif\), change:
\*\* Image --> Imagem
\*\* File --> Imagem
\*\* Ficheiro --> Imagem
\*\* Arquivo --> Imagem
\*For other files \(i.e. files with one of the following extensions: xcf, pdf, mid, ogg, ogv, djvu, oga\):
\*\* Arquivo --> Do not change \(we should respect the variant used by the editors\)
\*\* Ficheiro --> Do not change \(we should respect the variant used by the editors\)
\*\* File --> Do not change \(or change randomly to "Ficheiro" or "Arquivo", since it is indeed a "file" and both pt and pt-BR are acceptable\)
\*\* Image --> Do not change \(or change randomly to "Ficheiro" or "Arquivo", since it is indeed a "file" and both pt and pt-BR are acceptable\)
\*\* Imagem --> Do not change \(or change randomly to "Ficheiro" or "Arquivo", since it is indeed a "file" and both pt and pt-BR are acceptable\)

PS: the output of "python version.py" is the foolowing, although this bug report applies to all versions:
\----
Pywikipedia \[http\] trunk/pywikipedia \(r9323, 2011/06/30, 12:40:56\)
Python 2.7.1+ \(r271:86832, Apr 11 2011, 18:13:53\) 
\[GCC 4.5.2\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: ok
\----
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 04:49:38 UTC
Raising the priority since this bug is still afecting bots on every Portuguese wikis.
Comment 2 Kunal Mehta (Legoktm) 2013-10-05 04:49:39 UTC
- **priority**: 5 --> 7
Comment 3 Kunal Mehta (Legoktm) 2013-10-05 04:49:41 UTC
The bot doesn't see the extension of that links. For implement this behavior, that code needs to be redesigned. Maybe a future feature. If there is a way for fixing namespace aliases without looking at the extension, we could do it sooner. I've deactivated translateAndCapitalizeNamespaces  for the file namespace now.
Comment 4 Kunal Mehta (Legoktm) 2013-10-05 04:49:43 UTC
- **assigned_to**: nobody --> xqt
- **status**: open --> open-later
Comment 5 Kunal Mehta (Legoktm) 2013-10-05 04:49:45 UTC
I guess the prio could be degraded since the code is deactivated
Comment 6 Kunal Mehta (Legoktm) 2013-10-05 04:49:47 UTC
- **priority**: 7 --> 5
Comment 7 John Mark Vandenberg 2014-07-27 00:09:35 UTC
It was reported against compat, but probably exists in the same code that appears in core.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links