Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104710027
PhutilCzechLocale.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Mar 11, 17:40
Size
681 B
Mime Type
text/x-php
Expires
Thu, Mar 13, 17:40 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24848888
Attached To
rPHU libphutil
PhutilCzechLocale.php
View Options
<?php
/**
* Locale for "Czech (Czech Republic)".
*/
final
class
PhutilCzechLocale
extends
PhutilLocale
{
public
function
getLocaleCode
()
{
return
'cs_CZ'
;
}
public
function
getLocaleName
()
{
return
pht
(
'Czech (Czech Republic)'
);
}
public
function
isTestLocale
()
{
// This doesn't have any translations yet so mark it as a test locale
// for now.
return
true
;
}
public
function
selectPluralVariant
(
$variant
,
array
$translations
)
{
list
(
$singular
,
$paucal
,
$plural
)
=
$translations
;
if
(
$variant
==
1
)
{
return
$singular
;
}
if
(
$variant
>=
2
&&
$variant
<=
4
)
{
return
$paucal
;
}
return
$plural
;
}
}
Event Timeline
Log In to Comment