modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/CoreGUI.gwt.xml | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 70f4a60a2aaabbdbad567794df8de6ab016c773b Author: Mike Thompson mithomps@redhat.com Date: Mon Feb 13 11:22:06 2012 -0800
[BZ752215 - at runtime, automatically detect what GWT locale to use as the default, based on the user's browser preferences] Fixed the runtime detection of browser by explicitly declaring the order of priority of locale resolution. The user agent method was getting lost in the priority. The query param method has the highest resolution (for overriding in testing etc.) followed by user agent for automatic locale detection.
diff --git a/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/CoreGUI.gwt.xml b/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/CoreGUI.gwt.xml index 559ede5..2746532 100644 --- a/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/CoreGUI.gwt.xml +++ b/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/CoreGUI.gwt.xml @@ -121,6 +121,8 @@ --> <extend-property name="locale" values="${gwt.locale}" /> <set-configuration-property name="locale.useragent" value="Y"/> + <set-configuration-property name="locale.usemeta" value="N"/> + <set-configuration-property name="locale.searchorder" value="queryparam,useragent,cookie"/>
<!-- If the locale specified by the user, via the "locale" query string parameter, is not supported, fallback to "en", rather than the "default" locale. -->
rhq-commits@lists.fedorahosted.org