Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97192267
PhutilEmojiLocale.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
Fri, Jan 3, 07:52
Size
650 B
Mime Type
text/x-php
Expires
Sun, Jan 5, 07:52 (2 d)
Engine
blob
Format
Raw Data
Handle
23340132
Attached To
rPHU libphutil
PhutilEmojiLocale.php
View Options
<?php
/**
* A picture is worth a thousand words.
*/
final
class
PhutilEmojiLocale
extends
PhutilLocale
{
public
function
getLocaleCode
()
{
return
'en_X*'
;
}
public
function
getLocaleName
()
{
return
pht
(
'Emoji (Internet)'
);
}
public
function
getFallbackLocaleCode
()
{
return
'en_US'
;
}
public
function
isSillyLocale
()
{
return
true
;
}
public
function
selectPluralVariant
(
$variant
,
array
$translations
)
{
// Emoji have a unique variant for every available value: 0, 1, 2, 3, ...
if
(
count
(
$translations
)
<=
$variant
)
{
return
end
(
$translations
);
}
return
$translations
[
$variant
];
}
}
Event Timeline
Log In to Comment