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: wikibugs-l@lists.wikimedia.org
        ReportedBy: jarry1...@gmail.com
                CC: asha...@wikimedia.org, niklas.laxst...@gmail.com,
                    s.mazel...@xs4all.nl
    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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to