damned-lies r743 - in trunk: . data templates
- From: claudep svn gnome org
- To: svn-commits-list gnome org
- Subject: damned-lies r743 - in trunk: . data templates
- Date: Mon, 18 Feb 2008 22:02:49 +0000 (GMT)
Author: claudep
Date: Mon Feb 18 22:02:49 2008
New Revision: 743
URL: http://svn.gnome.org/viewvc/damned-lies?rev=743&view=rev
Log:
2008-02-18 Claude Paroz <claude 2xlibre net>
* people.xml.in: Updated French guys.
* data/main.css:
* data/main.js:
* templates/header.tmpl:
* templates/language-release-doc-stats-modules.tmpl:
* templates/language-release-doc-stats.tmpl:
* templates/language-release-ui-stats-modules.tmpl:
* templates/language-release-ui-stats.tmpl:
* templates/language-release.tmpl:
Added patch from Gil Forcada to show/hide completed modules on language
release pages.
Fixes #106779.
Added:
trunk/data/main.js
Modified:
trunk/ChangeLog
trunk/data/main.css
trunk/people.xml.in
trunk/templates/header.tmpl
trunk/templates/language-release-doc-stats-modules.tmpl
trunk/templates/language-release-doc-stats.tmpl
trunk/templates/language-release-ui-stats-modules.tmpl
trunk/templates/language-release-ui-stats.tmpl
trunk/templates/language-release.tmpl
Modified: trunk/data/main.css
==============================================================================
--- trunk/data/main.css (original)
+++ trunk/data/main.css Mon Feb 18 22:02:49 2008
@@ -125,6 +125,11 @@
div.col2 { float: left }
div.col3 { float: left }
+p#show, p#hide {
+ text-align: right;
+ font-style: italic;
+}
+
.path {
font-size: x-small;
font-style: italic;
Added: trunk/data/main.js
==============================================================================
--- (empty file)
+++ trunk/data/main.js Mon Feb 18 22:02:49 2008
@@ -0,0 +1,42 @@
+// ***
+// This function shows or hides all modules in a release that are
+// 100% translated
+// ***
+function showHideCompleted() {
+ var regex = /complete$/i;
+
+ var doc = document.getElementById("documentation");
+ var translations = doc.getElementsByTagName("tr");
+
+ for(var i=0;i<translations.length;i++) {
+ if ( regex.exec(translations[i].id) ) {
+ if ( translations[i].style.display != 'none' ) {
+ translations[i].style.display = 'none';
+ }
+ else {
+ translations[i].style.display = '';
+ }
+ }
+ }
+
+ var ui = document.getElementById("user-interface");
+ var translations = ui.getElementsByTagName("tr");
+
+ for(var i=0;i<translations.length;i++) {
+ if ( regex.exec(translations[i].id) ) {
+ if ( translations[i].style.display != 'none' ) {
+ translations[i].style.display = 'none';
+ }
+ else {
+ translations[i].style.display = '';
+ }
+ }
+ }
+
+ var hide = document.getElementById("hide");
+ var show = document.getElementById("show");
+
+ hide.style.display = (hide.style.display != 'none' ? 'none' : '' );
+ show.style.display = (show.style.display != 'none' ? 'none' : '' );
+ return false;
+}
Modified: trunk/people.xml.in
==============================================================================
--- trunk/people.xml.in (original)
+++ trunk/people.xml.in Mon Feb 18 22:02:49 2008
@@ -369,15 +369,11 @@
<name>Ilkka Tuohela</name>
<email>hile iki fi</email>
</person>
- <!-- former fr translation coordinator -->
- <person id="redfox">
- <name>Christophe Merlet (RedFox)</name>
- <email>redfox redfoxcenter org</email>
- </person>
<!-- fr translation coordinator -->
<person id="stephaner">
<name>StÃphane Raimbault</name>
<email>stephane raimbault gmail com</email>
+ <icon>http://planete.gnomefr.org/heads/raimbault.png</icon>
</person>
<!-- gl translation coordinator -->
<person id="icq">
Modified: trunk/templates/header.tmpl
==============================================================================
--- trunk/templates/header.tmpl (original)
+++ trunk/templates/header.tmpl Mon Feb 18 22:02:49 2008
@@ -18,6 +18,8 @@
#if $rtl
<link rel="stylesheet" href="${defaults.webroot}/data/rtl.css"/>
#end if
+ <script src="${defaults.webroot}/data/main.js"></script>
+
</head>
#if $rtl
<body dir="rtl">
Modified: trunk/templates/language-release-doc-stats-modules.tmpl
==============================================================================
--- trunk/templates/language-release-doc-stats-modules.tmpl (original)
+++ trunk/templates/language-release-doc-stats-modules.tmpl Mon Feb 18 22:02:49 2008
@@ -28,8 +28,11 @@
#end if
#set POINFO=$document.po_messages+$document.pot_messages
-
+ #if $document.supportedness == 100
+ <tr id="${moduleid}-${$document.potbase}-complete">
+ #else
<tr>
+ #end if
#if len($module.documents.keys()) > 1
<td class="leftcell" style="padding-left:2em; padding-right:2em;">
<a href="$POFILE" title="module: '$module.scmmodule/$docdir', branch: '$module.branch'"><img src="${webroot}/data/download.png" alt="$_("Download po file")"/></a>${document.description}
Modified: trunk/templates/language-release-doc-stats.tmpl
==============================================================================
--- trunk/templates/language-release-doc-stats.tmpl (original)
+++ trunk/templates/language-release-doc-stats.tmpl Mon Feb 18 22:02:49 2008
@@ -1,7 +1,7 @@
#from l10n import MyFilter
#filter $MyFilter
-<table>
+<table id="documentation">
<tr style="background: inherit;">
<td class="leftcell" style="font-size: 120%; background: inherit;" colspan="2">${release.doc_supportedness}% ($release.doc_translated/$release.doc_fuzzy/$release.doc_untranslated)</td>
<td style="width: 108px; text-align: center; background:inherit;"><div class="graph">
Modified: trunk/templates/language-release-ui-stats-modules.tmpl
==============================================================================
--- trunk/templates/language-release-ui-stats-modules.tmpl (original)
+++ trunk/templates/language-release-ui-stats-modules.tmpl Mon Feb 18 22:02:49 2008
@@ -28,7 +28,11 @@
#end if
#set POINFO=$domain.pot_messages+$domain.po_messages
- <tr>
+ #if $domain.supportedness == 100
+ <tr id="${moduleid}-${domain.potbase}-complete">
+ #else
+ <tr>
+ #end if
#if len($module.translation_domains.keys()) > 1
<td class="leftcell" style="padding-left:2em; padding-right:2em;" title="module: '$module.scmmodule/$domaindir', branch: '$module.branch'">
<a href="$POFILE"><img src="${webroot}/data/download.png" alt="$_("Download po file")"/></a>${domain.description}
Modified: trunk/templates/language-release-ui-stats.tmpl
==============================================================================
--- trunk/templates/language-release-ui-stats.tmpl (original)
+++ trunk/templates/language-release-ui-stats.tmpl Mon Feb 18 22:02:49 2008
@@ -1,7 +1,7 @@
#from l10n import MyFilter
#filter $MyFilter
-<table>
+<table id="user-interface">
<tr style="background: inherit;">
<td class="leftcell" style="font-size: 120%; background: inherit;" colspan="2">${release.ui_supportedness}% ($release.ui_translated/$release.ui_fuzzy/$release.ui_untranslated)</td>
<td style="width: 108px; text-align: center; background:inherit;"><div class="graph">
Modified: trunk/templates/language-release.tmpl
==============================================================================
--- trunk/templates/language-release.tmpl (original)
+++ trunk/templates/language-release.tmpl Mon Feb 18 22:02:49 2008
@@ -47,6 +47,15 @@
</td></tr></table>
<h2>$release.description</h2>
+
+<p id="hide">
+ <a href="#" onclick="return showHideCompleted();">$_("Hide completed modules")</a>
+</p>
+
+<p id="show" style="display:none">
+ <a href="#" onclick="return showHideCompleted();">$_("Show completed modules")</a>
+</p>
+
#if $release.status=="external"
<p><i>$_("The modules of this release are not part of the GNOME SVN repository. Please check each module's web page to see where to send translations.")</i></p>
#end if
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]