English removed form

This commit is contained in:
Sobak
2014-03-29 06:16:37 +01:00
parent 4d1fd50fde
commit f61296f6b6
5 changed files with 7 additions and 11 deletions

View File

@ -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)

View File

@ -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',

View File

@ -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 {

View File

@ -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]);

View File

@ -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