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

           Summary: {{int}} template call partially uses content language
                    rather than user language
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Internationalization
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: d...@ucsc.edu


The issue comes up when you want to get a localized message from the api that
includes parser logic. 

For example:
http://www.mediawiki.org/w/api.php?action=parse&uselang=wa&text={{int:undelete_short|0}}&format=json

returns: <p>Rapexhî 0 candjmints</p>

wa language uses singular form for zero, so the proper transformation per
uselang should be: 
<p>Rapexhî on candjmint </p>

It should certainly not be a mix of the "wa" language key with the "English"
plural parser logic. 

There are two possible solutions that I see:
1) We use "uselang" language instead of wgContentLang when doing action=parse.
This could add a check at the api level for uselang and override wgContentLang.
or 
2) We could have a separate api entry point for localizations with transforms (
ie extend the meta=allmessages entry point with msg arguments. Avoiding the
action=parse and {{int}} hack all together.

-- 
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 watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to