[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_3_1RC1-920-ge2cb413
Michal Čihař
nijel at users.sourceforge.net
Tue Mar 30 14:00:35 CEST 2010
The branch, master has been updated
via e2cb4133319c2e8bc8b37ceb336199fdee207228 (commit)
via b068e5d7b537c3550f0a46405e925fba15442f57 (commit)
from ebd574c385138fe32449c10bd198d993e51305ea (commit)
- Log -----------------------------------------------------------------
commit e2cb4133319c2e8bc8b37ceb336199fdee207228
Author: Michal Čihař <mcihar at novell.com>
Date: Tue Mar 30 14:00:19 2010 +0200
This is not needed with gettext.
commit b068e5d7b537c3550f0a46405e925fba15442f57
Author: Michal Čihař <mcihar at novell.com>
Date: Tue Mar 30 13:59:40 2010 +0200
Fix typo.
-----------------------------------------------------------------------
Summary of changes:
scripts/check_lang.php | 61 ------------------------------------------------
scripts/generate-mo | 2 +-
2 files changed, 1 insertions(+), 62 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 4ecf907..0000000
--- a/scripts/check_lang.php
+++ /dev/null
@@ -1,61 +0,0 @@
-<?php
-/* vim: set expandtab sw=4 ts=4 sts=4: */
-/**
- * This test script checks all the language files to ensure there is no errors
- * inside and nothing is displayed on screen (eg no extra no blank line).
- *
- * @version $Id$
- * @package phpMyAdmin-test
- */
-
-/**
- *
- */
-$failed = array();
-$passed = array();
-
-// 1. Do check
-$languageDirectory = dir('../lang');
-while ($name = $languageDirectory->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.<br /><br />' . "\n";
-if ($failed_cnt) {
- echo ' 1. ' . $failed_cnt . ' contain(s) some "^M":<br />' . "\n";
- for ($i = 0; $i < $failed_cnt; $i++) {
- echo ' - ' . $failed[$i] . '<br />' . "\n";
- } // end for
- if ($passed_cnt) {
- echo '<br />' . "\n";
- echo ' 2. ' . $passed_cnt . ' seems right:<br />' . "\n";
- $start = ' ';
- }
-} // end if
-if ($passed_cnt) {
- if (!$failed_cnt) {
- echo 'They all passed checkings:<br />' . "\n";
- }
- for ($i = 0; $i < $passed_cnt; $i++) {
- echo $start . ' - ' . $passed[$i] . '<br />' . "\n";
- } // end for
-} // end if
-?>
diff --git a/scripts/generate-mo b/scripts/generate-mo
index e26575b..c0e2945 100755
--- a/scripts/generate-mo
+++ b/scripts/generate-mo
@@ -7,7 +7,7 @@ fi
for x in po/*.po ; do
lang=`echo $x | sed 's at po/\(.*\)\.po@\1@'`
- if [ ! -z "$stas" ] ; then
+ if [ ! -z "$stats" ] ; then
echo -n "$lang: "
fi
mkdir -p locale/$lang/LC_MESSAGES
hooks/post-receive
--
phpMyAdmin
More information about the Git
mailing list