Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100499380
pht.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 31, 06:57
Size
759 B
Mime Type
text/x-php
Expires
Sun, Feb 2, 06:57 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
23977766
Attached To
rPHU libphutil
pht.php
View Options
<?php
/**
* Translate a string. It uses a translator set by
* `PhutilTranslator::setInstance()` or translations specified by
* `PhutilTranslator::getInstance()->addTranslations()` and language rules set
* by `PhutilTranslator::getInstance()->setLanguage()`.
*
* @param string Translation identifier with sprintf() placeholders.
* @param mixed Value to select the variant from (e.g. singular or plural).
* @param ... Next values referenced from $text.
* @return string Translated string with substituted values.
*
* @group internationalization
*/
function
pht
(
$text
,
$variant
=
null
/* , ... */
)
{
$args
=
func_get_args
();
$translator
=
PhutilTranslator
::
getInstance
();
return
call_user_func_array
(
array
(
$translator
,
'translate'
),
$args
);
}
Event Timeline
Log In to Comment