API15

JLanguage/transliterate

< API15:JLanguage

The "API15" 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 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

function transliterate($string)
{
        $string = htmlentities(utf8_decode($string));
        $string = preg_replace(
                array('/&szlig;/','/&(..)lig;/', '/&([aouAOU])uml;/','/&(.)[^;]*;/'),
                array('ss',"$1","$1".'e',"$1"),
                $string);

        return $string;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples


Advertisement