GSoC/GCI Archive
Google Code-in 2014 Wikimedia Foundation

Pywikibot: unprotection i18n messages

completed by: Geoffrey Mon

mentors: Fabian, John Vandenberg

Pywikibot (PWB) is a Python-based framework to write bots for MediaWiki. See for more information. Patches can be submitted via Gerrit (you need a account). More documentation on Gerrit can be found at After you have successfully claimed this task in Google Melange please do use the task in Phabricator for communication instead of Google Melange. This allows more PWB developers to be reached! General development questions can be asked on the Pywikibot mailing list at and the #pywikibot IRC channel (see

Pywikibot has internationalisation and localisation (L10n & i18n) support with messages translated on .  See for more information.

The Pywikibot script "" is using i18n messages for protecting pages, however also has functionality to unprotect pages.  When unprotecting pages, the script is using the inappropriate 'protect' messages.

This task is to create new messages for unprotection (English only required), amend the script to use those new messages, and build unit tests for The Phabricator task is

The same problem existed for the script, and the solution can be seen in patches and .  Also see task .