On 25/01/13 16:54, Yuri Astrakhan wrote:
Localization in v2 - all errors AND warnings are localized in default language unless lang= is given, in which case you can get parameter array or a non-default language. All standard translation magic (plural/gender/etc) will be supported. Warnings will always include a warning code. http://www.mediawiki.org/wiki/Requests_for_comment/API_Future#Errors_and_War...
There are two usecases very different. If the api client is a browser/javascript, it is sensible to use $wgLanguageCode, but if it's a bot, we probably want English.