hi, this mod is really great !
but i've a problem with the characters é è ...
i modified the file local.config.php to
PHP Code:
<?php
$ssuLocalConfig = array(
'plugins' => array(
'parsers' => array('manufacturers')
),
'languages' => array( 'fr' => 'fr',
'en' => 'en',
)
);
and i add a file fr.php
PHP Code:
<?php
// note: we can later move part of this function into sub-functions, which we can store in the base class.
class SSULanguageFr extends SSULanguage{
static function parseName($name){
$cyrillic = array("à", "â", "é", "è", "ê");
$translit = array("a", "a", "e", "e", "e");
$name = str_replace($cyrillic, $translit, $name);
$name = strtolower($name);
// we replace any non alpha numeric characters by the name delimiter
$name = self::removeNonAlphaNumeric($name, SSUConfig::registry('delimiters', 'name'));
// Remove short words first
$name = self::removeShortWords($name, SSUConfig::registry('configs', 'minimum_word_length'), SSUConfig::registry('delimiters', 'name'));
// trim the sentence
$name = self::trimLongName($name);
// remove excess SSUConfig::registry('delimiters', 'name')
$name = self::removeDelimiter($name);
// remove identifiers
$name = self::removeIdentifiers($name);
// remove trailing _
$name = trim($name, SSUConfig::registry('delimiters', 'name'));
return urlencode($name);
}
}
but those characters é è are not replaced by e, they are still -
is there anything i missed ?
btw, i use zen 1.38 and ssu 3.64
Bookmarks