From 59041fdbc9fdcde1de6fa80efa9857450f021399 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Wed, 09 May 2012 06:47:44 -0400
Subject: [PATCH] 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 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/program/include/rcube.php b/program/include/rcube.php
index 8bd9b76..272136f 100644
--- a/program/include/rcube.php
+++ b/program/include/rcube.php
@@ -631,7 +631,7 @@
$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');
--
Gitblit v1.9.1