Line | |
---|
1 | <?php
|
---|
2 | /*
|
---|
3 | $Id: lang_long.php 1736 2007-01-24 08:16:03Z andrewsimpson $
|
---|
4 |
|
---|
5 | (c) 2003 - 2007 Andrew Simpson <andrew.simpson at paradise.net.nz>
|
---|
6 |
|
---|
7 | WebCollab
|
---|
8 | ---------------------------------------
|
---|
9 |
|
---|
10 | This program is free software; you can redistribute it and/or modify it under the
|
---|
11 | terms of the GNU General Public License as published by the Free Software Foundation;
|
---|
12 | either version 2 of the License, or (at your option) any later version.
|
---|
13 |
|
---|
14 | This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
---|
15 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
---|
16 | PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
---|
17 |
|
---|
18 | You should have received a copy of the GNU General Public License along with this
|
---|
19 | program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave,
|
---|
20 | Cambridge, MA 02139, USA.
|
---|
21 |
|
---|
22 | Function:
|
---|
23 | ---------
|
---|
24 |
|
---|
25 | Creates a singular interface for language access.
|
---|
26 |
|
---|
27 | */
|
---|
28 | if(! isset($locale_setup) ) {
|
---|
29 | if(defined('LOCALE' ) ) {
|
---|
30 | $locale_setup = LOCALE;
|
---|
31 | }
|
---|
32 | else {
|
---|
33 | die('Config file not loaded properly for languages' );
|
---|
34 | }
|
---|
35 | }
|
---|
36 |
|
---|
37 | //initialise variables
|
---|
38 | $lang_setup = array();
|
---|
39 |
|
---|
40 | switch($locale_setup ) {
|
---|
41 |
|
---|
42 | case 'en':
|
---|
43 | include(BASE.'lang/en_setup1.php' );
|
---|
44 | break;
|
---|
45 |
|
---|
46 | default:
|
---|
47 | include(BASE.'lang/en_setup1.php' );
|
---|
48 | break;
|
---|
49 | }
|
---|
50 |
|
---|
51 | ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.