gcompris r3632 - in trunk: . boards docs docs/screenshots



Author: bcoudoin
Date: Tue Nov 25 23:58:09 2008
New Revision: 3632
URL: http://svn.gnome.org/viewvc/gcompris?rev=3632&view=rev

Log:
updated the web site generator


Added:
   trunk/docs/screenshots/doubleclick.jpg   (contents, props changed)
   trunk/docs/screenshots/doubleclick_small.jpg   (contents, props changed)
   trunk/docs/screenshots/erase_doubleclick.jpg   (contents, props changed)
   trunk/docs/screenshots/erase_doubleclick_small.jpg   (contents, props changed)
Removed:
   trunk/docs/screenshots/erase_double_clic.jpg
   trunk/docs/screenshots/erase_double_clic_small.jpg
Modified:
   trunk/ChangeLog
   trunk/boards/doubleclick.xml.in
   trunk/docs/gcompris2spip.pl
   trunk/docs/spip_oneboard.xsl

Modified: trunk/boards/doubleclick.xml.in
==============================================================================
--- trunk/boards/doubleclick.xml.in	(original)
+++ trunk/boards/doubleclick.xml.in	Tue Nov 25 23:58:09 2008
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <GCompris>
   <Board
-        name="goal"
+        name="doubleclick"
         type="python:doubleclick"
         section="/computer/mouse"
         icon="boardicons/doubleclick.svg"

Modified: trunk/docs/gcompris2spip.pl
==============================================================================
--- trunk/docs/gcompris2spip.pl	(original)
+++ trunk/docs/gcompris2spip.pl	Tue Nov 25 23:58:09 2008
@@ -100,7 +100,7 @@
     "ro", 0,
     "ru", 160,
     "rw", 0,
-    "sk", 0,
+    "sk", 396,
     "sl", 0,
     "so", 172,
     "sq", 0,
@@ -170,7 +170,7 @@
     "ro", 0,
     "ru", 162,
     "rw", 0,
-    "sk", 0,
+    "sk", 397,
     "sl", 0,
     "so", 173,
     "sq", 0,
@@ -241,7 +241,7 @@
     "ro", 0,
     "ru", 163,
     "rw", 0,
-    "sk", 0,
+    "sk", 398,
     "sl", 0,
     "so", 174,
     "sq", 0,
@@ -258,6 +258,7 @@
     "zh_CN", 0,
     "zh_TW", 0,
     );
+
 #-------------------------------------------------------------------------------
 sub spip_cleanup {
     my $output = shift;
@@ -299,7 +300,7 @@
 my @ALL_LINGUAS       = split(' ', $ALL_LINGUAS_STR);
 push @ALL_LINGUAS, "en";	# Add english, it's not in the po list
 # Debug
-# ALL_LINGUAS = qw/fr en/;
+# ALL_LINGUAS = qw/fr en ar/;
 
 # Check we have all we need for each defined lang
 my $error = 0;
@@ -482,6 +483,17 @@
 
 	$article_id++;
 
+	# Manage Left to Right / Right to Left languages
+	my $left="left";
+	my $right="right";
+
+	if ($lang =~ /^ar/
+	    || $lang =~ /^he/
+	    || $lang =~ /^fa/)
+	{
+	    $left = "right";
+	    $right = "left";
+	}
 	print "$lang ";
 
 	# Remove @ from some language to avoid non URL char
@@ -492,7 +504,7 @@
 	# Hide the article
 #    $rubriques{$lang} = 0;
 
-	my $output = `xsltproc --stringparam language $lang --stringparam langstrip $langstrip --stringparam date "${date}" --stringparam article_id ${article_id} --stringparam rubrique_id $rubriques_all{$lang} --stringparam section_id $sections{$lang} --stringparam traduction_id ${traduction_id} $xslfile $file`;
+	my $output = `xsltproc --stringparam language $lang --stringparam left $left --stringparam right $right --stringparam langstrip $langstrip --stringparam date "${date}" --stringparam article_id ${article_id} --stringparam rubrique_id $rubriques_all{$lang} --stringparam section_id $sections{$lang} --stringparam traduction_id ${traduction_id} $xslfile $file`;
 
 	if ($?>>8) {
 	    print "#\n";

Added: trunk/docs/screenshots/doubleclick.jpg
==============================================================================
Binary file. No diff available.

Added: trunk/docs/screenshots/doubleclick_small.jpg
==============================================================================
Binary file. No diff available.

Added: trunk/docs/screenshots/erase_doubleclick.jpg
==============================================================================
Binary file. No diff available.

Added: trunk/docs/screenshots/erase_doubleclick_small.jpg
==============================================================================
Binary file. No diff available.

Modified: trunk/docs/spip_oneboard.xsl
==============================================================================
--- trunk/docs/spip_oneboard.xsl	(original)
+++ trunk/docs/spip_oneboard.xsl	Tue Nov 25 23:58:09 2008
@@ -82,18 +82,21 @@
             <texte>
               <HTML>
                 <DIV>
-                  <IMG border="0" alt="" align="left">
+                  <IMG border="0" alt="">
+		    <xsl:attribute name="align"><xsl:value-of select="$left"/></xsl:attribute>
                     <xsl:attribute name="src">
                       <xsl:value-of select="concat('screenshots/',@name)"/>.jpg</xsl:attribute>
                     </IMG>
 
                     <DIV class="flottante">
-                      <IMG border="0" alt="" align="right">
+                      <IMG border="0" alt="">
+			<xsl:attribute name="align"><xsl:value-of select="$right"/></xsl:attribute>
                         <xsl:attribute name="src"><xsl:value-of select="@icon"/></xsl:attribute>
                       </IMG>
 
                       <xsl:if test="@difficulty">
-                        <IMG border="0" alt="" align="right">
+                        <IMG border="0" alt="">
+			  <xsl:attribute name="align"><xsl:value-of select="$right"/></xsl:attribute>
                           <xsl:attribute name="src">
                             <xsl:value-of select="concat('boardicons/difficulty_star',@difficulty,'.png')"/>
                           </xsl:attribute>
@@ -101,7 +104,8 @@
                       </xsl:if>
 
                       <xsl:if test="(starts-with(@type,'python:')=false)">
-                        <IMG border="0" alt=""  align="right" src="boardicons/win.png">
+                        <IMG border="0" alt="" src="boardicons/win.png">
+			  <xsl:attribute name="align"><xsl:value-of select="$right"/></xsl:attribute>
                         </IMG>
                       </xsl:if>
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]