mbi/django-rosetta — pull request #26 by Celc (2012-02-24 11:05:59+00:00)
Title: Show bing suggest errors.

Bing translate returns an error string that doesn't fire the callback when you supply a language that it doesn't recognize (like zh for Chinese), rosetta would display indefinitely show "...", this patch replaces the link text with the error message using the undocumented onerror callback.

If anyone is interested hte Bing API claims to take a (639-1)[http://msdn.microsoft.com/en-us/library/ff512399.aspx] languageCode which should be `zh` but that gives an error. Instead it expects `zh-CHS` for simpified and `zh-CHT` for traditional. `zh_HK` doesn't work. This is how I encountered the error.