cvs: phpweb /manual help-translate.php

[email protected] ("Philip Olson")
Newsgroups php.webmaster
Message-ID <cvsphilip1226593125@cvsserver>
philip		Thu Nov 13 16:18:45 2008 UTC

  Modified files:              
    /phpweb/manual	help-translate.php 
  Log:
  Hack to remove archive link to non-existent archives, so this closes bug #44969
  # Only (ar) falls in this category today
  
  
http://cvs.php.net/viewvc.cgi/phpweb/manual/help-translate.php?r1=1.3&r2=1.4&diff_format=u
Index: phpweb/manual/help-translate.php
diff -u phpweb/manual/help-translate.php:1.3 phpweb/manual/help-translate.php:1.4
--- phpweb/manual/help-translate.php:1.3	Fri Apr 11 02:12:58 2008
+++ phpweb/manual/help-translate.php	Thu Nov 13 16:18:45 2008
@@ -1,5 +1,5 @@
 <?php
-// $Id: help-translate.php,v 1.3 2008/04/11 02:12:58 philip Exp $
+// $Id: help-translate.php,v 1.4 2008/11/13 16:18:45 philip Exp $
 
 $_SERVER['BASE_PAGE'] = 'manual/help-translate.php';
 include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
@@ -25,8 +25,15 @@
 <h3>Inactive languages already in CVS</h3>
 <ul>
 <?php
+// $none are manuals we don't even have old versions of
+$none = array('ar');
+
 foreach ($INACTIVE_ONLINE_LANGUAGES as $cc => $lang) {
-    echo '<li>', $lang, ' : (<a href="http://docs.php.net/manual/', $cc, '">archive</a>)</li>';
+    $link = '<a href="http://docs.php.net/manual/'. $cc .'">archive</a>';
+    if (in_array($cc, $none)) {
+        $link = 'no archive';
+    }
+    echo '<li>', $lang, ' : (', $link, ')</li>';
 }
 ?>
 </ul>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.