mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-26 03:09:21 +02:00
commit
a19d44a718
@ -1250,10 +1250,15 @@ function IncludeLanguageFile( $langfile, $failOnError = true )
|
||||
global $LANG, $LANG_EN;
|
||||
|
||||
// If english is not selected, we load ENGLISH first - then overwrite with configured language
|
||||
if ( $LANG != "en" )
|
||||
$langengfile = str_replace( $LANG, $LANG_EN, $langfile );
|
||||
if ( $LANG != "en" ) {
|
||||
//Fix #56
|
||||
$arr_LANG = array(sprintf('/%s/', $LANG), sprintf('.%s.', $LANG));
|
||||
$arr_LANG_EN = array(sprintf('/%s/', $LANG_EN), sprintf('.%s.', $LANG_EN));
|
||||
$langengfile = str_replace($arr_LANG, $arr_LANG_EN, $langfile);
|
||||
}
|
||||
else
|
||||
$langengfile = $langfile;
|
||||
|
||||
if ( file_exists($langengfile) )
|
||||
include( $langengfile );
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user