https://bugzilla.wikimedia.org/show_bug.cgi?id=38307
Web browser: ---
Bug #: 38307
Summary: JavaScript's mw.language should provide a parallel to
Language->commaList( $arr );
Product: MediaWiki
Version: 1.19
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Internationalization
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
In PHP, one can do:
global $wgLang;
$arr = array( 'Apples', 'Bananas', 'Carrots );
$str = $wgLang->commaList( $arr );
But at the moment one cannot mimic this in JavaScript, even if one has
localised the strings themselves already (as in my case).
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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