aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-10-22 01:36:11 +0000
committerrvelices <rv-github@modusoptimus.com>2008-10-22 01:36:11 +0000
commitf7aea6eb4c6a440a88e46dd5e081c1d4327440b9 (patch)
tree9fc9062a639895f07ec270d0838514fdab4b18b0 /include/functions.inc.php
parent33322d4bd0f5e957a866926ff891c662ca825475 (diff)
merge r2789 from branch 2.0:
- some german language changes - added option for smarty $conf['template_compile_check'] - default true; if false smarty doesn't check if templates need recompilation resulting in less disk accesses (good when the disk is not local) - load_language doesnt check first for en_uk.utf-8 directory ... git-svn-id: http://piwigo.org/svn/trunk@2790 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions.inc.php')
-rw-r--r--include/functions.inc.php17
1 files changed, 10 insertions, 7 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index a75df8c4f..efdc79780 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -1027,7 +1027,7 @@ function l10n($key)
if ($conf['debug_l10n'] and !isset($lang[$key]) and !empty($key))
{
- trigger_error('[l10n] language key "'.$key.'" is not defined', E_USER_NOTICE);
+ trigger_error('[l10n] language key "'.$key.'" is not defined', E_USER_WARNING);
}
return isset($lang[$key]) ? $lang[$key] : $key;
@@ -1346,7 +1346,7 @@ function get_filter_page_value($value_name)
*/
function get_pwg_charset()
{
- defined('PWG_CHARSET') or fatal_error('load_language PWG_CHARSET undefined');
+ defined('PWG_CHARSET') or fatal_error('PWG_CHARSET undefined');
return PWG_CHARSET;
}
@@ -1417,12 +1417,15 @@ function load_language($filename, $dirname = '',
{
$dir = $dirname.$language;
- // exact charset match - no conversion required
- $f = $dir.'.'.$target_charset.'/'.$filename;
- if (file_exists($f))
+ if ($target_charset!='utf-8')
{
- $source_file = $f;
- break;
+ // exact charset match - no conversion required
+ $f = $dir.'.'.$target_charset.'/'.$filename;
+ if (file_exists($f))
+ {
+ $source_file = $f;
+ break;
+ }
}
// UTF-8 ?