mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 16:53:34 +02:00
- remove str_translate_to_ascii7bits and lang_table_translate_ascii7bits
git-svn-id: http://piwigo.org/svn/trunk@2122 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -1114,24 +1114,6 @@ function l10n_args($key_args, $sep = "\n")
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Translate string in string ascii7bits
|
||||
* It's possible to do that with iconv_substr
|
||||
* but this fonction is not avaible on all the providers.
|
||||
*
|
||||
* @param string str
|
||||
* @return string
|
||||
*/
|
||||
function str_translate_to_ascii7bits($str)
|
||||
{
|
||||
global $lang_table_translate_ascii7bits;
|
||||
|
||||
$src_table = array_keys($lang_table_translate_ascii7bits);
|
||||
$dst_table = array_values($lang_table_translate_ascii7bits);
|
||||
|
||||
return str_replace($src_table , $dst_table, $str);
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the corresponding value from $themeconf if existing. Else, the
|
||||
* key is returned
|
||||
|
||||
Reference in New Issue
Block a user