mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-25 18:59:12 +02:00
modify the detect mode for language in path.
This commit is contained in:
parent
391ab932f7
commit
d304b7274d
@ -1249,14 +1249,14 @@ 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
|
||||
$langengfile = str_replace( "/".$LANG."/", "/".$LANG_EN."/", $langfile );
|
||||
$langengfile = str_replace( ".".$LANG.".", ".".$LANG_EN.".", $langengfile );
|
||||
}
|
||||
else
|
||||
$langengfile = $langfile;
|
||||
|
||||
//Fix #56
|
||||
$langengfile = str_replace( "/classen/", "/classes/", $langengfile );
|
||||
|
||||
if ( file_exists($langengfile) )
|
||||
include( $langengfile );
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user