| [ Index ] |
PHP Cross Reference of MantisBT |
[Summary view] [Print] [Text view]
1 <?php 2 # MantisBT - A PHP based bugtracking system 3 4 # MantisBT is free software: you can redistribute it and/or modify 5 # it under the terms of the GNU General Public License as published by 6 # the Free Software Foundation, either version 2 of the License, or 7 # (at your option) any later version. 8 # 9 # MantisBT is distributed in the hope that it will be useful, 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 # GNU General Public License for more details. 13 # 14 # You should have received a copy of the GNU General Public License 15 # along with MantisBT. If not, see <http://www.gnu.org/licenses/>. 16 17 /** 18 * @package MantisBT 19 * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org 20 * @copyright Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge.net 21 * @link http://www.mantisbt.org 22 * 23 * @uses check_api.php 24 * @uses config_api.php 25 */ 26 27 if ( !defined( 'CHECK_L10N_INC_ALLOW' ) ) { 28 return; 29 } 30 31 /** 32 * MantisBT Check API 33 */ 34 require_once ( 'check_api.php' ); 35 require_api( 'config_api.php' ); 36 37 check_print_section_header_row( 'Localization' ); 38 39 $t_possible_languages = config_get_global( 'language_choices_arr' ); 40 $t_default_language = config_get_global( 'default_language' ); 41 check_print_test_row( 42 'default_language configuration option is set to a valid language', 43 in_array( $t_default_language, $t_possible_languages ), 44 array( 45 true => 'The default language is currently specified as: ' . htmlentities( $t_default_language ), 46 false => 'Invalid default language detected: ' . htmlentities( $t_default_language ) 47 ) 48 ); 49 50 $t_fallback_language = config_get_global( 'fallback_language' ); 51 check_print_test_row( 52 'fallback_language configuration option is set to a valid language', 53 $t_fallback_language != 'auto' && in_array( $t_fallback_language, $t_possible_languages ), 54 array( 55 true => 'The fallback language is currently specified as: ' . htmlentities( $t_fallback_language ), 56 false => 'Fallback language can not be set to auto or a non-implemented language. Invalid fallback language detected: ' . htmlentities( $t_fallback_language ) 57 ) 58 );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Jul 28 15:48:31 2011 | Cross-referenced by PHPXref 0.7 |