You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2008/01/03 12:47:31 UTC

svn commit: r608458 - /lenya/docu/src/documentation/content/xdocs/docs/modules/languageselector/index.xml

Author: andreas
Date: Thu Jan  3 03:47:26 2008
New Revision: 608458

URL: http://svn.apache.org/viewvc?rev=608458&view=rev
Log:
Added docs about languageselector URL syntax

Modified:
    lenya/docu/src/documentation/content/xdocs/docs/modules/languageselector/index.xml

Modified: lenya/docu/src/documentation/content/xdocs/docs/modules/languageselector/index.xml
URL: http://svn.apache.org/viewvc/lenya/docu/src/documentation/content/xdocs/docs/modules/languageselector/index.xml?rev=608458&r1=608457&r2=608458&view=diff
==============================================================================
--- lenya/docu/src/documentation/content/xdocs/docs/modules/languageselector/index.xml (original)
+++ lenya/docu/src/documentation/content/xdocs/docs/modules/languageselector/index.xml Thu Jan  3 03:47:26 2008
@@ -31,6 +31,36 @@
         XHTML widget to switch languages on a website.
       </p>
     </section>
+    
+    <section>
+      <title>Call Syntax</title>
+      <p>
+        To generate a language selector widget, you use the following URL syntax:
+      </p>
+      <source xml:space="preserve">cocoon://modules/languageselector/text-{text}/flagsize-{flagsize}</source>
+      <p>
+        The URL contains the following parameters:
+      </p>
+      <dl>
+        <dt>text</dt>
+        <dd>
+          <p>The <em>text</em> parameter can take the following values:</p>
+          <ul>
+            <li><em>abbr</em>: abbreviated language</li>
+            <li><em>long</em>: full i18nized name of the language</li>
+          </ul>
+        </dd>
+        <dt>flagsize</dt>
+        <dd>
+          <p>The <em>flagsize</em> parameter can take the following values:</p>
+          <ul>
+            <li>any number: the width of the flag image in pixels</li>
+            <li><em>none</em>: don't show the flag image</li>
+          </ul>
+        </dd>
+      </dl>
+    </section>
+    
     <section>
       <title>Adding Custom Flags</title>
       <p>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org