https://bugzilla.wikimedia.org/show_bug.cgi?id=69285

            Bug ID: 69285
           Summary: Expose language fallback chain for user language in JS
           Product: MediaWiki
           Version: 1.24-git
          Hardware: All
                OS: All
            Status: NEW
          Keywords: i18n
          Severity: enhancement
          Priority: Unprioritized
         Component: JavaScript
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
       Web browser: ---
   Mobile Platform: ---

Currently, there is only wgUserLanguage in the JS for the user language. Many
user scripts use it to show the proper localization, but many don't use the
correct fallback if localization is missing for that language (in most cases
they just fall back to English). Just one example:
https://www.wikidata.org/wiki/MediaWiki:Gadget-Merge.js has many localizations,
but none for de-at or pfl. The script tries hard to provide good fallbacks, and
will use German for de-at, but for pfl it will fall back to English. If the
fallback chain (e.g. ['de-at', 'de', 'en'] or ['pfl', 'de', 'en']) would be
exposed as JS variable, this would make localization of gadgets and user
scripts much easier.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to