JLanguage/transliterate
From Joomla! Documentation
< 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[edit]
Transliterate function
<! 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]
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[edit]
Code Examples[edit]