| Server IP : 104.21.84.107 / Your IP : 104.23.243.197 Web Server : Apache/2.4.63 (Ubuntu) System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.4.5 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/pts/libraries/vendor/joomla/language/src/Localise/ |
Upload File : |
<?php
/**
* Part of the Joomla Framework Language Package
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
namespace Joomla\Language\Localise;
use Joomla\Language\LocaliseInterface;
use Joomla\Language\Transliterate;
use Joomla\String\StringHelper;
/**
* Abstract localisation handler class
*
* @since 2.0.0-alpha
*/
abstract class AbstractLocalise implements LocaliseInterface
{
/**
* Transliterate function
*
* This method processes a string and replaces all accented UTF-8 characters by unaccented ASCII-7 equivalents.
*
* @param string $string The string to transliterate.
*
* @return string|boolean The transliterated string or boolean false on a failure
*
* @since 2.0.0-alpha
*/
public function transliterate($string)
{
$string = (new Transliterate())->utf8_latin_to_ascii($string);
return StringHelper::strtolower($string);
}
/**
* Returns an array of suffixes for plural rules.
*
* @param integer $count The count number the rule is for.
*
* @return string[] The array of suffixes.
*
* @since 2.0.0-alpha
*/
public function getPluralSuffixes($count)
{
return [(string) $count];
}
}