Revision 1435
Added by Dietmar over 13 years ago
functions.php | ||
---|---|---|
1173 | 1173 |
// read contents of the template language file into string |
1174 | 1174 |
$data = @file_get_contents(WB_PATH.'/languages/'.str_replace('.php','',basename($file)).'.php'); |
1175 | 1175 |
// use regular expressions to fetch the content of the variable from the string |
1176 |
$language_name = get_variable_content('language_name', $data, false); |
|
1177 |
$language_code = get_variable_content('language_code', $data, false); |
|
1178 |
$language_author = get_variable_content('language_author', $data); |
|
1179 |
$language_version = get_variable_content('language_version', $data, false); |
|
1180 |
$language_platform = get_variable_content('language_platform', $data, false); |
|
1176 |
$language_name = get_variable_content('language_name', $data, false, false);
|
|
1177 |
$language_code = get_variable_content('language_code', $data, false, false);
|
|
1178 |
$language_author = get_variable_content('language_author', $data, false, false);
|
|
1179 |
$language_version = get_variable_content('language_version', $data, false, false);
|
|
1180 |
$language_platform = get_variable_content('language_platform', $data, false, false);
|
|
1181 | 1181 |
|
1182 | 1182 |
if(isset($language_name)) |
1183 | 1183 |
{ |
Also available in: Unified diff
fix entities converting in select languages (Tks to the community)
see http://www.websitebaker2.org/forum/index.php/topic,20547.msg140512.html#msg140512