__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?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];
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| AbstractLocalise.php | File | 1.35 KB | 0664 |
|
| En_GBLocalise.php | File | 386 B | 0664 |
|