com web/doc: English removed form: include/lib_general.inc .php include/lib_proj_lang.inc.php scripts/gen_ picture_info.php scripts/rev.php
www/revcheck.php

From: Date: Sat, 29 Mar 2014 05:16:37 +0000
Subject: com web/doc: English removed form: include/lib_general.inc .php include/lib_proj_lang.inc.php scripts/gen_ picture_info.php scripts/rev.php
www/revcheck.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-2344@lists.php.net to get a copy of this message
Commit: f61296f6b69b22785a96612bb9e0fb89a632e18a Author: Sobak <msobaczewski@gmail.com> Sat, 29 Mar 2014 06:16:37 +0100 Parents: 4d1fd50fde06558911d038e53912c31b006a7532 Branches: master Link: http://git.php.net/?p=web/doc.git;a=commitdiff;h=f61296f6b69b22785a96612bb9e0fb89a632e18a Log: English removed form Changed paths: M include/lib_general.inc.php M include/lib_proj_lang.inc.php M scripts/gen_picture_info.php M scripts/rev.php M www/revcheck.php Diff: diff --git a/include/lib_general.inc.php b/include/lib_general.inc.php index b5f9313..036bf28 100644 --- a/include/lib_general.inc.php +++ b/include/lib_general.inc.php @@ -58,7 +58,7 @@ function nav_languages() { global $LANGUAGES; $out = '<div class="panel">'; - $out .= '<p class="headline">Languages</p>'; + $out .= '<p class="headline"><a href="revcheck.php">Translation status</a></p>'; $out .= '<div class="body">'; $out .= '<ul>'; foreach ($LANGUAGES as $code => $name) diff --git a/include/lib_proj_lang.inc.php b/include/lib_proj_lang.inc.php index e080dde..762222e 100644 --- a/include/lib_proj_lang.inc.php +++ b/include/lib_proj_lang.inc.php @@ -25,8 +25,8 @@ $Id$ // split from lib_general.inc.php // Supported languages +// DO NOT insert English here - it is only for translations! $LANGUAGES = array( - 'en' => 'English', 'ar' => 'Arabic', 'pt_BR' => 'Brazilian Portuguese', 'bg' => 'Bulgarian', diff --git a/scripts/gen_picture_info.php b/scripts/gen_picture_info.php index d5f3c34..5bb47e3 100644 --- a/scripts/gen_picture_info.php +++ b/scripts/gen_picture_info.php @@ -9,9 +9,6 @@ include '../include/lib_proj_lang.inc.php'; $langs = array_keys($LANGUAGES); foreach ($langs as $lang) { - if ($lang === 'en') { - continue; - } if (!generate_image($lang)) { echo "Documentation for $lang language does not exist.\n"; } else { diff --git a/scripts/rev.php b/scripts/rev.php index 862b500..182df0e 100644 --- a/scripts/rev.php +++ b/scripts/rev.php @@ -37,12 +37,6 @@ $DOCS = SVN_DIR; $LANGS = array_keys($LANGUAGES); $langc = count($LANGS); for ($i = 0; $i < $langc; $i++) { - // make sure we don't parse the en tree - if ($LANGS[$i] == 'en') { - unset($LANGS[$i]); - continue; - } - if (!is_dir($DOCS . $LANGS[$i])) { echo "Error: the \"{$LANGS[$i]}\" lang doesn't exist in dir {$DOCS}, skipping..\n"; unset($LANGS[$i]); diff --git a/www/revcheck.php b/www/revcheck.php index 96689d8...5920bc1 100644 --- a/www/revcheck.php +++ b/www/revcheck.php @@ -17,6 +17,11 @@ if (isset($_GET['p'])) { $tool = $_GET['p']; } +// Prevent viewing other tools in EN +if ($lang == 'en') { + $tool = 'default'; +} + $DBLANG = SQLITE_DIR . 'rev.php.sqlite'; // Check if db connection can be established and if revcheck for requested lang exists

« previous php.doc.web (#2344) next »