Chapitre 3. Localisation
- Anglais États-Unis (
en-US
) - Japonais (
ja-JP
) - Chinois simplifié (
zh-CN
)
Procédure 3.1. Changer la langue de l'interface Web
Trouver index.jsp
Le fichierindex.jsp
se situe dans le répertoirejboss-brms.war
.Éditer index.jsp
Éditer le fichierindex.jsp
pour spécifier une locale différente. Le fichierindex.jsp
utilise l'anglais US comme langue.Exemple 3.1. Fichier
index.jsp
par défaut<% 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 Pour spécifier le japonais comme langue par défaut, éditer le fichier suivant :Exemple 3.2.
index.jsp
avec japonais comme langue par défaut.<% 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 Pour indiquer le chinois simplifié comme langue par défaut, modifier le fichier comme suit :Exemple 3.3.
index.jsp
avec le chinois simplifié comme langue par défaut.<% 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
Langue | Chemin URL |
---|---|
Japonais | org.drools.guvnor.Guvnor/Guvnor.html?locale=ja_JP |
Chinois simplifié | org.drools.guvnor.Guvnor/Guvnor.html?locale=zh_CN |
Anglais US | org.drools.guvnor.Guvnor/Guvnor.html?locale=en_US |
Les URL complets pour les langues prises en charge
- Japonais
- Chinois simplifié
- Anglais US