- improvement: long localized messages are in HTML files instead of $lang

array. This is the case of admin/help and about pages.

- deletion: of unused functions (ts_to_mysqldt, is_image, TN_exists,
  check_date_format, date_convert, get_category_directories,
  get_used_metadata_list, array_remove, pwg_write_debug,
  get_group_restrictions, get_all_group_restrictions, is_group_allowed,
  style_select, deprecated_getAttribute).

- new: many new contextual help pages to replace descriptions previously
  included in pages.

- modification: reorganisation of language files. Deletion of unused
  language keys, alphabetical sort. No faq.lang.php anymore (replaced by
  help.html). Only done for en_UK.iso-8859-1.


git-svn-id: http://piwigo.org/svn/trunk@862 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2005-09-14 21:57:05 +00:00
parent eac1724ee5
commit 3371c75742
42 changed files with 1155 additions and 1247 deletions
+1 -22
View File
@@ -102,17 +102,6 @@ function boolean_to_string($var)
}
}
// array_remove removes a value from the given array if the value existed in
// this array.
function array_remove( $array, $value )
{
$output = array();
foreach ( $array as $v ) {
if ( $v != $value ) array_push( $output, $v );
}
return $output;
}
// The function get_moment returns a float value coresponding to the number
// of seconds since the unix epoch (1st January 1970) and the microseconds
// are precised : e.g. 1052343429.89276600
@@ -433,16 +422,6 @@ function format_date($date, $type = 'us', $show_time = false)
return $formated_date;
}
function pwg_write_debug()
{
global $debug;
$fp = @fopen( './log/debug.log', 'a+' );
fwrite( $fp, "\n\n" );
fwrite( $fp, $debug );
fclose( $fp );
}
function pwg_query($query)
{
global $conf,$page;
@@ -734,7 +713,7 @@ function l10n($key)
{
global $lang, $conf;
if ($conf['debug_l10n'])
if ($conf['debug_l10n'] and !isset($lang[$key]))
{
echo '[l10n] language key "'.$key.'" is not defined<br />';
}