2011-07-03, 01:33:12
yojoe Wrote:Carlos: did you ever mess with title field to make it compatible with transliteration plugin (which is also builtinto 3.1) during file creation process ?
No, I'm not using NM...
But it doesn't seem difficult, try this:
Edit newsmanager/inc/functions.php, around line 133 in NM 2.2.3:
Replace this:
Code:
function nm_create_slug($str) {
$str = to7bit($str, 'UTF-8');
$str = clean_url($str);
return $str;
}
by this:
Code:
function nm_create_slug($str) {
global $i18n;
if (isset($i18n['TRANSLITERATION']) && is_array($translit=$i18n['TRANSLITERATION']) && count($translit>0)) {
$str = str_replace(array_keys($translit),array_values($translit),$str);
}
$str = to7bit($str, 'UTF-8');
$str = clean_url($str);
return $str;
}
Let me know if it works, I have not tested (still not using transliteration)