Update of /cvsroot/audacity/htdocs/community
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv9694/community

Modified Files:
        translation.php 
Added Files:
        potdates.inc 
Log Message:
Make provision for the change dates of the .pot files to be displayed in the 
page (and change without changing the strings, obviously).


Index: translation.php
===================================================================
RCS file: /cvsroot/audacity/htdocs/community/translation.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- translation.php     9 Oct 2008 20:21:57 -0000       1.12
+++ translation.php     16 Feb 2009 21:50:30 -0000      1.13
@@ -9,19 +9,38 @@
   $pageId = "translation";
   $pageTitle = _("Translators");
   include "../include/header.inc.php";
+  include "potdates.inc";
 ?>
 
 <h2><?=$pageTitle?></h2>
 
-<p><?=_('A group of volunteers is translating the free Audacity sound editor 
into many different languages.  If you would like to help, please join the <a 
href="../contact/lists#translation">audacity-translation mailing list</a> and 
introduce yourself.')?></p>
+<p><?php
+  // i18n-hint: The two %s will be replaced by HTML tags to make the text
+  // inbetween into a link to the mailing list page. They are thus invisible in
+  // the final text.
+printf(_('A group of volunteers is translating the free Audacity sound editor 
into many different languages.  If you would like to help, please join the 
%saudacity-translation mailing list%s and introduce yourself.'), '<a 
href="../contact/lists#translation">', '</a>'); ?></p>
 
 <p><?=_('The translation effort is now focused on Audacity 1.3.  Translations 
from previous versions of Audacity have been imported and need to be 
updated.')?></p>
 
 <h3><?=_("Resources for Translators")?></h3>
 <ul>
   <li><a href="../contact/lists#translation"><?=_("Mailing list and 
archives")?></a></li>
-  <li><a href="../locale/audacity.pot"><?=_("Latest audacity.pot 
file")?></a></li>
-  <li><a href="../locale/audacity_website.pot"><?=_("Latest 
audacity_website.pot file")?></a></li>
+  <li><a href="../locale/audacity.pot"><?php
+               // i18n-hint: The three numbers will be year, month, day. 
Remember you
+               // can re-order the numbers if you want to - to get Day, Month, 
Year,
+               // translate the values as %4$02d/%3$02d/%2$04d. The string 
(%s) inserts
+               // a html tag to end the link, and is not visible.
+       printf(_("Latest audacity.pot file%s (last updated %04d/%02d/%02d)"), 
+               '</a>', $prog_year, $prog_month, $prog_day);
+?></a></li>
+  <li><a href="../locale/audacity_website.pot"><?php
+               // i18n-hint: The three numbers will be year, month, day. 
Remember you
+               // can re-order the numbers if you want to - to get Day, Month, 
Year,
+               // translate the values as %4$02d/%3$02d/%2$04d. The string 
(%s) inserts
+               // a html tag to end the link, and is not visible.
+   printf(_("Latest audacity_website.pot file%s (last updated 
%04d/%02d/%02d)"),
+               '</a>', $web_year, $web_month, $web_day);
+?></a></li>
   <li><a href="http://wxwidgets.org/i18n.php";><?=_("wxWidgets i18n")?></a></li>
 </ul>
 
@@ -73,4 +92,4 @@
 </ul>'), "http://audacity.cvs.sourceforge.net/audacity/audacity-src/locale/";, 
"http://audacity.cvs.sourceforge.net/audacity/htdocs/locale/";);
 
   include "../include/footer.inc.php";
-?>
\ No newline at end of file
+?>

--- NEW FILE: potdates.inc ---
<?php
/* This file stores the revision dates of the latest .pot files so that
 * it is easy to tell when the files have changed */
$prog_year = 2008;
$prog_month = 2;
$prog_day = 15;

$web_year = 2008;
$web_month = 2;
$web_day = 13;
?>


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to