https://bugzilla.wikimedia.org/show_bug.cgi?id=38675
--- Comment #4 from [email protected] 2012-08-24 07:57:00 UTC --- Can't find my notes on this but basically this is what needs to be fixed if we want a generalized approach that solves this in general * Change the calls to dieUsage to dieUsageMsg wheree applicable, or * Change the calls to wfMsg in dieUsage * Add the necessary arguments to the result in dieUsage where such arguments are needed for later processing, and * Make sure it is safe to report those arguments * Copy the now localized messages from the i18n-file to getPossibleErrors, or * Copy them to the actual call to dieUsage, or * Copy them to the actual call to dieUsageMsg (more trouble with args) * Investigate if the rest of the API is sufficiently well-behaved that we can localize in the user interface * Figure out which API error message we want to localize that is now in the details section, or (we could easily end up with a 3-figure number) * If we simply don't want to localize them at all, or * If we simply don't want to show error messages in the details section at all * Figure out which API error message we want to map to simplified UI messages * Implement the API calls to get the localized messages ** Inject a spinner into the details section ** A request to meta=allmessages (session-failure will give a call http://wikidata-test-repo.wikimedia.de/w/api.php?action=query&meta=allmessages&ammessages=wikibase-api-session-failure&amlang=de) ** Store the error message in the ordinary message structure in the browser ** Insert the args supplied from the error message (the dieUsage/dieUsageMsg) into the localized message ** Remove the spinner from the details section ** Insert the finalized localized message into the details section I don't think that this has an easy fix. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
