From 934749fccb617ae6eae0a017985cb8cf73140900 Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Thu, 18 Nov 2004 14:25:24 +0000 Subject: [PATCH] Add English to the list of available locales. Otherwise we'd skip past an English preference to a lower-priority language. --- lib/i18n/languageFunctions.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/i18n/languageFunctions.inc b/lib/i18n/languageFunctions.inc index 280683c..ec3130c 100644 --- a/lib/i18n/languageFunctions.inc +++ b/lib/i18n/languageFunctions.inc @@ -28,6 +28,9 @@ function getInstalledLocales() { global $default; // get a list of directories in ($default->fileSystemRoot . "/i18n") $aLocales = array(); + $aLocales[] = "en"; + $aLocales[] = "en_GB"; + $aLocales[] = "en_ZA"; if ($handle = opendir($default->fileSystemRoot . "/i18n")) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && @@ -39,4 +42,4 @@ function getInstalledLocales() { } return $aLocales; } -?> \ No newline at end of file +?> -- libgit2 0.21.4