[Toss-devel-svn] SF.net SVN: toss:[1364] trunk/Toss
Status: Beta
Brought to you by:
lukaszkaiser
|
From: <luk...@us...> - 2011-03-16 16:04:54
|
Revision: 1364
http://toss.svn.sourceforge.net/toss/?rev=1364&view=rev
Author: lukaszkaiser
Date: 2011-03-16 16:04:48 +0000 (Wed, 16 Mar 2011)
Log Message:
-----------
Some more www and WebClient corrections.
Modified Paths:
--------------
trunk/Toss/WebClient/Login.js
trunk/Toss/www/.cvsignore
trunk/Toss/www/Publications/.cvsignore
trunk/Toss/www/Publications/Makefile
trunk/Toss/www/default.mak
trunk/Toss/www/index.xml
trunk/Toss/www/navigation.xml
trunk/Toss/www/styles/common.css
trunk/Toss/www/xsl/books.xsl
trunk/Toss/www/xsl/include/common.xsl
trunk/Toss/www/xsl/include/layout.xsl
trunk/Toss/www/xsl/main.xsl
trunk/Toss/www/xsl/publications.xsl
Property Changed:
----------------
trunk/Toss/www/
trunk/Toss/www/Publications/
Modified: trunk/Toss/WebClient/Login.js
===================================================================
--- trunk/Toss/WebClient/Login.js 2011-03-16 00:05:04 UTC (rev 1363)
+++ trunk/Toss/WebClient/Login.js 2011-03-16 16:04:48 UTC (rev 1364)
@@ -47,7 +47,7 @@
// Onload handler
function startup (game) {
- if (navigator.userAgent.indexOf('MSIE') !=-1) {
+ if (navigator.userAgent.indexOf('MSIE') !=-1 && navigator.userAgent.indexOf('MSIE 9') ==-1) {
document.getElementById("nosvg").style.display = "block";
} else {
var udata = srv("USERPLAYS", "user");
Property changes on: trunk/Toss/www
___________________________________________________________________
Modified: svn:ignore
- # We are still using .cvsignore files as we find them easier to manage
# than svn properties. Therefore if you change .cvsignore do the following.
# svn propset svn:ignore -F .cvsignore .
*.html
*.html.de
*.html.en
*.html.pl
*.texml
*.xml.de
*.xml.en
*.xml.pl
reference.xml
code_doc
*.ps
*.dvi
*.aux
*.out
*.log
*.bbl
*.blg
*.idx
*.thm
*.snm
*.nav
*.toc
*.flc
*~
+ # We are still using .cvsignore files as we find them easier to manage
# than svn properties. Therefore if you change .cvsignore do the following.
# svn propset svn:ignore -F .cvsignore .
*.html
*.html.de
*.html.en
*.html.fr
*.html.pl
*.texml
*.xml.de
*.xml.en
*.xml.fr
*.xml.pl
reference.xml
code_doc
*.ps
*.dvi
*.aux
*.out
*.log
*.bbl
*.blg
*.idx
*.thm
*.snm
*.nav
*.toc
*.flc
*~
Modified: trunk/Toss/www/.cvsignore
===================================================================
--- trunk/Toss/www/.cvsignore 2011-03-16 00:05:04 UTC (rev 1363)
+++ trunk/Toss/www/.cvsignore 2011-03-16 16:04:48 UTC (rev 1364)
@@ -5,10 +5,12 @@
*.html
*.html.de
*.html.en
+*.html.fr
*.html.pl
*.texml
*.xml.de
*.xml.en
+*.xml.fr
*.xml.pl
reference.xml
code_doc
Property changes on: trunk/Toss/www/Publications
___________________________________________________________________
Modified: svn:ignore
- # We are still using .cvsignore files as we find them easier to manage
# than svn properties. Therefore if you change .cvsignore do the following.
# svn propset svn:ignore -F .cvsignore .
*.xml.de
*.xml.en
*.xml.pl
*.html
*.html.de
*.html.en
*.html.pl
all.texml
all.xml
*~
+ # We are still using .cvsignore files as we find them easier to manage
# than svn properties. Therefore if you change .cvsignore do the following.
# svn propset svn:ignore -F .cvsignore .
*.xml.de
*.xml.en
*.xml.fr
*.xml.pl
*.html
*.html.de
*.html.en
*.html.fr
*.html.pl
all.texml
all.xml
*~
Modified: trunk/Toss/www/Publications/.cvsignore
===================================================================
--- trunk/Toss/www/Publications/.cvsignore 2011-03-16 00:05:04 UTC (rev 1363)
+++ trunk/Toss/www/Publications/.cvsignore 2011-03-16 16:04:48 UTC (rev 1364)
@@ -4,10 +4,12 @@
*.xml.de
*.xml.en
+*.xml.fr
*.xml.pl
*.html
*.html.de
*.html.en
+*.html.fr
*.html.pl
all.texml
Modified: trunk/Toss/www/Publications/Makefile
===================================================================
--- trunk/Toss/www/Publications/Makefile 2011-03-16 00:05:04 UTC (rev 1363)
+++ trunk/Toss/www/Publications/Makefile 2011-03-16 16:04:48 UTC (rev 1364)
@@ -1,6 +1,6 @@
TOPDIR = ..
BINDIR = $(TOPDIR)/bin
-LANGS = de en pl
+LANGS = de en fr pl
BIB_FILES = $(wildcard ./*.bib)
BIBTEXML_TEX_FILES = $(patsubst %.bib,%.texml,$(BIB_FILES))
Modified: trunk/Toss/www/default.mak
===================================================================
--- trunk/Toss/www/default.mak 2011-03-16 00:05:04 UTC (rev 1363)
+++ trunk/Toss/www/default.mak 2011-03-16 16:04:48 UTC (rev 1364)
@@ -1,5 +1,5 @@
BINDIR = $(TOPDIR)/bin
-LANGS = de en pl
+LANGS = de en fr pl
BIB_FILES = $(wildcard ./*.bib)
BIBTEXML_TEX_FILES = $(patsubst %.bib,%.texml,$(BIB_FILES))
@@ -83,6 +83,14 @@
chmod 664 $@ ;\
fi
+%.html.fr : LANG=fr
+%.html.fr : %.xml.fr $(AUXILIARY_FILES) $(XSL_FILES) $(BIBTEXML_FILES)
+ lang=$(LANG) ; if [ -n "$$lang" ] ; then \
+ xsltproc $(XSLTPROC_PARAM) --stringparam "lang" "$(LANG)" --stringparam "uri" "$<" $< \
+ | $(BINDIR)/hrefprocess "$(TOPDIR)" "$(LANG)" > $@ ;\
+ chmod 664 $@ ;\
+ fi
+
%.html : %.html.en
@echo
Modified: trunk/Toss/www/index.xml
===================================================================
--- trunk/Toss/www/index.xml 2011-03-16 00:05:04 UTC (rev 1363)
+++ trunk/Toss/www/index.xml 2011-03-16 16:04:48 UTC (rev 1364)
@@ -38,7 +38,15 @@
</par>
</section>
+ <section title="À propos de Toss" lang="fr">
+ <par><em>Toss</em> jest programem do tworzenia, analizowania
+ i grania w gry. Dzięki ogólnemu algorytmowi możesz stworzyc grę
+ i od razu zagrać w nią z komputerem. Na przykład, jak grałoby
+ się w szachy bez środka planszy? Z Tossem łatwo to sprawdzić!
+ </par>
+ </section>
+
<games-section>
<game-div>
<game-link game="Breakthrough"/>
Modified: trunk/Toss/www/navigation.xml
===================================================================
--- trunk/Toss/www/navigation.xml 2011-03-16 00:05:04 UTC (rev 1363)
+++ trunk/Toss/www/navigation.xml 2011-03-16 16:04:48 UTC (rev 1364)
@@ -70,4 +70,27 @@
<item href="/contact.html" id="contact">Kontakt i Linki</item>
</menu>
+
+<menu lang="fr">
+ <item href="/" id="Home">Accueil</item>
+ <item href="/ideas.html" id="ideas">Idées GSoC</item>
+ <item href="http://tplay.org">Graj Online</item>
+ <item href="http://sourceforge.net/project/showfiles.php?group_id=115606"
+ >Télécharger Toss</item>
+ <menu title="Créerez des Jeux" href="/create.html" id="create">
+ <item href="http://vimeo.com/10110495" id="tut">Tutorial Video</item>
+ <item href="/examples.html" id="examples">Examples</item>
+ <item href="/gui_interface.html" id="gui_interface">Interface GUI</item>
+ </menu>
+ <item href="/play.html" id="play">Regarder Toss Jouer</item>
+ <menu title="Documentation" href="/docs.html" id="docs">
+ <item href="/reference/reference.pdf" id="refpdf">Référence (pdf)</item>
+ <item href="/reference/" id="refhtml">Référence (html)</item>
+ <item href="/code_doc/" id="code">Documentation du Code</item>
+ </menu>
+ <item href="/Publications/" id="Publications">Papers et Entretiens</item>
+ <item href="/develop.html" id="develop">Développer Toss</item>
+ <item href="/contact.html" id="contact">Contact et Liens</item>
+</menu>
+
</navigation>
Modified: trunk/Toss/www/styles/common.css
===================================================================
--- trunk/Toss/www/styles/common.css 2011-03-16 00:05:04 UTC (rev 1363)
+++ trunk/Toss/www/styles/common.css 2011-03-16 16:04:48 UTC (rev 1364)
@@ -6,8 +6,8 @@
}
body {
- font-family: "DejaVu Sans", Verdana, sans-serif;
- line-height: 140%;
+ font-family: Ubuntu, "DejaVu Sans", Verdana, sans-serif;
+ line-height: 130%;
}
a, a:link, a:active, a:visited {
Modified: trunk/Toss/www/xsl/books.xsl
===================================================================
--- trunk/Toss/www/xsl/books.xsl 2011-03-16 00:05:04 UTC (rev 1363)
+++ trunk/Toss/www/xsl/books.xsl 2011-03-16 16:04:48 UTC (rev 1364)
@@ -32,6 +32,9 @@
<xsl:if test="$lang='pl'">
<h1 property="dc:title">Ksiazki</h1>
</xsl:if>
+ <xsl:if test="$lang='fr'">
+ <h1 property="dc:title">Livres</h1>
+ </xsl:if>
<!--
<xsl:if test="$lang='de'">
<p><em>Der Inhalt dieser Seite ist nur auf Englisch verfügbar.</em></p>
Modified: trunk/Toss/www/xsl/include/common.xsl
===================================================================
--- trunk/Toss/www/xsl/include/common.xsl 2011-03-16 00:05:04 UTC (rev 1363)
+++ trunk/Toss/www/xsl/include/common.xsl 2011-03-16 16:04:48 UTC (rev 1364)
@@ -78,6 +78,11 @@
<xsl:apply-templates />
<p><a href="http://tplay.org">Więcej gier</a></p>
</xsl:when>
+ <xsl:when test="$lang='fr'">
+ <h3><a href="http://tplay.org">Jouez en Ligne contre Toss</a></h3>
+ <xsl:apply-templates />
+ <p><a href="http://tplay.org">Plus de Jeux</a></p>
+ </xsl:when>
<xsl:otherwise>
<h3><a href="http://tplay.org">Play Online Against Toss</a></h3>
<xsl:apply-templates />
@@ -180,7 +185,7 @@
<a href="http://tplay.org/index_{@game}.html"
title="Spiel {@game}" class="game-link" id="game-link-{@game}">
<img class="game-img" src="{$topdir}/img/{@game}.png"
- alt="{@game}Brett" id="game-img-{@game}" />
+ alt="{@game}-Brett" id="game-img-{@game}" />
</a>
</xsl:when>
<xsl:when test="$lang='pl'">
@@ -190,11 +195,18 @@
alt="Plansza {@game}" id="game-img-{@game}" />
</a>
</xsl:when>
+ <xsl:when test="$lang='fr'">
+ <a href="http://tplay.org/index_{@game}.html"
+ title="Graj w {@game}" class="game-link" id="game-link-{@game}">
+ <img class="game-img" src="{$topdir}/img/{@game}.png"
+ alt="Bord de {@game}" id="game-img-{@game}" />
+ </a>
+ </xsl:when>
<xsl:otherwise>
<a href="http://tplay.org/index_{@game}.html"
- title="Play {@game}" class="game-link" id="game-link-{@game}">
+ title="Jouez au {@game}" class="game-link" id="game-link-{@game}">
<img class="game-img" src="{$topdir}/img/{@game}.png"
- alt="{@game} Board Image" id="game-img-{@game}" />
+ alt="{@game} Board" id="game-img-{@game}" />
</a>
</xsl:otherwise>
</xsl:choose>
Modified: trunk/Toss/www/xsl/include/layout.xsl
===================================================================
--- trunk/Toss/www/xsl/include/layout.xsl 2011-03-16 00:05:04 UTC (rev 1363)
+++ trunk/Toss/www/xsl/include/layout.xsl 2011-03-16 16:04:48 UTC (rev 1364)
@@ -58,6 +58,9 @@
<xsl:if test="$lang='pl'">
<title>Publikacje</title>
</xsl:if>
+ <xsl:if test="$lang='fr'">
+ <title>Publications</title>
+ </xsl:if>
</xsl:when>
<xsl:when test="$title='Publications' and $author!='all'">
<xsl:variable name="fullname" select="normalize-space(concat(document('../../people.xml')/people/person[@id=$author]/first,' ',document('../../people.xml')/people/person[@id=$author]/last))"/>
@@ -70,6 +73,9 @@
<xsl:if test="$lang='pl'">
<title>Publikacje: <xsl:value-of select="$fullname"/></title>
</xsl:if>
+ <xsl:if test="$lang='fr'">
+ <title>Publications de <xsl:value-of select="$fullname"/></title>
+ </xsl:if>
</xsl:when>
<xsl:otherwise>
<title><xsl:value-of select="$title"/></title>
@@ -137,6 +143,9 @@
<a href="{concat(substring-before($uri,'.'),'.html.en')}">English</a>
</li>
<li>
+ <a href="{concat(substring-before($uri,'.'),'.html.fr')}">Français</a>
+ </li>
+ <li>
<a href="{concat(substring-before($uri,'.'),'.html.pl')}">Polski</a>
</li>
</xsl:if>
@@ -146,6 +155,9 @@
</li>
<li class="selected"><span>English</span></li>
<li>
+ <a href="{concat(substring-before($uri,'.'),'.html.fr')}">Français</a>
+ </li>
+ <li>
<a href="{concat(substring-before($uri,'.'),'.html.pl')}">Polski</a>
</li>
</xsl:if>
@@ -156,8 +168,23 @@
<li>
<a href="{concat(substring-before($uri,'.'),'.html.en')}">English</a>
</li>
+ <li>
+ <a href="{concat(substring-before($uri,'.'),'.html.fr')}">Français</a>
+ </li>
<li class="selected"><span>Polski</span></li>
</xsl:if>
+ <xsl:if test="$lang='fr'">
+ <li>
+ <a href="{concat(substring-before($uri,'.'),'.html.de')}">Deutsch</a>
+ </li>
+ <li>
+ <a href="{concat(substring-before($uri,'.'),'.html.en')}">English</a>
+ </li>
+ <li class="selected"><span>Français</span></li>
+ <li>
+ <a href="{concat(substring-before($uri,'.'),'.html.pl')}">Polski</a>
+ </li>
+ </xsl:if>
</ul>
</div>
</xsl:template>
Modified: trunk/Toss/www/xsl/main.xsl
===================================================================
--- trunk/Toss/www/xsl/main.xsl 2011-03-16 00:05:04 UTC (rev 1363)
+++ trunk/Toss/www/xsl/main.xsl 2011-03-16 16:04:48 UTC (rev 1364)
@@ -758,6 +758,9 @@
<xsl:if test="$lang='pl'">
<h3>Wybrane Referaty</h3>
</xsl:if>
+ <xsl:if test="$lang='fr'">
+ <h3>Entretiens Sélectionnés</h3>
+ </xsl:if>
<xsl:apply-templates />
</xsl:template>
@@ -771,6 +774,9 @@
<xsl:if test="$lang='pl'">
<h3>Badania</h3>
</xsl:if>
+ <xsl:if test="$lang='fr'">
+ <h3>Recherche</h3>
+ </xsl:if>
<xsl:apply-templates />
</xsl:template>
@@ -802,6 +808,9 @@
<xsl:if test="$lang='pl'">
<h3>Addres</h3>
</xsl:if>
+ <xsl:if test="$lang='fr'">
+ <h3>l'Adresse</h3>
+ </xsl:if>
Toss Team<br/>
Internet<br/>
<xsl:if test="$lang='de'">
@@ -886,6 +895,9 @@
<xsl:if test="$lang='pl'">
<h3>Ostatnie Publikacje</h3>
</xsl:if>
+ <xsl:if test="$lang='fr'">
+ <h3>Publications Récentes</h3>
+ </xsl:if>
<xsl:apply-templates select="document('../Publications/all.xml')/*" mode="author">
<xsl:with-param name="author" select="document('../people.xml')/people/person[@id=current()/@author]/last"/>
<xsl:with-param name="author_firstname" select="document('../people.xml')/people/person[@id=current()/@author]/first"/>
@@ -898,8 +910,11 @@
<p><a href="{$topdir}/Publications/{@author}.html.en">All publications</a></p>
</xsl:if>
<xsl:if test="$lang='pl'">
- <p><a href="{$topdir}/Publications/{@author}.html.en">Wszystkie publikacje</a></p>
+ <p><a href="{$topdir}/Publications/{@author}.html.pl">Wszystkie publikacje</a></p>
</xsl:if>
+ <xsl:if test="$lang='fr'">
+ <p><a href="{$topdir}/Publications/{@author}.html.fr">Toutes les Publications</a></p>
+ </xsl:if>
</xsl:template>
Modified: trunk/Toss/www/xsl/publications.xsl
===================================================================
--- trunk/Toss/www/xsl/publications.xsl 2011-03-16 00:05:04 UTC (rev 1363)
+++ trunk/Toss/www/xsl/publications.xsl 2011-03-16 16:04:48 UTC (rev 1364)
@@ -26,6 +26,9 @@
<xsl:if test="$lang='pl'">
<h1 property="dc:title">Prace i Referaty</h1>
</xsl:if>
+ <xsl:if test="$lang='fr'">
+ <h1 property="dc:title">Papers et Entretiens</h1>
+ </xsl:if>
<xsl:if test="document('../people.xml')/people/person[@id=$author]">
<xsl:variable name="fullname" select="normalize-space(concat(document('../people.xml')/people/person[@id=$author]/first,' ',document('../people.xml')/people/person[@id=$author]/last))"/>
<h2><xsl:value-of select="$fullname"/></h2>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|