[Gnucash-changes] r14160 - htdocs/trunk - Rework the news script.

Derek Atkins warlord at cvs.gnucash.org
Tue May 23 21:36:06 EDT 2006


Author: warlord
Date: 2006-05-23 21:36:05 -0400 (Tue, 23 May 2006)
New Revision: 14160
Trac: http://svn.gnucash.org/trac/changeset/14160

Added:
   htdocs/trunk/news/1.9.0.news
   htdocs/trunk/news/1.9.1.news
   htdocs/trunk/news/de/
Removed:
   htdocs/trunk/news/1.9.0.phtml
   htdocs/trunk/news/1.9.0.txt
   htdocs/trunk/news/1.9.1.phtml
   htdocs/trunk/news/1.9.1.txt
Modified:
   htdocs/trunk/de/local.php
   htdocs/trunk/fr/local.php
   htdocs/trunk/index.phtml
   htdocs/trunk/local.php
   htdocs/trunk/news/news-script.php
Log:
Rework the news script.
- use ".news" files
- go back to old-style, fully-translated news files
- build the script to allow new-news and old-news from the same set
  of news files
- modify the local.php files to point to the appropriate translated news
  files.


Modified: htdocs/trunk/de/local.php
===================================================================
--- htdocs/trunk/de/local.php	2006-05-24 01:25:30 UTC (rev 14159)
+++ htdocs/trunk/de/local.php	2006-05-24 01:36:05 UTC (rev 14160)
@@ -2,4 +2,5 @@
 $top_dir = "..";
 $home = ".";
 $locale = "de_DE";
+$lang_dir = "de";
 ?>

Modified: htdocs/trunk/fr/local.php
===================================================================
--- htdocs/trunk/fr/local.php	2006-05-24 01:25:30 UTC (rev 14159)
+++ htdocs/trunk/fr/local.php	2006-05-24 01:36:05 UTC (rev 14160)
@@ -1,5 +1,6 @@
 <?php
-$locale = "fr_FR";
 $top_dir = "..";
 $home = ".";
+$locale = "fr_FR";
+$lang_dir = "fr";
 ?>

Modified: htdocs/trunk/index.phtml
===================================================================
--- htdocs/trunk/index.phtml	2006-05-24 01:25:30 UTC (rev 14159)
+++ htdocs/trunk/index.phtml	2006-05-24 01:36:05 UTC (rev 14160)
@@ -44,7 +44,7 @@
 # of the .txt format. 
   # for english, the lang and en news path are identical
   $en_newspath  =  $top_dir."/news/";
-  $lang_newspath  =  $top_dir."/news/";
+  $lang_newspath  =  $top_dir."/news/".$lang_dir."/";
   include("$top_dir/news/news-script.php"); ?>
 
 <div class="newsborder">

Modified: htdocs/trunk/local.php
===================================================================
--- htdocs/trunk/local.php	2006-05-24 01:25:30 UTC (rev 14159)
+++ htdocs/trunk/local.php	2006-05-24 01:36:05 UTC (rev 14160)
@@ -2,4 +2,5 @@
 $top_dir = ".";
 $home = $top_dir;
 $locale = "en_US";
+$lang_dir = "";
 ?>

Copied: htdocs/trunk/news/1.9.0.news (from rev 14151, htdocs/trunk/news/1.9.0.txt)
===================================================================
--- htdocs/trunk/news/1.9.0.txt	2006-05-22 18:26:02 UTC (rev 14151)
+++ htdocs/trunk/news/1.9.0.news	2006-05-24 01:36:05 UTC (rev 14160)
@@ -0,0 +1,28 @@
+<b>Announcement</b>: GnuCash 1.9.0 Release 
+2006-02-09   05:19:32
+   
+<p>The GnuCash development team proudly announces GnuCash 1.9.0 aka "We're gonna make it!", the first of several unstable 1.9.x releases of the GnuCash Open Source Accounting Software which will eventually lead to the stable version 2.0.0. This release is the very first of the gtk2-based GnuCash series, and is intended for developers and adventurous testers who want to help tracking down all those bugs that are still in there.</p>
+ 
+<h2>What's New in GnuCash 1.9.0?</h2>
+<p> o Welcome to GnuCash 1.9.0 aka "We're gonna make it!" the first of several unstable releases of the GnuCash Open Source Accounting Software which will eventually lead to the stable version 2.0.0. This release is the very first of the gtk2-based GnuCash series and is intended for developers and adventurous testers who want to help tracking down bugs.</p>
+<p> o WARNING WARNING WARNING - Make sure you make backups of any files used in testing versions of GnuCash in the 1.9.x series. Although the developers go to great lengths to ensure that no data will be lost we cannot guarentee that your data will not be affected if for some reason GnuCash crashes in testing these releases.</p>
+<p> o PLEASE TEST TEST AND TEST SOME MORE any and all features important to you. Then post any bugs you find to bugzilla http://bugzilla.gnome.org/enter_bug.cgi?product=GnuCash</p>
+<p> o If you have the urge to help beyond testing please get involved in the discussions on the GnuCash mailing lists which you will find at http://www.gnucash.org. We especially need people to help with updating the documentation as all texts refer currently to the 1.8.x series. Please see http://wiki.gnucash.org/wiki/Development on how to get involved.</p>
+<p> o PS I'm not going to list the many features changed or updated in this release because obviously there is so much that has changed.</p>
+ 
+<h2>Caveats</h2>
+<p>Caveats for testers:</p>
+<p> Any 1.9.x version might crash unexpectedly at any point during runtime. If you test some serious work in a 1.9.x release, make sure you hit "Save" after ever non-trivial workstep. </p>
+<p> Keep in mind that features which are not used in everyday work might crash unexpectedly at all times. This includes but is not limited to: graphical reports, scheduled transaction editor, price editor, financial calculator, OFX/QIF/HBCI import. </p>
+<p> Especially all the new features might crash instantly on testing. This applies in particular to any of the budget-related features. We may always decide to disable such new features for the initial 2.0.0 release, and re-enable them in a later release. </p>
+<p> The documentation is completely outdated. All help texts usually only refer to the 1.8.x series; please expect all descriptions in the help texts to be totally wrong when applied to the upcoming 1.9.x series. Everyone is invited to help improve the documentation; see http://wiki.gnucash.org/wiki/Development on how to get involved. </p>
+<h3> How can you help? </h3>
+<p> Testing: Test it and help us discover all bugs that might show up in there. Please enter each and every bug into bugzilla at http://bugzilla.gnome.org/enter_bug.cgi?product=GnuCash </p>
+<p> Translating: The new release comes with plenty of new translation strings. If you consider contributing a translation, we invite you to test this release already, but please keep in mind that we are not yet in our string freeze phase. Please check http://wiki.gnucash.org/wiki/Translation_Status for updates on this, as we recommend to wait for the string freeze phase for the serious translation work. </p>
+
+
+<h2> Available at the usual places! </h2>
+
+<a href="http://www.gnucash.org">http://www.gnucash.org</a>
+<br>
+<a href="http://download.sourceforge.net/gnucash">http://download.sourceforge.net/gnucash</a>

Deleted: htdocs/trunk/news/1.9.0.phtml
===================================================================
--- htdocs/trunk/news/1.9.0.phtml	2006-05-24 01:25:30 UTC (rev 14159)
+++ htdocs/trunk/news/1.9.0.phtml	2006-05-24 01:36:05 UTC (rev 14160)
@@ -1,44 +0,0 @@
-
-<div class="newsborder">
-<div class="newsheader"><img alt="news panel" 
-src="images/icons/document.txt.gif">&nbsp;
-<?php echo _("<b>Announcement:</b> GnuCash 1.9.0 Release");?>
-<b> (
-2006-02-09   05:19:32
-)</b>
-</div><div class="newsinner">
-<br><?php echo _("The GnuCash development team proudly announces GnuCash 1.9.0 aka \"We're gonna make it!\", the first of several unstable 1.9.x releases of the GnuCash Open Source Accounting Software which will eventually lead to the stable version 2.0.0. This release is the very first of the gtk2-based GnuCash series, and is intended for developers and adventurous testers who want to help tracking down all those bugs that are still in there.");?>
-<br>
-<br>
-
-<b><big><?php echo _("What's New in GnuCash 1.9.0?");?></big></b><br>
-<?php
-echo " o " . _("Welcome to GnuCash 1.9.0 aka \"We're gonna make it!\" the first of several unstable releases of the GnuCash Open Source Accounting Software which will eventually lead to the stable version 2.0.0. This release is the very first of the gtk2-based GnuCash series and is intended for developers and adventurous testers who want to help tracking down bugs.") . "<br>";
-echo " o " . _("WARNING WARNING WARNING - Make sure you make backups of any files used in testing versions of GnuCash in the 1.9.x series. Although the developers go to great lengths to ensure that no data will be lost we cannot guarentee that your data will not be affected if for some reason GnuCash crashes in testing these releases.") . "<br>";
-echo " o " . _("PLEASE TEST TEST AND TEST SOME MORE any and all features important to you. Then post any bugs you find to bugzilla http://bugzilla.gnome.org/enter_bug.cgi?product=GnuCash") . "<br>";
-echo " o " . _("If you have the urge to help beyond testing please get involved in the discussions on the GnuCash mailing lists which you will find at http://www.gnucash.org. We especially need people to help with updating the documentation as all texts refer currently to the 1.8.x series. Please see http://wiki.gnucash.org/wiki/Development on how to get involved.") . "<br>";
-echo " o " . _("PS I'm not going to list the many features changed or updated in this release because obviously there is so much that has changed.") . "<br>";?>
-
-<h2><?php echo _("Caveats");?></h2>
-<p><?php echo _("Caveats for testers:");?></p>
-<ul><li><?php echo _("Any 1.9.x version might <i>crash unexpectedly at any point</i> during runtime. If you test some serious work in a 1.9.x release, make sure you hit \"Save\" after ever non-trivial workstep.");?>
-</li><li><?php echo _("Keep in mind that features which are not used in everyday work might crash unexpectedly at all times. This includes but is not limited to: graphical reports, scheduled transaction editor, price editor, financial calculator, OFX/QIF/HBCI import.");?>
-</li><li><?php echo _("Especially all the <i>new features</i> might crash instantly on testing. This applies in particular to any of the budget-related features. We may always decide to disable such new features for the initial 2.0.0 release, and re-enable them in a later release.");?>
-</li><li><?php echo _("The <i>documentation is completely outdated</i>. All help texts usually only refer to the 1.8.x series; please expect all descriptions in the help texts to be totally wrong when applied to the upcoming 1.9.x series. Everyone is invited to help improve the documentation; see <a href=\"http://wiki.gnucash.org/wiki/Development\" title=\"http://wiki.gnucash.org/wiki/Development\">http://wiki.gnucash.org/wiki/Development</a> on how to get
-involved.");?>
-</li></ul>
-<h2><?php echo _("How can you help?");?></h2>
-<ul><li><?php echo _("Testing: Test it and help us discover all bugs that might show up in there. Please enter each and every bug into bugzilla at ");?>
-<a href="http://bugzilla.gnome.org/enter_bug.cgi?product=GnuCash" title="http://bugzilla.gnome.org/enter bug.cgi?product=GnuCash">http://bugzilla.gnome.org/enter_bug.cgi?product=GnuCash</a>
-</li><li><?php echo _("Translating: The new release comes with plenty of new translation strings. If you consider contributing a translation, we invite you to test this release already, but please keep in mind that we are not yet in our string freeze phase. Please check <a
-href=\"http://wiki.gnucash.org/wiki/Translation_Status\" title=\"http://wiki.gnucash.org/wiki/Translation Status\">http://wiki.gnucash.org/wiki/Translation_Status</a> for updates on this, as we recommend to wait for the string freeze phase for the serious translation work.");?>
-</li></ul>
-
-
-<br><br>
-<?php echo _("Available at the usual places!");?>
-
-<br><br>
-<b><a href="http://www.gnucash.org/pub/gnucash/">http://www.gnucash.org</a></b>
-</div>
-</div>

Deleted: htdocs/trunk/news/1.9.0.txt
===================================================================
--- htdocs/trunk/news/1.9.0.txt	2006-05-24 01:25:30 UTC (rev 14159)
+++ htdocs/trunk/news/1.9.0.txt	2006-05-24 01:36:05 UTC (rev 14160)
@@ -1,28 +0,0 @@
-Announcement: GnuCash 1.9.0 Release 
-2006-02-09   05:19:32
-   
-<p>The GnuCash development team proudly announces GnuCash 1.9.0 aka "We're gonna make it!", the first of several unstable 1.9.x releases of the GnuCash Open Source Accounting Software which will eventually lead to the stable version 2.0.0. This release is the very first of the gtk2-based GnuCash series, and is intended for developers and adventurous testers who want to help tracking down all those bugs that are still in there.</p>
- 
-<h2>What's New in GnuCash 1.9.0?</h2>
-<p> o Welcome to GnuCash 1.9.0 aka "We're gonna make it!" the first of several unstable releases of the GnuCash Open Source Accounting Software which will eventually lead to the stable version 2.0.0. This release is the very first of the gtk2-based GnuCash series and is intended for developers and adventurous testers who want to help tracking down bugs.</p>
-<p> o WARNING WARNING WARNING - Make sure you make backups of any files used in testing versions of GnuCash in the 1.9.x series. Although the developers go to great lengths to ensure that no data will be lost we cannot guarentee that your data will not be affected if for some reason GnuCash crashes in testing these releases.</p>
-<p> o PLEASE TEST TEST AND TEST SOME MORE any and all features important to you. Then post any bugs you find to bugzilla http://bugzilla.gnome.org/enter_bug.cgi?product=GnuCash</p>
-<p> o If you have the urge to help beyond testing please get involved in the discussions on the GnuCash mailing lists which you will find at http://www.gnucash.org. We especially need people to help with updating the documentation as all texts refer currently to the 1.8.x series. Please see http://wiki.gnucash.org/wiki/Development on how to get involved.</p>
-<p> o PS I'm not going to list the many features changed or updated in this release because obviously there is so much that has changed.</p>
- 
-<h2>Caveats</h2>
-<p>Caveats for testers:</p>
-<p> Any 1.9.x version might crash unexpectedly at any point during runtime. If you test some serious work in a 1.9.x release, make sure you hit "Save" after ever non-trivial workstep. </p>
-<p> Keep in mind that features which are not used in everyday work might crash unexpectedly at all times. This includes but is not limited to: graphical reports, scheduled transaction editor, price editor, financial calculator, OFX/QIF/HBCI import. </p>
-<p> Especially all the new features might crash instantly on testing. This applies in particular to any of the budget-related features. We may always decide to disable such new features for the initial 2.0.0 release, and re-enable them in a later release. </p>
-<p> The documentation is completely outdated. All help texts usually only refer to the 1.8.x series; please expect all descriptions in the help texts to be totally wrong when applied to the upcoming 1.9.x series. Everyone is invited to help improve the documentation; see http://wiki.gnucash.org/wiki/Development on how to get involved. </p>
-<h3> How can you help? </h3>
-<p> Testing: Test it and help us discover all bugs that might show up in there. Please enter each and every bug into bugzilla at http://bugzilla.gnome.org/enter_bug.cgi?product=GnuCash </p>
-<p> Translating: The new release comes with plenty of new translation strings. If you consider contributing a translation, we invite you to test this release already, but please keep in mind that we are not yet in our string freeze phase. Please check http://wiki.gnucash.org/wiki/Translation_Status for updates on this, as we recommend to wait for the string freeze phase for the serious translation work. </p>
-
-
-<h2> Available at the usual places! </h2>
-
-<a href="http://www.gnucash.org">http://www.gnucash.org</a>
-<br>
-<a href="http://download.sourceforge.net/gnucash">http://download.sourceforge.net/gnucash</a>

Copied: htdocs/trunk/news/1.9.1.news (from rev 14151, htdocs/trunk/news/1.9.1.txt)
===================================================================
--- htdocs/trunk/news/1.9.1.txt	2006-05-22 18:26:02 UTC (rev 14151)
+++ htdocs/trunk/news/1.9.1.news	2006-05-24 01:36:05 UTC (rev 14160)
@@ -0,0 +1,39 @@
+<b>Announcement</b>: GnuCash 1.9.1 Release 
+2006-02-20   04:29:24
+   
+<p>The GnuCash development team proudly announces GnuCash 1.9.1 aka "So we meet again", the second of several unstable 1.9.x releases of the GnuCash Open Source Accounting Software which will eventually lead to the stable version 2.0.0. This release contains many bugfixes since the first release but is still only intended for developers and adventurous testers who want to help tracking down bugs. 
+</p>
+
+<h2> What's New in GnuCash 1.9.1?</h2>
+<p> o WARNING WARNING WARNING - Make sure you make backups of any files used in testing versions of GnuCash in the 1.9.x series. Although the developers go to great lengths to ensure that no data will be lost we cannot guarantee that your data will not be affected if for some reason GnuCash crashes in testing these releases.</p>
+<p> o PLEASE TEST TEST AND TEST SOME MORE any and all features important to you. Then post any bugs you find to bugzilla http://bugzilla.gnome.org/enter_bug.cgi?product=GnuCash</p>
+<p> o If you have the urge to help beyond testing please get involved in the discussions on the GnuCash mailing lists which you will find at http://www.gnucash.org. We especially need people to help with updating the documentation as all texts refer currently to the 1.8.x series. Please see http://wiki.gnucash.org/wiki/Development on how to get involved.</p>
+<p> o Major bugfixes include -</p><ul>
+<li> Register fixes</li>
+<li> Finance::Quote issues</li>
+<li> Correctly open an account and its sub-accounts.</li>
+<li> Change the reports from using a hard-coded fiscal year to using the global accounting period set in the preferences. Both the start date and the end date are used, so the user is free to choose any arbitrary period.</li>
+<li> Use the price nearest to midday to get the value in the default currency.</li>
+<li> Make the desktop more HIG-compliant.</li>
+<li> Patch to prevent crash when voiding a transaction.</li>
+<li> Aqbanking updates</li>
+<li> Report fixes</li>
+<li> Autodetect OFX and use it if we find it.</li>
+<li> Qof fixes</li></ul>
+ 
+<h2> Caveats </h2>
+<h3>Caveats for testers: </h3>
+<p> Any 1.9.x version might crash unexpectedly at any point during runtime. If you test some serious work in a 1.9.x release, make sure you hit "Save" after ever non-trivial workstep. </p>
+<p> Keep in mind that features which are not used in everyday work might crash unexpectedly at all times. This includes but is not limited to: graphical reports, scheduled transaction editor, price editor, financial calculator, OFX/QIF/HBCI import. </p>
+<p> Especially all the new features might crash instantly on testing. This applies in particular to any of the budget-related features. We may always decide to disable such new features for the initial 2.0.0 release, and re-enable them in a later release. </p>
+<p> The documentation is completely outdated. All help texts usually only refer to the 1.8.x series; please expect all descriptions in the help texts to be totally wrong when applied to the upcoming 1.9.x series. Everyone is invited to help improve the documentation; see http://wiki.gnucash.org/wiki/Development on how to get involved. </p>
+<h2> How can you help? </h2>
+<p><b> Testing</b>: Test it and help us discover all bugs that might show up in there. Please enter each and every bug into bugzilla at <a href="http://bugzilla.gnome.org/enter_bug.cgi?product=GnuCash">http://bugzilla.gnome.org/enter_bug.cgi?product=GnuCash</a>.</p>
+<p><b>Translating</b>: The new release comes with plenty of new translation strings. If you consider contributing a translation, we invite you to test this release already, but please keep in mind that we are not yet in our string freeze phase. Please check <a href="http://wiki.gnucash.org/wiki/Translation_Status">http://wiki.gnucash.org/wiki/Translation_Status</a> for updates on this, as we recommend to wait for the string freeze phase for the serious translation work.</p>
+
+
+<p>Available at the usual places!</p>
+
+<p><a href="http://www.gnucash.org">http://www.gnucash.org</a></p>
+
+<p><a href="http://download.sourceforge.net/gnucash">http://download.sourceforge.net/gnucash</a></p>

Deleted: htdocs/trunk/news/1.9.1.phtml
===================================================================
--- htdocs/trunk/news/1.9.1.phtml	2006-05-24 01:25:30 UTC (rev 14159)
+++ htdocs/trunk/news/1.9.1.phtml	2006-05-24 01:36:05 UTC (rev 14160)
@@ -1,47 +0,0 @@
-
-<div class="newsborder">
-<div class="newsheader"><img alt="news panel"
-src="images/icons/document.txt.gif">&nbsp;
-<?php echo _("<b>Announcement</b>: GnuCash 1.9.1 Release ");?>
-<b> (
-2006-02-20   04:29:24
-)</b>
-</div><div class="newsinner">
-<p><?php echo _("The GnuCash development team proudly announces GnuCash 1.9.1 aka \"So we meet again\", the second of several unstable 1.9.x releases of the GnuCash Open Source Accounting Software which will eventually lead to the stable version 2.0.0. This release contains many bugfixes since the first release but is still only intended for developers and adventurous testers who want to help tracking down bugs.");?> 
-</p>
-
-<h2><?php echo _("What's New in GnuCash 1.9.1");?>?</h2>
-<p> o <?php echo _("WARNING WARNING WARNING - Make sure you make backups of any files used in testing versions of GnuCash in the 1.9.x series. Although the developers go to great lengths to ensure that no data will be lost we cannot guarantee that your data will not be affected if for some reason GnuCash crashes in testing these releases.");?></p>
-<p> o <?php echo _("PLEASE TEST TEST AND TEST SOME MORE any and all features important to you. Then post any bugs you find to bugzilla http://bugzilla.gnome.org/enter_bug.cgi?product=GnuCash");?></p>
-<p> o <?php echo _("If you have the urge to help beyond testing please get involved in the discussions on the GnuCash mailing lists which you will find at http://www.gnucash.org. We especially need people to help with updating the documentation as all texts refer currently to the 1.8.x series. Please see http://wiki.gnucash.org/wiki/Development on how to get involved.");?></p>
-<p> o <?php echo _("Major bugfixes include");?> -</p><ul>
-<li> <?php echo _("Register fixes");?></li>
-<li> <?php echo _("Finance::Quote issues");?></li>
-<li> <?php echo _("Correctly open an account and its sub-accounts.");?></li>
-<li> <?php echo _("Change the reports from using a hard-coded fiscal year to using the global accounting period set in the preferences. Both the start date and the end date are used, so the user is free to choose any arbitrary period.");?></li>
-<li> <?php echo _("Use the price nearest to midday to get the value in the default currency.");?></li>
-<li> <?php echo _("Make the desktop more HIG-compliant.");?></li>
-<li> <?php echo _("Patch to prevent crash when voiding a transaction.");?></li>
-<li> <?php echo _("Aqbanking updates");?></li>
-<li> <?php echo _("Report fixes");?></li>
-<li> <?php echo _("Autodetect OFX and use it if we find it.");?></li>
-<li> <?php echo _("Qof fixes");?></li></ul>
- 
-<h2><?php echo _("Caveats");?> </h2>
-<h3><?php echo _("Caveats for testers");?>: </h3>
-<p><?php echo _("Any 1.9.x version might crash unexpectedly at any point during runtime. If you test some serious work in a 1.9.x release, make sure you hit \"Save\" after ever non-trivial workstep.");?> </p>
-<p><?php echo _("Keep in mind that features which are not used in everyday work might crash unexpectedly at all times. This includes but is not limited to: graphical reports, scheduled transaction editor, price editor, financial calculator, OFX/QIF/HBCI import.");?> </p>
-<p><?php echo _("Especially all the new features might crash instantly on testing. This applies in particular to any of the budget-related features. We may always decide to disable such new features for the initial 2.0.0 release, and re-enable them in a later release.");?> </p>
-<p>i<?php echo _("The documentation is completely outdated. All help texts usually only refer to the 1.8.x series; please expect all descriptions in the help texts to be totally wrong when applied to the upcoming 1.9.x series. Everyone is invited to help improve the documentation; see http://wiki.gnucash.org/wiki/Development on how to get involved.");?> </p>
-<h2><?php echo _("How can you help?");?> </h2>
-<p><?php echo _("<b> Testing</b>: Test it and help us discover all bugs that might show up in there. Please enter each and every bug into bugzilla at <a href=\"http://bugzilla.gnome.org/enter_bug.cgi?product=GnuCash\">http://bugzilla.gnome.org/enter_bug.cgi?product=GnuCash</a>.");?></p>
-<p><?php echo _("<b>Translating</b>: The new release comes with plenty of new translation strings. If you consider contributing a translation, we invite you to test this release already, but please keep in mind that we are not yet in our string freeze phase. Please check <a href=\"http://wiki.gnucash.org/wiki/Translation_Status\">http://wiki.gnucash.org/wiki/Translation_Status</a> for updates on this, as we recommend to wait for the string freeze phase for the serious translation work.");?></p>
-
-
-<p><?php echo _("Available at the usual places!");?></p>
-
-<p><a href="http://www.gnucash.org">http://www.gnucash.org</a></p>
-
-<p><a href="http://download.sourceforge.net/gnucash">http://download.sourceforge.net/gnucash</a></p>
-</div>
-</div>

Deleted: htdocs/trunk/news/1.9.1.txt
===================================================================
--- htdocs/trunk/news/1.9.1.txt	2006-05-24 01:25:30 UTC (rev 14159)
+++ htdocs/trunk/news/1.9.1.txt	2006-05-24 01:36:05 UTC (rev 14160)
@@ -1,39 +0,0 @@
-Announcement: GnuCash 1.9.1 Release 
-2006-02-20   04:29:24
-   
-<p>The GnuCash development team proudly announces GnuCash 1.9.1 aka "So we meet again", the second of several unstable 1.9.x releases of the GnuCash Open Source Accounting Software which will eventually lead to the stable version 2.0.0. This release contains many bugfixes since the first release but is still only intended for developers and adventurous testers who want to help tracking down bugs. 
-</p>
-
-<h2> What's New in GnuCash 1.9.1?</h2>
-<p> o WARNING WARNING WARNING - Make sure you make backups of any files used in testing versions of GnuCash in the 1.9.x series. Although the developers go to great lengths to ensure that no data will be lost we cannot guarantee that your data will not be affected if for some reason GnuCash crashes in testing these releases.</p>
-<p> o PLEASE TEST TEST AND TEST SOME MORE any and all features important to you. Then post any bugs you find to bugzilla http://bugzilla.gnome.org/enter_bug.cgi?product=GnuCash</p>
-<p> o If you have the urge to help beyond testing please get involved in the discussions on the GnuCash mailing lists which you will find at http://www.gnucash.org. We especially need people to help with updating the documentation as all texts refer currently to the 1.8.x series. Please see http://wiki.gnucash.org/wiki/Development on how to get involved.</p>
-<p> o Major bugfixes include -</p><ul>
-<li> Register fixes</li>
-<li> Finance::Quote issues</li>
-<li> Correctly open an account and its sub-accounts.</li>
-<li> Change the reports from using a hard-coded fiscal year to using the global accounting period set in the preferences. Both the start date and the end date are used, so the user is free to choose any arbitrary period.</li>
-<li> Use the price nearest to midday to get the value in the default currency.</li>
-<li> Make the desktop more HIG-compliant.</li>
-<li> Patch to prevent crash when voiding a transaction.</li>
-<li> Aqbanking updates</li>
-<li> Report fixes</li>
-<li> Autodetect OFX and use it if we find it.</li>
-<li> Qof fixes</li></ul>
- 
-<h2> Caveats </h2>
-<h3>Caveats for testers: </h3>
-<p> Any 1.9.x version might crash unexpectedly at any point during runtime. If you test some serious work in a 1.9.x release, make sure you hit "Save" after ever non-trivial workstep. </p>
-<p> Keep in mind that features which are not used in everyday work might crash unexpectedly at all times. This includes but is not limited to: graphical reports, scheduled transaction editor, price editor, financial calculator, OFX/QIF/HBCI import. </p>
-<p> Especially all the new features might crash instantly on testing. This applies in particular to any of the budget-related features. We may always decide to disable such new features for the initial 2.0.0 release, and re-enable them in a later release. </p>
-<p> The documentation is completely outdated. All help texts usually only refer to the 1.8.x series; please expect all descriptions in the help texts to be totally wrong when applied to the upcoming 1.9.x series. Everyone is invited to help improve the documentation; see http://wiki.gnucash.org/wiki/Development on how to get involved. </p>
-<h2> How can you help? </h2>
-<p><b> Testing</b>: Test it and help us discover all bugs that might show up in there. Please enter each and every bug into bugzilla at <a href="http://bugzilla.gnome.org/enter_bug.cgi?product=GnuCash">http://bugzilla.gnome.org/enter_bug.cgi?product=GnuCash</a>.</p>
-<p><b>Translating</b>: The new release comes with plenty of new translation strings. If you consider contributing a translation, we invite you to test this release already, but please keep in mind that we are not yet in our string freeze phase. Please check <a href="http://wiki.gnucash.org/wiki/Translation_Status">http://wiki.gnucash.org/wiki/Translation_Status</a> for updates on this, as we recommend to wait for the string freeze phase for the serious translation work.</p>
-
-
-<p>Available at the usual places!</p>
-
-<p><a href="http://www.gnucash.org">http://www.gnucash.org</a></p>
-
-<p><a href="http://download.sourceforge.net/gnucash">http://download.sourceforge.net/gnucash</a></p>

Modified: htdocs/trunk/news/news-script.php
===================================================================
--- htdocs/trunk/news/news-script.php	2006-05-24 01:25:30 UTC (rev 14159)
+++ htdocs/trunk/news/news-script.php	2006-05-24 01:36:05 UTC (rev 14160)
@@ -10,62 +10,54 @@
     //
     // originally by Jeremy Collins, heavily modified by Linas Vepstas
     // Restructured by Neil Williams
+    // Significantly modified by Derek Atkins
     //
-    //  they  should  be  plain  ASCII  text  files  with  extension  ".txt"
-    //  The FIRST line is the title of the news panel, including <b></b>
-    //  tags.
-    //  The SECOND line is the DATE of the news panel (as the date of modification
-    //  of these files is unreliable now that they are under version control).
-    //  Use a UNIX timestamp: any string parseable by 'date' is sufficient:
-    //  e.g. Jan 21 18:35
-    //  If the second line does not create a valid timestamp, the 
-    //  inode change time of file is used.
 
-    //  Text messages are later converted to .phtml with translatable strings
-    //  marked up in PHP. (You can follow the example of other files to do this
-    //  yourself, e.g. when updating your translation.)
+    //  News files should be HTML-marked files with extension ".news"
+    //  The FIRST line is the title of the news panel, including
+    //  <b></b> tags.
+    //  The SECOND line is the DATE of the news panel (as the date of
+    //  modification of these files is unreliable now that they are
+    //  under version control).  Use a UNIX timestamp: any string
+    //  parseable by 'date' is sufficient: e.g. Jan 21 18:35 If the
+    //  second line does not create a valid timestamp, the inode
+    //  change time of file is used.
 
-    //  These phtml files will replace the alternative of separately translated
-    //  files in bespoke language directories. Once created, the .phtml file
-    //  replaces the .txt version. This automatically enables the translated
-    //  text or uses en_US if the new strings have not been translated yet.
-
-    //  Indicate the sequence for the phtml files here: Most recent last.
-    //  Use the original timestamps as values for the array.
-
-$translated_news = array(
-"1.9.0" => "2006-02-09   05:19:32", 
-"1.9.1" => "2006-02-20   04:29:24"    );
-
-    //  If the entry in translated_news is omitted, the script will try to use
-    //  the seventh line of the phtml which should consist of just the
-    //  timestamp, without the tags or brackets.
-
     # Be sure to define the following path to newsdirs
     if (!$en_newspath) { exit;  }
     if (!$lang_newspath) { exit;  }
 
+    // This is how many news items to display on the main page.
+    // Everything after this is displayed on the "oldnews" page.
+    $cutoff = 10;
+
     // array of displayed filenames is indexed with filenames, holds timestamps.
-    $newsfile  =  array();
+    $newsfile = array();
 
+    // array of translated news files.  Holds filenames of translated news.
+    $lang_files = array();
+
+    // a little debugging
+    echo("<!-- in news/news-script.php: top_dir = $top_dir -->\n");
+    echo("<!-- lang-path: $lang_newspath ; en-path: $en_newspath -->\n");
+
     // ------------------------------------------
-    // array holding native-language news articles.
-    $native_files = array();
-    $hd  =  dir($lang_newspath);
+    // check for the translated articles
+    $hd = dir($lang_newspath);
 
-    //  Get all translatable files in the news directory
-    while(  $filename  =  $hd->read()  )  {
+    //  Get all translated files in the translated-news directory
+    while( $filename = $hd->read() )  {
         $s=strtolower($filename);
-        if  (strstr($s, ".phtml"))  {
-                $stump = str_replace("phtml", "txt", $filename);
-                $lang_files[$stump]  =  $lang_newspath.$filename;
+        if (strstr($s, ".news"))  {
+                $lang_files[$filename] = $lang_newspath.$filename;
                 $display_filename = $lang_newspath.$filename;
-                $lastchanged=$translated_news[$stump];
-                if(!$lastchanged)
-                {
-                       $about = file($display_filename);
-                       $lastchanged=$about[6];
-                }
+		//echo("<!-- found locale news: $display_filename -->\n");
+                $about = file($display_filename);
+                $lastchanged=$about[1];
+	        if($lastchanged == "\n")
+	        {
+			$lastchanged = date("Y-m-d H:m:s", filectime($display_filename));
+	        }
                 $newsfile[$display_filename] = $lastchanged;
         }
     }
@@ -75,23 +67,22 @@
     // Are there english language articles to display?
     $hd  =  dir($en_newspath);
 
-    //  Get all the alternate-language files, and display them
+    // Get all the english-language files, and display them
     // only if there isn't a matching native language article.
-    while(  $filename  =  $hd->read()  )  {
+    while( $filename = $hd->read() )  {
         $s=strtolower($filename);
-        if  (strstr($s, ".txt"))  {
-
-	    // display english only if there isn't a translated version
+        if (strstr($s, ".news"))  {
+	    //echo("<!-- found english file: $s -->\n");
 	    if (!$lang_files[$filename]) {
 	       $display_filename = $en_newspath.$filename;
-	       $lastchanged="";
+	       //echo("<!-- using untranslated english file: $display_filename -->\n");
 	       $about = file($display_filename);
                $lastchanged=$about[1];
 	       if($lastchanged == "\n")
 	       {
 			$lastchanged = date("Y-m-d H:m:s", filectime($display_filename));
 	       }
-               $newsfile[$display_filename]  =  $lastchanged;
+               $newsfile[$display_filename] = $lastchanged;
 	    }
         }
     }
@@ -101,31 +92,28 @@
     //  Sort  files  in  descending  date order
     arsort($newsfile);
 
-    // a little debugging
-    echo("<!-- in news/news-script.php: top_dir = $top_dir -->\n");
-
     //  Output  files  to  browser
-    for(reset($newsfile);  $key  =  key($newsfile);  next($newsfile))
+    $filecount = 0;
+    for(reset($newsfile); $key = key($newsfile); next($newsfile))
     {
-        $fa  =  file($key);
-        $n=count($fa);
+        $filecount++;
+	if ( ($oldnews && $filecount > $cutoff) ||
+	     (! $oldnews && $filecount <= $cutoff) )
+	{
+	    $fa = file($key);
+	    $n=count($fa);
 
-        if  (strstr($key, ".phtml"))  {
-              include $key;
-        }
-        else {
-             echo ("<div class=\"newsborder\"><div class=\"newsheader\">");
-             echo("<img alt=\"news panel\" src=\"${top_dir}/images/icons/document.txt.gif\">&nbsp;");
-             print $fa[0];
-             print  " - <b>" . $newsfile[$key] . "</b></div>\n";
-             echo "<div class=\"newsinner\">";
-             for  ($i=2;  $i<$n;  $i++)  {
-                 print $fa[$i];
-             }
-             echo "</div>";
-             echo "</div>";
-        }
+	    echo ("<div class=\"newsborder\"><div class=\"newsheader\">");
+	    echo("<img alt=\"news panel\" src=\"${top_dir}/images/icons/document.txt.gif\">&nbsp;");
+	    print $fa[0];
+	    print  " - <b>" . $newsfile[$key] . "</b></div>\n";
+	    echo "<div class=\"newsinner\">";
+	    for  ($i=2;  $i<$n;  $i++)  {
+	      print $fa[$i];
+	    }
+	    echo "</div>";
+	    echo "</div>";
+	}
     }
 
 ?>
-



More information about the gnucash-changes mailing list