Xqt added a subscriber: Xqt.
Xqt added a comment.

I cannot follow this bug.
For svn I got

  >>> import pwb, pywikibot as py
  >>> from pywikibot import i18n
  >>> template_vars = ('foo', 'bar')
  >>> site = py.Site()
  >>> i18n.twtranslate(site, 'category-renamed', template_vars)
  
  Traceback (most recent call last):
    File "<pyshell#7>", line 1, in <module>
      i18n.twtranslate(site, 'category-renamed', template_vars)
    File "C:\pwb\SVN\core 2.0\pywikibot\i18n.py", line 510, in twtranslate
      return trans % parameters
  TypeError: format requires a mapping
  >>> template_vars = {'oldcat': 'foo', 'authors': 'bar'}
  >>> i18n.twtranslate(site, 'category-renamed', template_vars)
  u'Bot: Verschoben von foo. Autoren: bar'
  >>> 

which means dict is mandatory for 2.0 with svn but you are right for git.


TASK DETAIL
  https://phabricator.wikimedia.org/T107195

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Xqt, gerritbot, Aklapper, pywikibot-bugs-list, XZise, jayvdb, Malyacko, 
P.Copp



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to