[seam-commits] Seam SVN: r9061 - branches/community/Seam_2_0/doc/Seam_Reference_Guide/en-US.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Sat Sep 20 23:48:06 EDT 2008


Author: dan.j.allen
Date: 2008-09-20 23:48:06 -0400 (Sat, 20 Sep 2008)
New Revision: 9061

Modified:
   branches/community/Seam_2_0/doc/Seam_Reference_Guide/en-US/I18n.xml
Log:
minor updates to locales section


Modified: branches/community/Seam_2_0/doc/Seam_Reference_Guide/en-US/I18n.xml
===================================================================
--- branches/community/Seam_2_0/doc/Seam_Reference_Guide/en-US/I18n.xml	2008-09-21 03:47:55 UTC (rev 9060)
+++ branches/community/Seam_2_0/doc/Seam_Reference_Guide/en-US/I18n.xml	2008-09-21 03:48:06 UTC (rev 9061)
@@ -170,7 +170,8 @@
     <f:selectItem itemLabel="Deutsch" itemValue="de"/>
     <f:selectItem itemLabel="Francais" itemValue="fr"/>
 </h:selectOneMenu>
-&lt;h:commandButton action="#{localeSelector.select}" value="#{messages['ChangeLanguage']}"/&gt;</programlisting>
+&lt;h:commandButton action="#{localeSelector.select}"
+    value="#{messages['ChangeLanguage']}"/&gt;</programlisting>
 
     <para>Or, if you want a list of all supported locales from <literal>
     faces-config.xml</literal>, just use:</para>
@@ -184,7 +185,6 @@
     <para>When the user selects an item from the drop-down, then clicks the
     command button, the Seam and JSF locales will be overridden for the rest of the
     session.</para>
-  </section>
 
     <para>The brings us to the question of where the supported locales are
     defined. Typically, you provide a list of locales for which you have
@@ -195,16 +195,16 @@
     reason, you can configure the supported locales, and the default locale of
     the server, using the built-in component named
     <literal>org.jboss.seam.international.localeConfig</literal>. To use it,
-    you first declare an XML namespace for Seam's international package and
-    bind it to the i18n prefix. You then define the default locale and
-    supported locales as follows:</para>
+    you first declare an XML namespace for Seam's international package in the
+    Seam component descriptor. You then define the default locale and supported
+    locales as follows:</para>
 
-    <programlisting role="XML">&lt;international:locale-config default-locale="fr_CA"
-    supported-locales="en fr_CA fr_FR"/&gt;</programlisting>
+    <programlisting role="XML">&lt;international:locale-config default-locale="fr_CA" supported-locales="en fr_CA fr_FR"/&gt;</programlisting>
 
     <para>Naturally, if you pronounce that you support a locale, you better
     provide a resource bundle to match it! Up next, you'll learn how to define
     the language-specific labels.</para>
+  </section>
 
   <section>
     <title>Labels<anchor id="labels" /></title>




More information about the seam-commits mailing list