From e2cb4133319c2e8bc8b37ceb336199fdee207228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 30 Mar 2010 14:00:19 +0200 Subject: [PATCH] This is not needed with gettext. --- scripts/check_lang.php | 61 ------------------------------------------ 1 file changed, 61 deletions(-) delete mode 100644 scripts/check_lang.php diff --git a/scripts/check_lang.php b/scripts/check_lang.php deleted file mode 100644 index 4ecf9070b..000000000 --- a/scripts/check_lang.php +++ /dev/null @@ -1,61 +0,0 @@ -read()) { - if (strpos($name, '.inc.php')) { - // 1.1 Checks parse errors and extra blank line - include '../lang/' . $name; - header('X-Ping: pong'); - // 1.1 Checks "^M" - $content = fread(fopen('../lang/' . $name, 'r'), filesize('../lang/' . $name)); - if ($pos = strpos(' ' . $content, "\015")) { - $failed[] = $name; - } else { - $passed[] = $name; - } - } // end if -} // end while -$languageDirectory->close(); - -// 2. Checking results -$start = ''; -$failed_cnt = count($failed); -sort($failed); -$passed_cnt = count($passed); -sort($passed); -echo ($failed_cnt + $passed_cnt) . ' language files were checked.

' . "\n"; -if ($failed_cnt) { - echo '  1. ' . $failed_cnt . ' contain(s) some "^M":
' . "\n"; - for ($i = 0; $i < $failed_cnt; $i++) { - echo '    - ' . $failed[$i] . '
' . "\n"; - } // end for - if ($passed_cnt) { - echo '
' . "\n"; - echo '  2. ' . $passed_cnt . ' seems right:
' . "\n"; - $start = '  '; - } -} // end if -if ($passed_cnt) { - if (!$failed_cnt) { - echo 'They all passed checkings:
' . "\n"; - } - for ($i = 0; $i < $passed_cnt; $i++) { - echo $start . '  - ' . $passed[$i] . '
' . "\n"; - } // end for -} // end if -?>