You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
593 B
28 lines
593 B
|
15 years ago
|
<?php
|
||
|
|
/* For licensing terms, see /license.txt */
|
||
|
|
/**
|
||
|
|
* Hotspot languae conversion
|
||
|
|
* @package chamilo.exercise
|
||
|
|
*/
|
||
|
14 years ago
|
/**
|
||
|
|
* Code
|
||
|
|
*/
|
||
|
15 years ago
|
session_cache_limiter('none');
|
||
|
19 years ago
|
|
||
|
15 years ago
|
$language_file = 'hotspot';
|
||
|
19 years ago
|
|
||
|
15 years ago
|
include_once '../inc/global.inc.php';
|
||
|
19 years ago
|
|
||
|
15 years ago
|
header('Content-Type: text/html; charset=UTF-8');
|
||
|
19 years ago
|
|
||
|
15 years ago
|
$file = file(api_get_path(SYS_LANG_PATH).'english/hotspot.inc.php');
|
||
|
16 years ago
|
|
||
|
15 years ago
|
foreach ($file as &$value) {
|
||
|
|
$variable = explode('=', $value , 2);
|
||
|
|
if (count($variable) > 1) {
|
||
|
|
$variable = substr(trim($variable[0]), 1);
|
||
|
|
$variable = '&'.$variable.'='.api_utf8_encode(get_lang($variable)).' ';
|
||
|
|
echo $variable;
|
||
|
19 years ago
|
}
|
||
|
|
}
|