RELEASE 0.9.8

This commit is contained in:
Deon George
2009-06-30 20:26:08 +10:00
parent 1f7f96122f
commit fdee1bdbd1
242 changed files with 34529 additions and 34446 deletions

View File

@@ -1,86 +0,0 @@
<?php
// $Header: /cvsroot/phpldapadmin/phpldapadmin/tools/check_lang_files.php,v 1.11.2.1 2005/10/09 06:36:36 wurley Exp $
/**
* Test script to check that $lang variables in each language file.
* @package phpLDAPadmin
*/
/**
*/
echo "<html><head><title>phpldapadmin - check of translation</title></head><body>";
$CHECKLANG=$_REQUEST['CHECKLANG'];
require realpath( '../lang/en.php' );
$english_lang = $lang;
unset( $lang );
$lang_dir = realpath( '../lang/recoded' );
$dir = opendir( $lang_dir );
// First, detect any unused strings from the english language:
echo "<h1>Checking English language file for unused strings</h1>\n";
echo "<ol>\n";
$unused_keys = false;
// special case keys that do not occur hard-coded but are dynamically generated
$ignore_keys['equals'] = 1;
$ignore_keys['starts with'] = 1;
$ignore_keys['ends with'] = 1;
$ignore_keys['sounds like'] = 1;
$ignore_keys['contains'] = 1;
foreach( $english_lang as $key => $string ) {
if( isset( $ignore_keys[$key] ) )
continue;
$grep_cmd = "grep -r \"lang\[['\\\"]$key\" ../*.php ../htdocs/ ../templates/ ../lib/";
$used = `$grep_cmd`;
if( ! $used ) {
$unused_keys = true;
echo "<li>Unused English key: <tt>$key</tt> <br />&nbsp;&nbsp;&nbsp;&nbsp;(<small><tt>" . htmlspecialchars( $grep_cmd ) . "</tt></small>)</li>\n";
flush();
}
}
if( false === $unused_keys )
echo "No unused English strings.";
echo "</ol>\n";
echo "<h1>Incomplete or Erroneous Language Files</h1>\n\n";
if ($CHECKLANG)
printf("<h1>Checking language files %s</h1>\n\n",$CHECKLANG);
echo "<h1><A HREF='?'>check all languages</A></h1>\n";
flush();
while( ( $file = readdir( $dir ) ) !== false ) {
// skip the devel languages, english, and auto
if( $file == "zz.php" || $file == "zzz.php" || $file == "auto.php" || $file == "en.php" )
continue;
// Sanity check. Is this really a PHP file?
if( ! preg_match( "/\.php$/", $file ) )
continue;
unset( $lang );
$lang = array();
include realpath( $lang_dir.'/'.$file );
$has_errors = false;
if ($CHECKLANG=="" || $file===$CHECKLANG ){
echo "<h2><A HREF='?CHECKLANG=$file'>$file</A></h2>\n";
echo "<ol>\n";
foreach( $english_lang as $key => $string )
if( ! isset( $lang[ $key ] ) ) {
$has_errors = true;
echo "<li>missing entry: <tt>$key</tt></li>\n";
}
foreach( $lang as $key => $string )
if( ! isset( $english_lang[ $key ] ) ){
$has_errors = true;
echo "<li>extra entry: <tt>$key</tt></li>\n";
}
if( ! $has_errors )
echo "(No errors)\n";
}
echo "</ol>\n";
}
echo "</body></html>";
?>

25
tools/po/make_all Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
echo "Generating Catalan translation template"
./make_po_ca
tar -czf messages.po_ca.tar.gz messages.po
echo " "
echo "Generating Spanish translation template"
./make_po_es
tar -czf messages.po_es.tar.gz messages.po
echo " "
echo "Generating French translation template"
./make_po_fr
tar -czf messages.po_fr.tar.gz messages.po
echo " "
echo "Generating Hungarian translation template"
./make_po_hu
tar -czf messages.po_hu.tar.gz messages.po
echo " "
echo "Generating Italian translation template"
./make_po_it
tar -czf messages.po_it.tar.gz messages.po
echo " "
echo "Generating Japanese translation template"
./make_po_jp
tar -czf messages.po_jp.tar.gz messages.po

9
tools/po/make_mo Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
# $Header $
#
# This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
# This script generates a messages.mo file from the translated messages.po file.
rm -f messages.mo
msgfmt -v -c --statistics messages.po -o messages.mo

10
tools/po/make_po Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
# $Header $
#
# This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
# This script generates a messages.po file for translation from all .inc and .php files.
cp messages.header messages.po
find ../../ -name *.php -exec xgettext --keyword=_ -L PHP -j --omit-header -s {} \;
find ../../ -name *.inc -exec xgettext --keyword=_ -L PHP -j --omit-header -s {} \;

9
tools/po/make_po_ca Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
# $Header $
#
# This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
# This script is run after make_po to merge the existing German translations to messages.po
./make_po
msgmerge -v ../locale/ca_ES/LC_MESSAGES/messages.po messages.po -o messages.po

9
tools/po/make_po_de Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
# $Header $
#
# This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
# This script is run after make_po to merge the existing German translations to messages.po
./make_po
msgmerge -v ../locale/de_DE/LC_MESSAGES/messages.po messages.po -o messages.po

9
tools/po/make_po_es Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
# $Header $
#
# This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
# This script is run to update the existing Spanish translations in messages.po
./make_po
msgmerge -v ../locale/es_ES/LC_MESSAGES/messages.po messages.po -o messages.po

9
tools/po/make_po_fr Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
# $Header $
#
# This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
# This script is run after make_po to merge the existing German translations to messages.po
./make_po
msgmerge -v ../locale/fr_FR/LC_MESSAGES/messages.po messages.po -o messages.po

9
tools/po/make_po_hu Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
# $Header $
#
# This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
# This script is run after make_po to merge the existing Hungarian translations to messages.po
./make_po
msgmerge -v ../locale/hu_HU/LC_MESSAGES/messages.po messages.po -o messages.po

9
tools/po/make_po_it Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
# $Header $
#
# This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
# This script is run after make_po to merge the existing German translations to messages.po
./make_po
msgmerge -v ../locale/it_IT/LC_MESSAGES/messages.po messages.po -o messages.po

9
tools/po/make_po_ja Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
# $Header $
#
# This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
# This script is run after make_po to merge the existing Japanese translations to messages.po
./make_po
msgmerge -v ../locale/ja_JP/LC_MESSAGES/messages.po messages.po -o messages.po

15
tools/po/messages.header Normal file
View File

@@ -0,0 +1,15 @@
# phpLDAPadmim
#
msgid ""
msgstr ""
"Project-Id-Version: phpldapadmin $Name: RELEASE-0_9_8 $\n"
"Report-Msgid-Bugs-To: phpldapadmin-devel@lists.sf.net\n"
"POT-Creation-Date: 2004-01-14 17:45+0200\n"
"PO-Revision-Date: 2004-01-14 17:45+0200\n"
"Last-Translator: PUT YOUR NAME <myname@example.com>\n"
"Language-Team: <phpldapadmin-devel@lists.sf.net.de>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"