API16

JLanguage/transliterate

< API16:JLanguage

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description

Transliterate function


<! removed transcluded page call, red link never existed >

Syntax

transliterate($string)
Parameter Name Default Value Description
$string $string The string to transliterate

Returns

string The transliteration of the string

Defined in

libraries/joomla/language/language.php

Importing

jimport( 'joomla.language.language' );

Source Body

public function transliterate($string)
{
        include_once(dirname(__FILE__).DS.'latin_transliterate.php');

        if ($this->_transliterator !== null) {
                return call_user_func($this->_transliterator, $string);
        }
        
        $string = JLanguageTransliterate::utf8_latin_to_ascii($string);
        $string = JString::strtolower($string);
        
        return $string;
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples


Advertisement