Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 451990

Summary: Globalization: i18nUtil should cache message bundles according to the browser's locale.
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: ClientAssignee: libing wang <libingw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 5.0   
Target Milestone: 8.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description libing wang CLA 2014-11-17 17:40:11 EST
The getCachedMessageBundle and setCachedMessageBundle API in i18nUtil.js caches the message bundle without locale information.

This causes issues when I switch from English to another language, say, Chinese.
For example, in settings page, where these two APIs are eventually called, it uses the English version of the messages even though I already switched to Chinese in my browser. But after the cache expires(needs about 15 minutes) when I refresh the page, I saw the Chinese translation.