Este conteúdo não está disponível no idioma selecionado.
6.2. Changing the User Interface Language
Procedure 6.1. Change the User Interface Language
- Edit the
index.jspfile, which is located in thejboss-brms.wardirectory, to specify an alternative locale. The defaultindex.jspfile uses United States English as the language.Example 6.1. The default
index.jsp<% String redirectURL = "org.drools.guvnor.Guvnor/Guvnor.html"; response.sendRedirect(redirectURL); %>
<% String redirectURL = "org.drools.guvnor.Guvnor/Guvnor.html"; response.sendRedirect(redirectURL); %>Copy to Clipboard Copied! Toggle word wrap Toggle overflow To specify Japanese as the default language, edit the file as follows:Example 6.2.
index.jspwith Japanese as the default language<% String redirectURL = "org.drools.guvnor.Guvnor/Guvnor.html?locale=ja_JP"; response.sendRedirect(redirectURL); %>
<% String redirectURL = "org.drools.guvnor.Guvnor/Guvnor.html?locale=ja_JP"; response.sendRedirect(redirectURL); %>Copy to Clipboard Copied! Toggle word wrap Toggle overflow To specify Simplified Chinese as the default language, edit the file as follows:Example 6.3.
index.jspwith Simplified Chinese as the default language<% String redirectURL = "org.drools.guvnor.Guvnor/Guvnor.html?locale=zh_CN"; response.sendRedirect(redirectURL); %>
<% String redirectURL = "org.drools.guvnor.Guvnor/Guvnor.html?locale=zh_CN"; response.sendRedirect(redirectURL); %>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Edit preferences.properties
Edit thepreferences.propertiesfile to specify the required default country and default language codes. Thepreferences.propertiesfile is located in thejboss-brms.war/WEB-INF/classes/directory. The defaultpreferences.propertiesfile uses United States English as the language and the United States as the default country.Example 6.4. preferences.properties with US defaults
drools.defaultlanguage=en drools.defaultcountry=US
drools.defaultlanguage=en drools.defaultcountry=USCopy to Clipboard Copied! Toggle word wrap Toggle overflow To specify Japanese as the default language, edit the file as follows:Example 6.5. preferences.properties with Japanese defaults
drools.defaultlanguage=ja drools.defaultcountry=JP
drools.defaultlanguage=ja drools.defaultcountry=JPCopy to Clipboard Copied! Toggle word wrap Toggle overflow To specify Simplified Chinese as the default language, edit the file as follows:Example 6.6. preferences.properties with Simplified Chinese Defaults
drools.defaultlanguage=zh drools.defaultcountry=CH
drools.defaultlanguage=zh drools.defaultcountry=CHCopy to Clipboard Copied! Toggle word wrap Toggle overflow Change the Date Format
If multiple instances of the JBoss BRMS user interface are deployed with different languages specified, the format of the date must be changed so that each instance can correctly interpret the date. The following procedure can only be performed on new installations of JBoss Enterprise BRMS that do not include existing rules or test scenarios that include date values, as changing the format will corrupt existing date values.Specify the date format inpreferences.properties.Change the date format from:drools.dateformat=dd-MMM-yyyy
drools.dateformat=dd-MMM-yyyyCopy to Clipboard Copied! Toggle word wrap Toggle overflow To:drools.dateformat=yyyy-MM-dd
drools.dateformat=yyyy-MM-ddCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note
The change in format is only effective after the JBoss Enterprise BRMS server has been restarted.
Complete URLs for the Supported Languages
- Japanese
- Simplified Chinese
- US English