Page MenuHomePhabricator

Load l10n dicts using i18n.translate
Open, LowPublic

Description

There are many l10n dicts all over Pywikibot, that are loaded using get(code) or dict[code]. These should be loaded using i18n.translate to standardize their behavior.

Examples:

  • edit_restricted_templates
  • category_redirect_templates
  • primary_topic_format
  • nowCommons
  • misspellingCategory
  • misspellingTemplate
  • ignoreTemplates
  • moved_links
  • informationTemplate
  • informationFields
  • nowCommonsTemplate
  • whitelists
  • disambiguationTemplates
  • linktrails
  • _catredirtemplates

Event Timeline

Dvorapa created this task.Mar 24 2019, 1:10 PM
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald TranscriptMar 24 2019, 1:10 PM

Change 507974 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [IMPR] use i18n.translate instead of getCommonscatTemplate class method

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

Xqt triaged this task as Low priority.May 3 2019, 6:13 PM

getCommonscatTemplate was the best example of a method that should be replaced by i18n.translate in this task

Change 507974 merged by jenkins-bot:
[pywikibot/core@master] [IMPR] use i18n.translate instead of getCommonscatTemplate class method

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

Dvorapa updated the task description. (Show Details)May 3 2019, 6:42 PM