[Gnucash-changes] r14179 - htdocs/trunk - Some website updates

Derek Atkins warlord at cvs.gnucash.org
Wed May 24 18:31:17 EDT 2006


Author: warlord
Date: 2006-05-24 18:31:15 -0400 (Wed, 24 May 2006)
New Revision: 14179
Trac: http://svn.gnucash.org/trac/changeset/14179

Modified:
   htdocs/trunk/externals/header.phtml
   htdocs/trunk/externals/menu.phtml
   htdocs/trunk/index.phtml
   htdocs/trunk/news/news-script.php
Log:
Some website updates
- set $oldnews to false in index.html so the variable exists
- internationalize the download locations
- point to an internationalized search
- internationalize two more header strings
- prevent a php error about a non-existant array key in the news script.


Modified: htdocs/trunk/externals/header.phtml
===================================================================
--- htdocs/trunk/externals/header.phtml	2006-05-24 15:53:50 UTC (rev 14178)
+++ htdocs/trunk/externals/header.phtml	2006-05-24 22:31:15 UTC (rev 14179)
@@ -22,14 +22,14 @@
 <a href="<?=$home?>/"><img src="<?=$top_dir?>/externals/gnucash_logo1.png" alt="[GnuCash Logo]" id="gnclogo" width="179" height="45" border="0"/></a>
 <br/>
 <span id="language">
-Language:
+<?= _("Language"); ?>:
   <a class="nav" href="<?=$top_dir;?>">English</a>
 | <a class="nav" href="<?=$top_dir;?>/fr/">Fran&ccedil;ais</a>
 | <a class="nav" href="<?=$top_dir;?>/de/">Deutsch</a>
 | <a class="nav" href="<?=$top_dir;?>/nl/">Nederlands</a>
 | <a class="nav" href="<?=$top_dir;?>/pt_PT/">Portugu&ecirc;s</a>
 </span>
-<span id="location">Continent:
+<span id="location"><?= _("Continent"); ?>:
  (<a class="nav" href="http://www.gnucash.org/">US</a>)
  (<a class="nav" href="http://www.at.gnucash.org/">EU</a>)
  (<a class="nav" href="http://www.au.gnucash.org/">AU</a>)

Modified: htdocs/trunk/externals/menu.phtml
===================================================================
--- htdocs/trunk/externals/menu.phtml	2006-05-24 15:53:50 UTC (rev 14178)
+++ htdocs/trunk/externals/menu.phtml	2006-05-24 22:31:15 UTC (rev 14179)
@@ -36,7 +36,7 @@
       -->
       <li><a href="http://wiki.gnucash.org/wiki/Mailing_Lists"><?=_("Mailing Lists")?></a>
       <li style="list-style-image:none;list-style-type:none;"><ul>
-        <li><a href="https://lists.gnucash.org/search/"><?=_("Search")?></a></li>
+        <li><a href="https://lists.gnucash.org/search/<?= $lang_dir ?>"><?=_("Search")?></a></li>
       </ul></li>
       <li><a href="http://wiki.gnucash.org/wiki/Bugzilla"><?=_("Bug Reports")?></a></li>
       <li><a href="http://wiki.gnucash.org/wiki/IRC"><?=_("IRC (Chat)")?></a></li>
@@ -50,10 +50,10 @@
     <b>Downloads</b>
   </span>
   <ul>
-    <li><a href="http://www.gnucash.org/pub/">USA (master site)</a></li>
-    <li><a href="http://ftp.at.gnucash.org/pub/gnucash/">Europe</a></li>
-    <li><a href="http://sourceforge.net/project/showfiles.php?group_id=192">SourceForge</a></li>
-    <li><a href="ftp://planetmirror.com/pub/gnucash/">Australia</a></li>
+    <li><a href="http://www.gnucash.org/pub/"><?= _("USA (master site)");?></a></li>
+    <li><a href="http://ftp.at.gnucash.org/pub/gnucash/"><?= _("Europe");?></a></li>
+    <li><a href="http://sourceforge.net/project/showfiles.php?group_id=192"><?= _("SourceForge");?></a></li>
+    <li><a href="ftp://planetmirror.com/pub/gnucash/"><?= _("Australia");?></a></li>
   </ul>
 </div>
 <div class="othernews">

Modified: htdocs/trunk/index.phtml
===================================================================
--- htdocs/trunk/index.phtml	2006-05-24 15:53:50 UTC (rev 14178)
+++ htdocs/trunk/index.phtml	2006-05-24 22:31:15 UTC (rev 14179)
@@ -45,6 +45,7 @@
   # for english, the lang and en news path are identical
   $en_newspath  =  $top_dir."/news/";
   $lang_newspath  =  $top_dir."/news/".$lang_dir."/";
+  $oldnews = false;
   include("$top_dir/news/news-script.php"); ?>
 
 <div class="newsborder">

Modified: htdocs/trunk/news/news-script.php
===================================================================
--- htdocs/trunk/news/news-script.php	2006-05-24 15:53:50 UTC (rev 14178)
+++ htdocs/trunk/news/news-script.php	2006-05-24 22:31:15 UTC (rev 14179)
@@ -73,7 +73,7 @@
         $s=strtolower($filename);
         if (strstr($s, ".news"))  {
 	    //echo("<!-- found english file: $s -->\n");
-	    if (!$lang_files[$filename]) {
+	    if (! array_key_exists($filename, $lang_files)) {
 	       $display_filename = $en_newspath.$filename;
 	       //echo("<!-- using untranslated english file: $display_filename -->\n");
 	       $about = file($display_filename);



More information about the gnucash-changes mailing list