You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ne...@apache.org on 2007/01/22 22:11:58 UTC

svn commit: r498802 - in /lenya/trunk/src/pubs/default: config/publication.xconf resources/shared/css/page.xml sitemap.xmap xslt/page2xhtml.xsl

Author: nettings
Date: Mon Jan 22 13:11:57 2007
New Revision: 498802

URL: http://svn.apache.org/viewvc?view=rev&rev=498802
Log:
activate language selector in default publication.
add french, spanish and hebrew to default publication (no translations
yet, just for show). hebrew was chosen to demonstrate right-to-left
text flow.
add some styling.

Modified:
    lenya/trunk/src/pubs/default/config/publication.xconf
    lenya/trunk/src/pubs/default/resources/shared/css/page.xml
    lenya/trunk/src/pubs/default/sitemap.xmap
    lenya/trunk/src/pubs/default/xslt/page2xhtml.xsl

Modified: lenya/trunk/src/pubs/default/config/publication.xconf
URL: http://svn.apache.org/viewvc/lenya/trunk/src/pubs/default/config/publication.xconf?view=diff&rev=498802&r1=498801&r2=498802
==============================================================================
--- lenya/trunk/src/pubs/default/config/publication.xconf (original)
+++ lenya/trunk/src/pubs/default/config/publication.xconf Mon Jan 22 13:11:57 2007
@@ -24,6 +24,9 @@
   <languages>
     <language default="true">en</language>
     <language>de</language>
+    <language>he</language>
+    <language>es</language>
+    <language>fr</language>
   </languages>
   <template-instantiator name="default"/>
   <path-mapper>org.apache.lenya.cms.publication.DefaultDocumentIdToPathMapper</path-mapper>
@@ -56,6 +59,7 @@
   <module name="svg"/>
   <module name="lucene"/>
   <module name="development"/>
+  <module name="languageselector"/>
   <!-- TODO: The goal is to have a blog module ;-) -->
   <!--
   <module name="blog"/>

Modified: lenya/trunk/src/pubs/default/resources/shared/css/page.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/src/pubs/default/resources/shared/css/page.xml?view=diff&rev=498802&r1=498801&r2=498802
==============================================================================
--- lenya/trunk/src/pubs/default/resources/shared/css/page.xml (original)
+++ lenya/trunk/src/pubs/default/resources/shared/css/page.xml Mon Jan 22 13:11:57 2007
@@ -100,7 +100,7 @@
 
 /* menu */
 
-#menu {
+#menu, #languageselector {
     font-family: Verdana, Arial, Sans-serif;
     background-color: #DDBBBB;
     border: solid 1px #BB9999;
@@ -110,14 +110,34 @@
     padding: 0px 0px 5px 25px;
 }
 
-#menu a {
+#languageselector {
+    font-size:80%;
+}
+ 
+#languageselector img {
+    border:none;
+}
+#menu a, #languageselector a {
     text-decoration: none;
     color: Maroon;
 }
 
-#menu a:hover {
+#languageselector a {
+    padding:0px;
+    margin:0px;
+}
+#languageselector a.lenya-language-isCurrent {
+    font-weight:bold;
+}
+#languageselector a.lenya-language-isAvailable {
+}
+#languageselector a.lenya-language-isUnavailable {
+    color:#aaaaaa;
+}
+#menu a:hover, #languageselector a:hover {
     text-decoration: underline;
 }
+
 
 .menublock-1, .menublock-selected-1 {
     padding: 0px;

Modified: lenya/trunk/src/pubs/default/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/src/pubs/default/sitemap.xmap?view=diff&rev=498802&r1=498801&r2=498802
==============================================================================
--- lenya/trunk/src/pubs/default/sitemap.xmap (original)
+++ lenya/trunk/src/pubs/default/sitemap.xmap Mon Jan 22 13:11:57 2007
@@ -134,6 +134,7 @@
           <map:part src="cocoon://modules/sitetree/{2}/{3}/tabs/{5}.xml"/>
           <map:part src="cocoon://modules/sitetree/{2}/{3}/menu/{5}.xml"/>
           <map:part src="cocoon://modules/sitetree/{2}/{3}/search/{5}.xml"/>
+          <map:part src="cocoon://modules/languageselector/text-long/flagsize-10"/>
           <map:part src="{resource-type:format-xhtml}?rendertype={1}"/>
         </map:aggregate>
         <map:transform type="link-rewrite"/>

Modified: lenya/trunk/src/pubs/default/xslt/page2xhtml.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/pubs/default/xslt/page2xhtml.xsl?view=diff&rev=498802&r1=498801&r2=498802
==============================================================================
--- lenya/trunk/src/pubs/default/xslt/page2xhtml.xsl (original)
+++ lenya/trunk/src/pubs/default/xslt/page2xhtml.xsl Mon Jan 22 13:11:57 2007
@@ -91,6 +91,7 @@
             <tr>
               <td valign="top" style="width: 230px">
                 <xsl:apply-templates select="xhtml:div[@id = 'menu']"/>
+                <xsl:apply-templates select="xhtml:div[@id = 'languageselector']"/>
               </td>
               <td valign="top">
                 <div id="main">



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


Re: svn commit: r498802 - in /lenya/trunk/src/pubs/default: config/publication.xconf resources/shared/css/page.xml sitemap.xmap xslt/page2xhtml.xsl

Posted by Andreas Hartmann <an...@apache.org>.
nettings@apache.org schrieb:
> Author: nettings
> Date: Mon Jan 22 13:11:57 2007
> New Revision: 498802
> 
> URL: http://svn.apache.org/viewvc?view=rev&rev=498802
> Log:
> activate language selector in default publication.
> add french, spanish and hebrew to default publication (no translations
> yet, just for show). hebrew was chosen to demonstrate right-to-left
> text flow.
> add some styling.

Very cool!

-- Andreas


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