cvs: php-master-web /include languages.inc /manage mirrors.php
| From: | Gabor Hojtsy | Date: | Fri, 15 Aug 2003 20:23:52 +0000 |
| Subject: | cvs: php-master-web /include languages.inc /manage mirrors.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-20385@lists.php.net to get a copy of this message | ||
goba Fri Aug 15 16:23:52 2003 EDT
Added files:
/php-master-web/include languages.inc
Modified files:
/php-master-web/manage mirrors.php
Log:
Make a copy of the languages.inc file
Index: php-master-web/manage/mirrors.php
diff -u php-master-web/manage/mirrors.php:1.73 php-master-web/manage/mirrors.php:1.74
--- php-master-web/manage/mirrors.php:1.73 Wed Aug 13 05:47:09 2003
+++ php-master-web/manage/mirrors.php Fri Aug 15 16:23:52 2003
@@ -183,9 +183,7 @@
<?php
if (intval($id) !== 0) {
-
- // We need the actual languages include file
- include_once "http://php.net/include/languages.inc";
+ include_once "languages.inc";
?>
<table>
<tr>
Index: php-master-web/include/languages.inc
+++ php-master-web/include/languages.inc
<?php // -*- C++ -*-
// $Id: languages.inc,v 1.1 2003/08/15 20:23:52 goba Exp $
/*
This is a list of all manual languages hosted
on a full PHP.net mirror site
Some codes, like "kr", "tw" and "hk" are not in
conformance with the official language code standard!
http://www.unicode.org/unicode/onlinedat/languages.html
*/
$LANGUAGES = array(
'en' => 'English',
'ar' => 'Arabic',
'pt_BR' => 'Brazilian Portuguese',
'zh' => 'Chinese (Simplified)',
'hk' => 'Chinese (Hong Kong Cantonese)',
'tw' => 'Chinese (Traditional)',
'cs' => 'Czech',
'nl' => 'Dutch',
'fi' => 'Finnish',
'fr' => 'French',
'de' => 'German',
'el' => 'Greek',
'he' => 'Hebrew',
'hu' => 'Hungarian',
'it' => 'Italian',
'ja' => 'Japanese',
'kr' => 'Korean',
'pl' => 'Polish',
'ro' => 'Romanian',
'ru' => 'Russian',
'sk' => 'Slovak',
'sl' => 'Slovenian',
'es' => 'Spanish',
'sv' => 'Swedish',
'tr' => 'Turkish',
);
$INACTIVE_ONLINE_LANGUAGES = array(
'el' => 'Greek',
'ar' => 'Arabic',
);
// Convert between language codes back and forth
// [We use non standard languages codes and so conversion
// is needed when communicating with the outside world]
function language_convert($langcode, $to_phpweb_format = TRUE)
{
if ($to_phpweb_format) {
switch ($langcode) {
case 'zh_cn': return 'zh';
case 'zh_hk': return 'hk';
case 'zh_tw': return 'tw';
case 'ko' : return 'kr';
default: return $langcode;
}
}
else {
switch ($langcode) {
case 'cn': return 'zh_cn';
case 'hk': return 'zh_hk';
case 'tw': return 'zh_tw';
case 'kr': return 'ko';
default: return $langcode;
}
}
}