[Gnucash-changes] r13317 - htdocs/trunk/news - updating the news for 1.9.1 and the news_script

Neil Williams codehelp at cvs.gnucash.org
Mon Feb 20 05:09:08 EST 2006


Author: codehelp
Date: 2006-02-20 05:09:06 -0500 (Mon, 20 Feb 2006)
New Revision: 13317
Trac: http://svn.gnucash.org/trac/changeset/13317

Added:
   htdocs/trunk/news/1.9.1.phtml
   htdocs/trunk/news/1.9.1.txt
Modified:
   htdocs/trunk/news/1.9.0.phtml
   htdocs/trunk/news/news-script.php
Log:
updating the news for 1.9.1 and the news_script

Modified: htdocs/trunk/news/1.9.0.phtml
===================================================================
--- htdocs/trunk/news/1.9.0.phtml	2006-02-20 04:40:06 UTC (rev 13316)
+++ htdocs/trunk/news/1.9.0.phtml	2006-02-20 10:09:06 UTC (rev 13317)
@@ -3,7 +3,9 @@
 <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&nbsp; &nbsp;05:19:32)</b>
+<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>
@@ -15,7 +17,7 @@
 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>";
+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>
@@ -38,3 +40,5 @@
 
 <br><br>
 <b><a href="http://www.gnucash.org/pub/gnucash/">http://www.gnucash.org</a></b>
+</div>
+</div>

Added: htdocs/trunk/news/1.9.1.phtml
===================================================================
--- htdocs/trunk/news/1.9.1.phtml	2006-02-20 04:40:06 UTC (rev 13316)
+++ htdocs/trunk/news/1.9.1.phtml	2006-02-20 10:09:06 UTC (rev 13317)
@@ -0,0 +1,47 @@
+
+<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>

Added: htdocs/trunk/news/1.9.1.txt
===================================================================
--- htdocs/trunk/news/1.9.1.txt	2006-02-20 04:40:06 UTC (rev 13316)
+++ htdocs/trunk/news/1.9.1.txt	2006-02-20 10:09:06 UTC (rev 13317)
@@ -0,0 +1,39 @@
+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-02-20 04:40:06 UTC (rev 13316)
+++ htdocs/trunk/news/news-script.php	2006-02-20 10:09:06 UTC (rev 13317)
@@ -20,6 +20,26 @@
     //  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.)
+
+    //  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;  }
@@ -33,23 +53,20 @@
     $native_files = array();
     $hd  =  dir($lang_newspath);
 
-    //  Get  all  files in the language directory
+    //  Get all translatable files in the news directory
     while(  $filename  =  $hd->read()  )  {
         $s=strtolower($filename);
-        if  (strstr($s, ".txt"))  {
-            $lang_files[$filename]  =  $lang_newspath.$filename;
-
-	    $display_filename = $lang_newspath.$filename;
-
-            //  Determine  last  modification  date
-	    $lastchanged="";
-	    $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;
+        if  (strstr($s, ".phtml"))  {
+                $stump = str_replace("phtml", "txt", $filename);
+                $lang_files[$stump]  =  $lang_newspath.$filename;
+                $display_filename = $lang_newspath.$filename;
+                $lastchanged=$translated_news[$stump];
+                if(!$lastchanged)
+                {
+                       $about = file($display_filename);
+                       $lastchanged=$about[6];
+                }
+                $newsfile[$display_filename] = $lastchanged;
         }
     }
     $hd->close();
@@ -67,7 +84,6 @@
 	    // display english only if there isn't a translated version
 	    if (!$lang_files[$filename]) {
 	       $display_filename = $en_newspath.$filename;
-               //  Determine  last  modification  date
 	       $lastchanged="";
 	       $about = file($display_filename);
                $lastchanged=$about[1];
@@ -89,19 +105,23 @@
     for(reset($newsfile);  $key  =  key($newsfile);  next($newsfile))
     {
         $fa  =  file($key);
-        $n=count($fa);
-
-        echo ("<div class=\"newsborder\"><div class=\"newsheader\">");
-        echo("<img alt=\"news panel\" src=\"images/icons/document.txt.gif\">&nbsp;");
-	print $fa[0];
-	print  " - <b>" . $newsfile[$key] . "</b>\n</div>";
-
-        echo "<div class=\"newsinner\">";
-        for  ($i=2;  $i<$n;  $i++)  {
-	    print $fa[$i];
+        $n=count($fa);
+
+        if  (strstr($key, ".phtml"))  {
+              include $key;
+        }
+        else {
+             echo ("<div class=\"newsborder\"><div class=\"newsheader\">");
+             echo("<img alt=\"news panel\" src=\"images/icons/document.txt.gif\">&nbsp;");
+             print $fa[0];
+             print  " - <b>" . $newsfile[$key] . "</b>\n</div>";
+             echo "<div class=\"newsinner\">";
+             for  ($i=2;  $i<$n;  $i++)  {
+                 print $fa[$i];
+             }
+             echo "</div>";
+             echo "</div>";
         }
-        echo "</div>";
-        echo "</div>";
     }
 
 ?>



More information about the gnucash-changes mailing list