replace pywikibot.translate with i18n.translate

imported the i18n module if not already
(used multiple inline imports)

note: this change does not include case-by-case improvements

Change-Id: I6cc16f23fe9fbb851b26725557525619c3051a26