Actions

API16

JLanguage/transliterate

From Joomla! Documentation

< API16:JLanguage
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

Transliterate function

[<! removed edit link to red link >]

<! 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 edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />