Commit 1f5c058d12df70402535e10458df4c47b4ed4e03

Authored by Neil Blakey-Milner
1 parent 2183146a

No longer used.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4457 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 0 additions and 45 deletions
lib/i18n/languageFunctions.inc deleted
1 -<?php  
2 -/**  
3 - * $Id$  
4 - *  
5 - * i18n helper functions.  
6 - *  
7 - * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com  
8 - *  
9 - * This program is free software; you can redistribute it and/or modify  
10 - * it under the terms of the GNU General Public License as published by  
11 - * the Free Software Foundation; either version 2 of the License, or  
12 - * (at your option) any later version.  
13 - *  
14 - * This program is distributed in the hope that it will be useful,  
15 - * but WITHOUT ANY WARRANTY; without even the implied warranty of  
16 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the  
17 - * GNU General Public License for more details.  
18 - *  
19 - * You should have received a copy of the GNU General Public License  
20 - * along with this program; if not, write to the Free Software  
21 - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA  
22 - */  
23 -  
24 -/**  
25 - * Returns a list of available gettext locales.  
26 - */  
27 -function getInstalledLocales() {  
28 - global $default;  
29 - // get a list of directories in ($default->fileSystemRoot . "/i18n")  
30 - $aLocales = array();  
31 - $aLocales[] = "en";  
32 - $aLocales[] = "en_GB";  
33 - $aLocales[] = "en_ZA";  
34 - if ($handle = opendir($default->fileSystemRoot . "/i18n")) {  
35 - while (false !== ($file = readdir($handle))) {  
36 - if ($file != "." && $file != ".." &&  
37 - $file != "CVS" && is_dir("$default->fileSystemRoot/i18n/$file")) {  
38 - $aLocales[] = $file;  
39 - }  
40 - }  
41 - closedir($handle);  
42 - }  
43 - return $aLocales;  
44 -}  
45 -?>