Page MenuHomePhabricator

Create an alias "mul" for -lang: syntax in pywikibot
Closed, ResolvedPublic

Description

Currently for oldwikisource one needs to use the syntax

... -lang:- ...

which is not obvious. With there having been a change to WMF configuration of oldwikisource to mul.wikisource it would seem reasonable to have an alias (or similar) to be able to use the syntax

... -lang:mul ...

Event Timeline

Billinghurst raised the priority of this task from to Needs Triage.
Billinghurst updated the task description. (Show Details)
Billinghurst subscribed.
jayvdb triaged this task as High priority.Oct 4 2015, 8:09 AM
jayvdb awarded a token.
jayvdb added a project: good first task.
jayvdb added a project: Pywikibot.
jayvdb subscribed.

Looks like I need some help.
-lang: is a global argument, so I guess I need to look at how it is added into user_config.py.

Is generate_user_files.py the only place to add the necessary code (so that the alias is reflected in the user_config.py) or am I missing something here?

No, it should be reflected somewhere in the wikisource family file, where 'mul' should be an alias for '-'. I'm not entirely sure if this is supported yet -- if not, it also needs some code added in family.py to handle aliases (but in that case the tag 'easy' shouldn't have been applied)

I'm placing this up for grabs till I'm done with the tasks I've taken up for GSoC '16.
If no one claims or resolved this by then, I'd be glad to take it up again. :D

Change 326992 had a related patch set uploaded (by Borisfba):
Alias "mul" for "-" added T114574

https://gerrit.wikimedia.org/r/326992

Change 326992 had a related patch set uploaded (by Borisfba):
Alias "mul" for "-" added

https://gerrit.wikimedia.org/r/326992

Change 326992 merged by jenkins-bot:
Alias "mul" for "-" added

https://gerrit.wikimedia.org/r/326992