Bugs item #3346901, was opened at 2011-06-30 07:48 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3346901...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: Later Priority: 5 Private: No Submitted By: Helder (heldergeovane) Assigned to: xqt (xqt) Summary: Fix translateAndCapitalizeNamespaces for Portuguese
Initial Comment: Per discussion on https://secure.wikimedia.org/wikipedia/pt/wiki/Wikip%C3%A9dia:Esplanada/prop... 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 By: Nobody/Anonymous (nobody) Date: 2012-03-08 08:36
Message: kxOtUa Hey, thanks for the blog article.Thanks Again. Really Great.
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2011-12-11 22:41
Message: I guess the prio could be degraded since the code is deactivated
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2011-12-11 22:40
Message: 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 By: Helder (heldergeovane) Date: 2011-12-10 11:44
Message: Raising the priority since this bug is still afecting bots on every Portuguese wikis.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3346901...
pywikipedia-bugs@lists.wikimedia.org