[med-svn] r1402 - trunk/community/website

hanska-guest at alioth.debian.org hanska-guest at alioth.debian.org
Sun Feb 17 12:58:50 UTC 2008


Author: hanska-guest
Date: 2008-02-17 12:58:49 +0000 (Sun, 17 Feb 2008)
New Revision: 1402

Added:
   trunk/community/website/tasks-old.tmpl
Modified:
   trunk/community/website/tasks.tmpl
Log:
Trying a more C-like approach (was hating str_replace(array(), array(), $string)) thing).


Copied: trunk/community/website/tasks-old.tmpl (from rev 1401, trunk/community/website/tasks.tmpl)
===================================================================
--- trunk/community/website/tasks-old.tmpl	                        (rev 0)
+++ trunk/community/website/tasks-old.tmpl	2008-02-17 12:58:49 UTC (rev 1402)
@@ -0,0 +1,119 @@
+<?php
+ini_set("include_path", ini_get("include_path").":../");
+require_once("inc/header.inc.php");
+?>
+<table class="columns">
+<tr>
+	<td class="left">
+		<span class="section"><?=_("summary")?></span>
+		<div class="section">
+			<div class="sectionTop"></div>
+			<div class="row">
+				<strong node="con:task"></strong><br />
+				<em node="con:shortdesc"></em><br />
+				<p node="con:longdesc"></p>
+			</div>
+			<div class="row">
+				<p>
+					<?=_("The list to the right includes various software projects which are of some interest to the Debian-Med Project.")?>
+					<?=_("Currently, only a few of them are available as Debian packages.")?>
+					<?=_("It is our goal, however, to include all software in Debian-Med which can sensibly add to a high quality Custom Debian Distribution.")?>
+				</p>
+				<p>
+					<?=_("For a better overview of the project's availability as a Debian package, each head row has a color code according to this scheme:")?>
+				</p>
+				<ul>
+					<?php $msg = _("Green: The project is %1available as an official Debian package%2"); ?>
+					<li><?= str_replace(array("%1", "%2"), array('<a href="#official-debs">', '</a>', $msg); ?></li>
+					<?php $msg = _("Yellow: The project is %1available as an inofficial Debian package%2"); ?>
+					<li><?= str_replace(array("%1", "%2"), array('<a href="#inofficial-debs">', '</a>', $msg); ?></li>
+					<?php $msg = _("Red: The project is <a href="#debs-not-available">not (yet) available as a Debian package"); ?>
+					<li><?= str_replace(array("%1", "%2"), array('<a href="#debs-not-available">', '</a>', $msg); ?></li>
+				</ul>
+				<p>
+					<?php
+						$msg =_("If you discover a project which looks like a good candidate for Debian-Med to you, " .
+							"or if you have prepared an inofficial Debian package, please do not hesitate to send " .
+							"a description of that project to the %1Debian-Med mailing list%2"); ?>
+						echo str_replace(array("%1", "%2"), array('<a href="mailto:debian-med at lists.debian.org">', '</a>'), $msg);
+					?>
+				</p>
+			</div>
+		</div>
+	</td>
+	<td class="main">
+		<div class="pageBody">
+			<h1><p node="-con:heading"></p></h1>
+			<p node="-con:official_head"></p>
+			<h1 node="con:task"></h1>
+			<div node="-rep:official"><p node="-con:project"></p>
+				<tbody>
+					<tr class="deb-official">
+						<td class="project-name">
+							<a node="con:anchor" name="" id=""></a>
+							<strong node="con:name"></strong><br />
+							<em node="con:shortdesc"></em><br />
+							<a node="con:url" href=""></a>
+						</td>
+						<td class="project-license">
+							<em node="con:version"></em><br />
+							<em node="con:license"></em><br />
+							<a node="con:pkgurl" href=""></a> &mdash; <a node="con:deburl" href=""></a>
+						</td>
+					</tr>
+					<tr>
+						<td node="con:longdesc" class="project-description" colspan="2"></td>
+					</tr>
+				</tbody>
+			</table></div>
+			<p node="-con:unofficial_head"></p>
+			<div node="-rep:unofficial"><p node="-con:project"></p>
+				<tbody>
+					<tr class="deb-inofficial">
+						<td class="project-name">
+							<a node="con:anchor" name="" id=""></a>
+							<strong node="con:name"></strong><br />
+							<em node="con:shortdesc"></em><br />
+							<a node="con:url" href=""></a>
+						</td>
+						<td class="project-license">
+							<em node="con:version"></em><br />
+							<em node="con:license"></em><br />
+							<a node="con:pkgurl" href=""></a>
+						</td>
+					</tr>
+					<tr>
+						<td node="con:longdesc" class="project-description" colspan="2"></td>
+					</tr>
+				</tbody>
+			</table></div>
+			<p node="-con:unavailable_head"></p>
+			<div node="-rep:unavailable"><p node="-con:project"></p>
+				<tbody>
+					<tr class="deb-not-available">
+						<td class="project-name">
+							<a node="con:anchor" name="" id=""></a>
+							<strong node="con:name"></strong><p node="-con:wnpp"></p><br />
+							<em node="con:shortdesc"></em><br />
+							<a node="con:url" href=""></a><br />
+							<?=_("Responsible")?>: <p node="-con:responsible"></p>
+						</td>
+						<td class="project-license">
+							<em node="con:license"></em><br />
+							<?=_("Debian package not available")?>
+						</td>
+					</tr>
+					<tr>
+						<td node="con:longdesc" class="project-description" colspan="2"></td>
+					</tr>
+				</tbody>
+			</table></div>
+		</div>
+	</td>
+</tr>
+</table>
+<address><?=_("Last update")?>: <div node="-con:date"></div></address>
+<address><?=_("Please note: this page gets automatically updated twice a day, on 00:00 and 12:00 UTC.")?></address>
+<?php
+require_once("inc/footer.inc.php");
+?>

Modified: trunk/community/website/tasks.tmpl
===================================================================
--- trunk/community/website/tasks.tmpl	2008-02-17 12:44:48 UTC (rev 1401)
+++ trunk/community/website/tasks.tmpl	2008-02-17 12:58:49 UTC (rev 1402)
@@ -23,14 +23,15 @@
 					<?=_("For a better overview of the project's availability as a Debian package, each head row has a color code according to this scheme:")?>
 				</p>
 				<ul>
-					<li>Green: The project is <a href="#official-debs">available as an official Debian package</a></li>
-					<li>Yellow: The project is <a href="#inofficial-debs">available as an inofficial Debian package</a></li>
-					<li>Red: The project is <a href="#debs-not-available">not (yet) available as a Debian package</a></li>
+					<li><?= sprintf(_("Green: The project is [%s]available as an official Debian package[%s]"), '<a href="#official-debs">', '</a>'); ?></li>
+					<li><?= sprintf(_("Yellow: The project is [%s]available as an inofficial Debian package[%s]"), '<a href="#inofficial-debs">', '</a>'); ?></li>
+					<li><?= sprintf(_("Red: The project is [%s]not (yet) available as a Debian package[%s]"), '<a href="#debs-not-available">', '</a>'); ?></li>
 				</ul>
 				<p>
-					If you discover a project which looks like a good candidate for Debian-Med to you, or if you 
-					have prepared an inofficial Debian package, please do not hesitate to send a description of that 
-					project	to the <a href="mailto:debian-med at lists.debian.org">Debian-Med mailing list</a>
+					<?= sprintf(_("If you discover a project which looks like a good candidate for Debian-Med to you, " .
+						"or if you have prepared an inofficial Debian package, please do not hesitate to send " .
+						"a description of that project to the [%s]Debian-Med mailing list[%s]"), '<a href="mailto:debian-med at lists.debian.org">',
+						'</a>'); ?>
 				</p>
 			</div>
 		</div>




More information about the debian-med-commit mailing list