first commit
This commit is contained in:
51
language/pl-PL/localise.php
Normal file
51
language/pl-PL/localise.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Language
|
||||
*
|
||||
* @copyright (C) 2010 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*
|
||||
* @phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps
|
||||
* @phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace
|
||||
*/
|
||||
|
||||
// phpcs:disable PSR1.Files.SideEffects
|
||||
\defined('_JEXEC') or die;
|
||||
// phpcs:enable PSR1.Files.SideEffects
|
||||
|
||||
/**
|
||||
* pl-PL localise class.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
abstract class Pl_PLLocalise
|
||||
{
|
||||
/**
|
||||
* Returns the potential suffixes for a specific number of items
|
||||
*
|
||||
* @param integer $count The number of items.
|
||||
*
|
||||
* @return array An array of potential suffixes.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public static function getPluralSuffixes($count)
|
||||
{
|
||||
if ($count == 0)
|
||||
{
|
||||
return ['0'];
|
||||
}
|
||||
elseif ($count == 1)
|
||||
{
|
||||
return ['ONE', '1'];
|
||||
}
|
||||
elseif ($count % 10 >= 2 && $count % 10 <= 4 && ($count % 100 < 10 || $count % 100 >= 20))
|
||||
{
|
||||
return ['FEW'];
|
||||
}
|
||||
else
|
||||
{
|
||||
return ['OTHER', 'MORE'];
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user