Xqt created this task. Xqt added projects: Pywikibot, Pywikibot-RfCs. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION Use` siteinfo['fallback']` for language fallback in `i18n` module **Pros** - Official API support: Uses MediaWiki’s standardized `siteinfo['fallback']`. - Consistency: Ensures the same fallback logic across MediaWiki, extensions and bots - Less error-prone: Reduces custom fallback bugs (wrong language, missing fallbacks). - Easier maintenance: No need to update Pywikibot logic when MediaWiki changes fallback behavior or new wikis are added. - Language version: Enable different language versions which are currently disabled for Pywikibot like zh-cn, zh-hant, zh-hk etc. (see twn groups config) **Cons** - Slight performance overhead: Requires fetching `siteinfo['fallback']` even for dry tests or offline running bots - Multi-site complexity: Each site needs a separate API call to get its fallback. **See als** - https://www.mediawiki.org/wiki/API:Siteinfo - https://doc.wikimedia.org/pywikibot/master/api_ref/i18n.html#module-i18n TASK DETAIL https://phabricator.wikimedia.org/T404579 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
