API15

JLanguage/transliterate

From Joomla! Documentation

< API15:JLanguage
Revision as of 13:34, 12 May 2013 by JoomlaWikiBot (talk | contribs) (removing red link to edit, no existant pages)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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[edit]

Transliterate function

[<! removed edit link to red link >]

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

Syntax[edit]

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

Returns[edit]

string The transliteration of the string

Defined in[edit]

libraries/joomla/language/language.php

Importing[edit]

jimport( 'joomla.language.language' );

Source Body[edit]

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[edit]

<CodeExamplesForm />