changeset 2bb4f137eb63 in /home/hg/repos/gajim-website
author: Yann Leboulanger asterix@lagaule.org details:http://hg.gajim.org/gajim-website?cmd=changeset;node=2bb4f137eb63 description: update french translationX-Hg-Repo: gajim-website Subject: gajim-website: [Link Mauve] improvs js code From: Gajim Website hg@gajim.org
changeset dc825db05d61 in /home/hg/repos/gajim-website
author: Yann Leboulanger asterix@lagaule.org details:http://hg.gajim.org/gajim-website?cmd=changeset;node=dc825db05d61 description: [Link Mauve] improvs js code diffstat:
Design.php | 3 +- css/main.css | 8 +- downloads.php | 114 +++++++------- locale/bg_BG/LC_MESSAGES/msg.po | 261 ++++++++++++++++------------------- locale/de_DE/LC_MESSAGES/msg.po | 264 ++++++++++++++++------------------- locale/eo/LC_MESSAGES/msg.po | 261 ++++++++++++++++------------------- locale/es_ES/LC_MESSAGES/msg.po | 228 +++++++++++------------------- locale/fr_FR/LC_MESSAGES/msg.po | 275 +++++++++++++++++------------------- locale/he_IL/LC_MESSAGES/msg.po | 293 ++++++++++++++++++--------------------- locale/hu_HU/LC_MESSAGES/msg.po | 265 ++++++++++++++++------------------- locale/it_IT/LC_MESSAGES/msg.po | 264 ++++++++++++++++------------------- locale/pl_PL/LC_MESSAGES/msg.po | 264 ++++++++++++++++------------------- locale/pt_BR/LC_MESSAGES/msg.po | 264 ++++++++++++++++------------------- locale/ru_RU/LC_MESSAGES/msg.po | 267 ++++++++++++++++------------------- msg.pot | 208 +++++++++------------------- 15 files changed, 1448 insertions(+), 1791 deletions(-)
diffs (truncated from 6559 to 300 lines):
diff -r 9340d6a1556d -r dc825db05d61 Design.php --- a/Design.php Mon Aug 26 13:51:02 2013 +0200 +++ b/Design.php Mon Aug 26 15:55:42 2013 +0200 @@ -69,6 +69,7 @@
function Entete ($titre, $texte, $p="") { + header('Content-Type: application/xhtml+xml'); session_start(); // print_r($_SERVER); $language = get_language(); @@ -97,13 +98,13 @@ $page = $_SERVER["SCRIPT_NAME"]; $p = explode("/", $page); $page = $p[count($p)-1]; + echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"; echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n"; echo "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n"; echo "<html xmlns='http://www.w3.org/1999/xhtml'>\n <head>\n"; echo " <meta name="Author" content="Le Boulanger Yann (asterix)"/>"; echo " <meta name="description" content="Gajim is a Jabber client written in PyGTK. The goal of Gajim's developers is to provide a full featured and easy to use xmpp client for the GTK+ users. Gajim does not require GNOME to run, eventhough it exists with it nicely. Gajim is released under the GNU General Public License"/>\n"; echo " <meta name="keywords" content="gajim client jabber python gtk xmpp chat linux gnu instant messaging messenger pygtk contact transport file transfer hig chatstate bookmark avatars srv wikipedia"/>\n"; - echo " <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n"; echo " <title>\n $titre\n </title>\n"; echo " <link rel="stylesheet" href="css/main.css" type="text/css" />\n"; if ($language == "he") diff -r 9340d6a1556d -r dc825db05d61 css/main.css --- a/css/main.css Mon Aug 26 13:51:02 2013 +0200 +++ b/css/main.css Mon Aug 26 15:55:42 2013 +0200 @@ -136,24 +136,24 @@ vertical-align:middle; }
-table.os { +#os-logos { margin:25px auto; }
-td.os-logo { +#os-logos > tr > td { min-width:100px; max-width:100px; text-align:center; vertical-align:bottom; }
-img.os-logo { +.os-logo { max-width:75px; max-height:75px; margin:0px auto; }
-div#os-details div { +#os-details div { border:1px solid #bbbbbb; border-radius:5px; margin:10px; diff -r 9340d6a1556d -r dc825db05d61 downloads.php --- a/downloads.php Mon Aug 26 13:51:02 2013 +0200 +++ b/downloads.php Mon Aug 26 15:55:42 2013 +0200 @@ -15,7 +15,7 @@
#OS-Table START -print "<table class='os'>\n<tr>\n"; +print "<table id='os-logos'>\n<tr>\n";
$os_table = array( 0 => array ( @@ -99,7 +99,7 @@ if ((($num % 8) == 0) and ($num > 0)) { print "</tr>\n<tr>\n"; } - print "<td class='os-logo'><a id='ostable" . $num . "' href='#" . $values[0] . "' title='"; + print "<td><a href='#" . $values[0] . "' title='"; printf(_("Download Gajim for %s"), $values[1]); print "'><img src='imgs/" . $values[0] . ".png' class='os-logo' alt='" . $values[0] . "'/><br/>" . $values[2] . "</a></td>\n";
@@ -113,20 +113,20 @@ print "<div id='os-details'>\n";
#1)AgiliaLinux -print "<div>\n"; -print "<a name='agilialinux'/><h2>AgiliaLinux:</h2>\n"; +print "<div id='agilialinux'>\n"; +print "<h2>AgiliaLinux:</h2>\n"; print _("Just")." <i>mpkg-install gajim</i>\n"; print "</div>\n";
#2)Archlinux -print "<div>\n"; -print "<a name='archlinux'/><h2>Archlinux:</h2>\n"; +print "<div id='archlinux'>\n"; +print "<h2>Archlinux:</h2>\n"; print _("Just")." <i>pacman -S gajim</i>\n"; print "</div>\n";
#3)Debian GNU/Linux -print "<div>\n"; -print "<a name='debian'/><h2>Debian GNU/Linux:</h2>\n"; +print "<div id='debian'>\n"; +print "<h2>Debian GNU/Linux:</h2>\n"; print _(" If you use Debian unstable do")." <i>apt-get install gajim</i>\n"; print (" <br/>\n"); printf(_(" The Debian package of %s is "), "0.16-alpha2"); @@ -140,67 +140,67 @@ print "</div>\n";
#4)Fedora -print "<div>\n"; -print "<a name='fedora'/><h2>Fedora:</h2>\n"; +print "<div id='fedora'>\n"; +print "<h2>Fedora:</h2>\n"; print _("Just")." <i>yum install gajim</i>\n"; print "</div>\n";
#5)FreeBSD -print "<div>\n"; -print "<a name='freebsd'/><h2>FreeBSD:</h2>\n"; +print "<div id='freebsd'>\n"; +print "<h2>FreeBSD:</h2>\n"; print _("Gajim is available in FreeBSD via FreeBSD ports. Just ")."<i> cd /usr/ports/net/gajim/ && make install clean</i>. "; print ("<a href='http://www.freebsd.org/cgi/ports.cgi?query=gajim'>"); print _("Find out more")."</a>.\n"; print "</div>\n";
#6)Gentoo -print "<div>\n"; -print "<a name='gentoo'/><h2>Gentoo:</h2>\n"; +print "<div id='gentoo'>\n"; +print "<h2>Gentoo:</h2>\n"; print _(" Just")." <i>emerge gajim</i>\n"; print "</div>\n";
#7)Mandriva -print "<div>\n"; -print "<a name='mandriva'/><h2>Mandriva:</h2>\n"; +print "<div id='mandriva'>\n"; +print "<h2>Mandriva:</h2>\n"; print _("Just")." <i>urpmi gajim</i>\n"; print "</div>\n";
#8)openSUSE -print "<div>\n"; -print "<a name='opensuse'/><h2>openSUSE:</h2>\n"; +print "<div id='opensuse'>\n"; +print "<h2>openSUSE:</h2>\n"; print _("One click install for openSuSE")." <a href='http://software.opensuse.org/ymp/server:messaging/openSUSE_12.2/gajim.ymp'>12.2</a>, <a href='http://software.opensuse.org/ymp/server:messaging/openSUSE_12.3/gajim.ymp'>12.3</a><br/>"; print _("For other versions, ")."<a href='http://software.opensuse.org/package/gajim?search_term=Gajim'>"._("get it here")."</a><br/>\n"; print "</div>\n";
#9)PLD -print "<div>\n"; -print "<a name='pld'/><h2>PLD:</h2>\n"; +print "<div id='pld'>\n"; +print "<h2>PLD:</h2>\n"; print _("Just")." <i>poldek -U gajim</i>\n"; print "</div>\n";
#10)Slackware -print "<div>\n"; -print "<a name='slackware'/><h2>Slackware:</h2>\n"; +print "<div id='slackware'>\n"; +print "<h2>Slackware:</h2>\n"; print _("You can get the Slackware package of Gajim")." <a href='http://slackbuilds.org/result/?search=gajim&sv=all'> "._("here")."</a>."; print "</div>\n";
#11)SourceMage -print "<div>\n"; -print "<a name='sourcemage'/><h2>SourceMage:</h2>\n"; +print "<div id='sourcemage'>\n"; +print "<h2>SourceMage:</h2>\n"; print _("Just")." <i>cast gajim</i>\n"; print "</div>\n";
#12)Ubuntu -print "<div>\n"; -print "<a name='ubuntu'/><h2>Ubuntu:</h2>\n"; +print "<div id='ubuntu'>\n"; +print "<h2>Ubuntu:</h2>\n"; print _("If you use Ubuntu universe repository do")." <i>apt-get install gajim</i>\n"; print ("<br/>\n"); print _("If you want newer version of Gajim, you can also use")." <a href='https://launchpad.net/~gajim/+archive/gajim-ppa'>"._("this PPA")."</a>\n"; print "</div>\n";
#13)Windows -print "<div>\n"; -print "<a name='windows'/><h2>Windows:</h2>\n"; +print "<div id='windows'>\n"; +print "<h2>Windows:</h2>\n"; print _("There is a ")." <a href='downloads/".$download_folder."/gajim-".$last_version."-3.exe'>"._("Gajim installer")."</a>.\n"; print ("<br/>\n"); print _("Here is a")." <a href='downloads/0.16/gajim-0.16-alpha2-1.exe'>"._("Gajim installer")."</a> "; @@ -208,14 +208,14 @@ print "</div>\n";
#14)ZenWalk -print "<div>\n"; -print "<a name='zenwalk'/><h2>ZenWalk:</h2>\n"; +print "<div id='zenwalk'>\n"; +print "<h2>ZenWalk:</h2>\n"; print _("Just")." <i>netpkg gajim</i>\n"; print "</div>\n";
#15)other Linux -print "<div>\n"; -print "<a name='source'/><h2>"._("Other Linux / source").":</h2>\n"; +print "<div id='source'>\n"; +print "<h2>"._("Other Linux / source").":</h2>\n"; print _(" The tarball version of Gajim is ")."<a href='downloads/".$download_folder."/gajim-".$last_version.".tar.bz2'>"._("here")."</a>. "._("For information on how to build Gajim,")." <a href='http://hg.gajim.org/gajim/raw-file/tip/README.html'>"._("see the <tt>README</tt>")."</a> ("._("in English").").<br />\n"; printf(_(" The tarball version of %s is "), "0.16-alpha2"); print "<a href='downloads/0.16/gajim-0.16-alpha2.tar.gz'>"._("here")."</a>.<br />\n"; @@ -287,32 +287,34 @@
print " <script type='text/javascript'> -//<![CDATA[ +<![CDATA[ +(function() { + var details = (function(logos) { + var details = {}; + for (var i = 0; i < logos.length; ++i) { + var os = logos[i].alt; + details[os] = document.getElementById(os); + } + return details; + })(document.getElementsByClassName('os-logo')); - c=0; - while(c<=14) - { - document.getElementById(\"ostable\"+c).href=\"javascript:show_os_description(\"+c+\");\"; - c++; - } - document.getElementById(\"top-sourcelink\").href=\"javascript:show_os_description(14);\"; - hide_descriptions(); - - function hide_descriptions() - { - var c = 0; - while(c<=14) - { - document.getElementById(\"os-details\").getElementsByTagName('div')[c].style.display=\"none\"; - c++; - } - } - function show_os_description(id) - { - hide_descriptions(); - document.getElementById(\"os-details\").getElementsByTagName('div')[id].style.display=\"block\"; + var hide_descriptions = function() { + for (os in details) + details[os].style.display = 'none'; } -//]]> + + var show_os_description = function() { + hide_descriptions(); + var detail = details[location.hash.substr(1)]; + if (detail !== undefined) + detail.style.display = 'block'; + } + + window.addEventListener('hashchange', show_os_description, false); + show_os_description(); + +})(); +]]> </script> ";
diff -r 9340d6a1556d -r dc825db05d61 locale/bg_BG/LC_MESSAGES/msg.po --- a/locale/bg_BG/LC_MESSAGES/msg.po Mon Aug 26 13:51:02 2013 +0200 +++ b/locale/bg_BG/LC_MESSAGES/msg.po Mon Aug 26 15:55:42 2013 +0200 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: gajim website\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-08-26 11:16+0200\n" +"POT-Creation-Date: 2013-08-26 14:04+0200\n" "PO-Revision-Date: 2007-03-14 17:52+0200\n" "Last-Translator: Yavor Doganov yavor@gnu.org\n" "Language-Team: Bulgarian dict@fsa-bg.org\n" @@ -43,99 +43,22 @@ msgstr "Разработка"
#: Design.php:94 -msgid "Debian" -msgstr "Дебиан" - -#: Design.php:95 -msgid "Slackware" -msgstr "Слакуер" - -#: Design.php:96 -msgid "Ubuntu" -msgstr "Убунту" - -#: Design.php:97