Commit 934749fccb617ae6eae0a017985cb8cf73140900

Authored by Neil Blakey-Milner
1 parent 23f2fd65

Add English to the list of available locales. Otherwise we'd skip past

an English preference to a lower-priority language.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2991 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/i18n/languageFunctions.inc
... ... @@ -28,6 +28,9 @@ function getInstalledLocales() {
28 28 global $default;
29 29 // get a list of directories in ($default->fileSystemRoot . "/i18n")
30 30 $aLocales = array();
  31 + $aLocales[] = "en";
  32 + $aLocales[] = "en_GB";
  33 + $aLocales[] = "en_ZA";
31 34 if ($handle = opendir($default->fileSystemRoot . "/i18n")) {
32 35 while (false !== ($file = readdir($handle))) {
33 36 if ($file != "." && $file != ".." &&
... ... @@ -39,4 +42,4 @@ function getInstalledLocales() {
39 42 }
40 43 return $aLocales;
41 44 }
42   -?>
43 45 \ No newline at end of file
  46 +?>
... ...