From 59041fdbc9fdcde1de6fa80efa9857450f021399 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 9 May 2012 12:47:44 +0200 Subject: Use similar language as a fallback for plugin localization (#1488401) Don't load en_US localization more than once --- program/include/rcube.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/include/rcube.php') diff --git a/program/include/rcube.php b/program/include/rcube.php index 8bd9b76be..272136fa8 100644 --- a/program/include/rcube.php +++ b/program/include/rcube.php @@ -631,7 +631,7 @@ class rcube $this->texts = array_merge($this->texts, $messages); // include user language files - if ($lang != 'en' && is_dir(INSTALL_PATH . 'program/localization/' . $lang)) { + if ($lang != 'en' && $lang != 'en_US' && is_dir(INSTALL_PATH . 'program/localization/' . $lang)) { include_once(INSTALL_PATH . 'program/localization/' . $lang . '/labels.inc'); include_once(INSTALL_PATH . 'program/localization/' . $lang . '/messages.inc'); -- cgit v1.2.3