...
86. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
il faut faire la même chose pour la vue Mobile :
dans uportal-war/src/main/resources/layout/theme/muniversality/muniversality.xsl
là la langue est fixée en dur dans la xsl :
171. <xsl:param name="USER_LANG">en</xsl:param>
et mettre l'attribut lang au tag "html" :
301. <xsl:template match="/">302. <html>La La langue de traitement indique la langue principale de la page (une seule possible)
...
Bloc de code | ||||
---|---|---|---|---|
| ||||
diff --git a/uportal-war/src/main/resources/layout/theme/universality/page.xsl b/uportal-war/src/main/resources/layout/theme/universality/page.xsl index 0aa723d..4039016 100644 --- a/uportal-war/src/main/resources/layout/theme/universality/page.xsl +++ b/uportal-war/src/main/resources/layout/theme/universality/page.xsl @@ -83,7 +83,7 @@ </xsl:choose> </xsl:variable> - <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{upMsg:getMessage('portal.lang', $USER_LANG)}" lang="{upMsg:getMessage('portal.lang', $USER_LANG)}"> <head> <title> <xsl:choose> |
Ajouter dans chaque fichier de langue la traductiontraduction /uportal-war/src/main/resources/properties/i18n/Messages_*.properties
Bloc de code | ||||
---|---|---|---|---|
| ||||
diff --git a/uportal-war/src/main/resources/properties/i18n/Messages.properties b/uportal-war/src/main/resources/properties/i18n/Messages.properties index da52cfe..dc7ee74 100644 --- a/uportal-war/src/main/resources/properties/i18n/Messages.properties +++ b/uportal-war/src/main/resources/properties/i18n/Messages.properties @@ -536,3 +536,5 @@ your.account.has.been.successfully.updated.your.changes.will.be.visible.upon.you your.password.has.been.updated.successfully=Your password has been updated successfully your.selection=Your Selection your.selections=Your Selections + +portal.lang=en |
...