From do-not-reply at jboss.org Tue Jan 29 11:07:57 2013
Content-Type: multipart/mixed; boundary="===============4585611591176874203=="
MIME-Version: 1.0
From: do-not-reply at jboss.org
To: gatein-commits at lists.jboss.org
Subject: [gatein-commits] gatein SVN: r9055 - in
epp/docs/branches/6.0/Reference_Guide/en-US:
extras/PortalDevelopment_InternationalizationConfiguration and 3 other
directories.
Date: Wed, 16 Jan 2013 00:12:37 -0500
Message-ID: <201301160512.r0G5CbrX026371@svn01.web.mwc.hst.phx2.redhat.com>
--===============4585611591176874203==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: jaredmorgs
Date: 2013-01-16 00:12:37 -0500 (Wed, 16 Jan 2013)
New Revision: 9055
Added:
epp/docs/branches/6.0/Reference_Guide/en-US/images/PortalDevelopment/Int=
ernationalization/
epp/docs/branches/6.0/Reference_Guide/en-US/images/PortalDevelopment/Int=
ernationalization/LanguageChoice.png
Modified:
epp/docs/branches/6.0/Reference_Guide/en-US/Reference_Guide.ent
epp/docs/branches/6.0/Reference_Guide/en-US/Revision_History.xml
epp/docs/branches/6.0/Reference_Guide/en-US/extras/PortalDevelopment_Int=
ernationalizationConfiguration/default151.xml
epp/docs/branches/6.0/Reference_Guide/en-US/modules/PortalDevelopment/In=
ternationalizationConfiguration.xml
Log:
https://docs.jboss.org/author/display/GTNPORTAL35/Internationalization+Conf=
iguration Incorporated changes up to V3 of the revision history.
Modified: epp/docs/branches/6.0/Reference_Guide/en-US/Reference_Guide.ent
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- epp/docs/branches/6.0/Reference_Guide/en-US/Reference_Guide.ent 2013-01=
-16 01:08:30 UTC (rev 9054)
+++ epp/docs/branches/6.0/Reference_Guide/en-US/Reference_Guide.ent 2013-01=
-16 05:12:37 UTC (rev 9055)
@@ -5,12 +5,12 @@
=
-
+
http://bugzilla.redhat.com/=
">
=
-
+
=
Modified: epp/docs/branches/6.0/Reference_Guide/en-US/Revision_History.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- epp/docs/branches/6.0/Reference_Guide/en-US/Revision_History.xml 2013-0=
1-16 01:08:30 UTC (rev 9054)
+++ epp/docs/branches/6.0/Reference_Guide/en-US/Revision_History.xml 2013-0=
1-16 05:12:37 UTC (rev 9055)
@@ -7,7 +7,22 @@
Revision History
-
+
+ 6.0.0-29
+ Wed Jan 16 2013
+
+ Jared
+ Morgan
+
+
+
+
+ Made changes from https://docs.jboss.org/author/displa=
y/GTNPORTAL35/Internationalization+Configuration
+ I have some NEEDINFO to be answered by ppalaga before =
this can be finalized.
+
+
+
+ 6.0.0-28Mon Jan 7 2013
@@ -21,7 +36,7 @@
-
+ 6.0.0-27Fri Jan 4 2013
@@ -35,7 +50,7 @@
-
+ 6.0.0-26Mon Dec 21 2012
@@ -49,7 +64,7 @@
-
+ 6.0.0-19Mon Dec 12 2012
@@ -63,7 +78,7 @@
-
+ 6.0.0-18Mon Dec 11 2012
@@ -91,20 +106,20 @@
-
- 6.0.0-23
- Fri Nov 30 2012
-
+
+ 6.0.0-23
+ Fri Nov 30 2012
+ ScottMumford
-
-
-
+
+
+
- BZ#807499: Added SME approved content regarding advan=
ced WCI registration features.
+ BZ#807499: Added SME approved content regarding advanc=
ed WCI registration features.
-
-
+
+ 6.0.0-22Fri Nov 30 2012
Modified: epp/docs/branches/6.0/Reference_Guide/en-US/extras/PortalDevelopm=
ent_InternationalizationConfiguration/default151.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- epp/docs/branches/6.0/Reference_Guide/en-US/extras/PortalDevelopment_In=
ternationalizationConfiguration/default151.xml 2013-01-16 01:08:30 UTC (rev=
9054)
+++ epp/docs/branches/6.0/Reference_Guide/en-US/extras/PortalDevelopment_In=
ternationalizationConfiguration/default151.xml 2013-01-16 05:12:37 UTC (rev=
9055)
@@ -7,7 +7,8 @@
classpath.resourcesThe resources that start with the following package na=
me should be load from file systemlocale.portlet =
- =
+
+ =
init.resourcesInitiate the following resources during the first launc=
h
@@ -21,7 +22,7 @@
locale.navigation.group.platform.guestslocale.navigation.group.organization.management.executive-boa=
rd =
=
-
+
portal.resource.namesThe properties files of the portal , those file will =
be merged =
Added: epp/docs/branches/6.0/Reference_Guide/en-US/images/PortalDevelopment=
/Internationalization/LanguageChoice.png
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(Binary files differ)
Property changes on: epp/docs/branches/6.0/Reference_Guide/en-US/images/Por=
talDevelopment/Internationalization/LanguageChoice.png
___________________________________________________________________
Added: svn:mime-type
+ image/png
Modified: epp/docs/branches/6.0/Reference_Guide/en-US/modules/PortalDevelop=
ment/InternationalizationConfiguration.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- epp/docs/branches/6.0/Reference_Guide/en-US/modules/PortalDevelopment/I=
nternationalizationConfiguration.xml 2013-01-16 01:08:30 UTC (rev 9054)
+++ epp/docs/branches/6.0/Reference_Guide/en-US/modules/PortalDevelopment/I=
nternationalizationConfiguration.xml 2013-01-16 05:12:37 UTC (rev 9055)
@@ -58,14 +58,14 @@
Various languages are available in the portal package. The con=
figuration below will define which languages are shown in the "Change Language" section and made availabl=
e to users.
- The 02portal.war:/WEB-INF/conf/common/common-configu=
ration.xml file of your installation contains the following sect=
ion:
+ The portal.war:/WEB-INF/conf/common/common-configura=
tion.xml file of your installation contains the following sectio=
n:
This configuration points to the locale configuration file.
- The locale configuration file (02portal.war:/WEB-INF=
/conf/common/locales-config.xml) contains the following code:
+ The locale configuration file (portal.war:/WEB-INF/c=
onf/common/locales-config.xml) contains the following code:
The locales-config.xml File Explanation
@@ -90,16 +90,17 @@
ResourceBundleService
- The resource bundle service is configured in: 02port=
al.war:/WEB-INF/conf/common/common-configuration.xml:
+ The resource bundle service is configured in: portal=
.war:/WEB-INF/conf/common/common-configuration.xml:
-
+ The common-configuration.xml file explained
Comment #1: resources whose package name starts wi=
th the name specified in the classpath.resources param=
eter are loaded from the file system. Detailed information can be found in =
a later section of this chapter.
+ Comment #2: resources related to portal, group, and user refer=
ence bundles
- Comment #2: the portal.resource.names parameter defines all resources that belong to the Porta=
l Resource Bundle. These resources are merged to a single resour=
ce bundle which is accessible from anywhere in JBoss Portal Platform. All t=
hese keys are located in the same bundle, which is separated from the navig=
ation resource bundles.
+ Comment #3: the portal.resource.names parameter defines all resources that belong to the Porta=
l Resource Bundle. These resources are merged to a single resour=
ce bundle which is accessible from anywhere in JBoss Portal Platform. All t=
hese keys are located in the same bundle, which is separated from the navig=
ation resource bundles.
@@ -108,11 +109,10 @@
There is a resource bundle for each navigation. A navigation c=
an exist for user, groups, and portal.
-
- The previous example shows bundle definitions for the navigati=
on of the classic portal and of four different groups. Each of these resour=
ce bundles occupies a different sphere, they are independent of each other =
and they are not included in the portal.resource.names parameter.
+ shows =
bundle definitions for the navigation of the classic portal and of four dif=
ferent groups. Each of these resource bundles occupies a different sphere, =
they are independent of each other and they are not included in the portal.resource.names parameter.
- The properties for a group must be in the WEB-INF/cl=
asses/locale/navigation/group/ folder. For example; /WE=
B-INF/classes/locale/navigation/group/organization/management/executive-boa=
rd_en.properties.
+ The properties for a group must be in the WEB-INF/cl=
asses/locale/navigation/group/ folder. For example, /W=
EB-INF/classes/locale/navigation/group/organization/management/executive-bo=
ard_en.properties.
The folder and file names must correspond to the group hierarc=
hy. The group name "executive-board" is fo=
llowed by the ISO 639 code.
@@ -134,13 +134,13 @@
Portlets are independent applications and deliver their own re=
source files.
- All shipped portlet resources are located in the locale/portlet sub-folder. The ResourceBundleService =
parameter classpath.resources defines th=
is sub-folder.
+ All shipped portlet resources are located in the locale/portlet sub-folder. The ResourceBundleService =
parameter classpath.resources defines th=
is sub-folder. =
- To add a Spanish translation to the GadgetPortlet
+ Add Spanish Translation to the GadgetPortlet
- Create the file GadgetPortlet_es.properties=
literal> in: WEB-INF/classes/locale/portlet/gadget/GadgetPortlet<=
/filename>.
+ Create the file GadgetPortlet_es.properties=
literal> in WEB-INF/classes/locale/portlet/gadget/GadgetPortlet=
filename>.
@@ -162,64 +162,108 @@
-
+
+
+ Click Change Language.
+
+
+ Select Magic locale from the li=
st of available languages.
+
+
+
+
+ Translate the Language Selection Form
+
+ Language Selection Screen
+
+
+
+
+
Image displaying the available languages in the portal,=
with French selected.
+
+
+
+ =
+ =
+ When choosing a language from the Language Select screen, the us=
er is presented with a list of languages on the left side in the current ch=
osen language. On the right side, the same language is translated into its=
own language.
+ The local language values are obtained from the JDK API
+ java.util.Locale.getDisplayedLanguage()
+ and
+ java.util.Locale.getDisplayedCountry()
+ (if needed). Not all languages may be translated, and the lan=
guages available can also depend on the JVM currently used.
+ It is possible to override these values by editing the
+ locale.portal.webui
+ resource bundle.
+
+ Overriding Default JDK API Language Values
+
+ Edit the
+ gatein.ear/portal.war/WEB-INF/classes/locale/portal/webui_=
xx_yy.properties
+ file where
+ xx_yy
+ represents the country code of the language you wish to translat=
e.
+
+
+ In that file, add or modify a key such as
+ Locale.xx_yy
+ with the xx_yy value being the transl=
ated string.
+
+
+
+ Edit
+ gatein.ear/portal.war/WEB-INF/classes/locale/portal/webui_=
fr.properties
+ where
+ fr
+ is the country code for French, and add the following key into i=
t:
+
+ Locale.zh_TW=3DChinois traditionnel
+
+
+ When the portal is next restarted, the localized language will=
be updated in the user interface when a user tries to change the current l=
anguage.
+
+
+
--===============4585611591176874203==--