https://bugzilla.wikimedia.org/show_bug.cgi?id=58139
Web browser: ---
Bug ID: 58139
Summary: ResourceLoader: 'languageScripts' in the file module
should account for fallback
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Keywords: i18n
Severity: normal
Priority: Unprioritized
Component: ResourceLoader
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
It is by design that ResourceLoader expects languageScripts to be complete
(e.g. no partial fallback) because they are free-form javascript.
However we should still support fallbacks.
e.g. in a case of momentjs, jquery.i18n, or jquery.ui.datepicker like:
'jquery.ui.datepicker' => array(
'languageScripts' => array(
'af' => 'jquery.ui.datepicker-af.js',
'cs' => 'jquery.ui.datepicker-cs.js',
'de' => 'jquery.ui.datepicker-de.js',
'el' => 'jquery.ui.datepicker-el.js',
'en-gb' => 'jquery.ui.datepicker-en-GB.js',
'ru' => 'jquery.ui.datepicker-ru.js',
When, for example, using de-formal, since it isn't specified, should result in
'de' being loaded instead. Not falling back straight to 'en'.
Same for 'ab' falling back to 'ru' etc.
--
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