cvs: phpweb /manual help-translate.php

From: Date: Thu, 13 Nov 2008 16:18:45 +0000
Subject: cvs: phpweb /manual help-translate.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-3062@lists.php.net to get a copy of this message
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>

« previous php.webmaster (#3062) next »