2 /*=====================================================================*\
3 || ###################################################################
4 || # Bugdar [#]version[#]
5 || # Copyright ©2002-[#]year[#] Blue Static
7 || # This program is free software; you can redistribute it and/or modify
8 || # it under the terms of the GNU General Public License as published by
9 || # the Free Software Foundation; version [#]gpl[#] of the License.
11 || # This program is distributed in the hope that it will be useful, but
12 || # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 || # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 || # You should have received a copy of the GNU General Public License along
17 || # with this program; if not, write to the Free Software Foundation, Inc.,
18 || # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19 || ###################################################################
20 \*=====================================================================*/
22 // ###################################################################
23 // LEXICAL STRING CONSTANTS
25 $lang->setlex('error_invalid_id', _('That is an invalid ID.'));
27 // ###################################################################
28 // determines the user's language
29 function fetch_user_language()
33 if ($bugsys->userinfo
['userid'])
35 $languageid = $bugsys->userinfo
['languageid'];
36 $language = $bugsys->datastore
['language']["$languageid"];
39 if (!$languageid AND is_array($bugsys->datastore
['language']))
41 foreach ($bugsys->datastore
['language'] AS $language)
43 if ($bugsys->options
['defaultlanguage'] == $language['languageid'])
45 $languageid = $language['languageid'];
46 $language = $bugsys->datastore
['language']["$languageid"];
52 $lang['id'] = $language['languageid'];
53 $lang['charset'] = $language['charset'];
54 $lang['direction'] = $language['direction'];
55 $lang['code'] = $language['languagecode'];
60 /*=====================================================================*\
61 || ###################################################################
64 || ###################################################################
65 \*=====================================================================*/