From 2d7c9a0db284fb9ab2c485287613429ed7d6d2f8 Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Sun, 18 Aug 2019 01:48:48 +0200 Subject: [PATCH] [checklang] Don't normalize languages to lc. "serendipity_lang_pt_PT.inc.php" is mixed case and won't be found if languages are normalized to lowercase. Signed-off-by: Thomas Hochstein --- lang/checklang.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lang/checklang.php b/lang/checklang.php index 2fc76f74..d772756c 100644 --- a/lang/checklang.php +++ b/lang/checklang.php @@ -11,7 +11,8 @@ function get_langs($lang_dir='.') { if(!preg_match('/^serendipity_lang_(.+)\.inc\.php$/', $file, $matches)) { continue; } else { - $languages[] = strtolower($matches[1]); + # $languages[] = strtolower($matches[1]); + $languages[] = $matches[1]; } } }