public function __get($name)Inherited
public function __get($name)
Inherited
Parameters
$name |
Return
wild |
public function __set($name, $value)Inherited
public function __set($name, $value)
Inherited
Parameters
$name | ||
$value |
Return
wild |
public function current()Inherited
public function current()
Inherited
Return
wild |
public function key()Inherited
public function key()
Inherited
Return
wild |
public function next()Inherited
public function next()
Inherited
Return
wild |
public function rewind()Inherited
public function rewind()
Inherited
Return
wild |
public function valid()Inherited
public function valid()
Inherited
Return
wild |
private function throwOnAttemptedIteration()Inherited
private function throwOnAttemptedIteration()
Inherited
Return
wild |
public function getPhobjectClassConstant($key, $byte_limit)Inherited
public function getPhobjectClassConstant($key, $byte_limit)
Inherited
Phobject
Read the value of a class constant.
This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.
Parameters
string | $key | Name of the constant. |
int|null | $byte_limit | Maximum number of bytes permitted in the value. |
Return
string | Value of the constant. |
public function getLocaleCode()
public function getLocaleCode()
PhutilTranslation
Get the locale code which this class translates text for, like "en_GB".
This should correspond to a valid subclass of PhutilLocale.
PhabricatorUSEnglishTranslation
Return
string | Locale code for this translation. |
protected function getTranslations()
protected function getTranslations()
PhutilTranslation
Return a map of all translations.
PhabricatorUSEnglishTranslation
Return
map<string, wild> | Map of raw strings to translations. |
final public function getFilteredTranslations()Inherited
final public function getFilteredTranslations()
Inherited
PhutilTranslation
Return a filtered map of all strings in this translation.
Filters out empty/placeholder translations.
Return
map<string, wild> | Map of raw strings to translations. |
public static function loadAllTranslations()Inherited
public static function loadAllTranslations()
Inherited
PhutilTranslation
Load all available translation objects.
Return
list<PhutilTranslation> | List of available translation sources. |
public static function getTranslationMapForLocale($locale_code)Inherited
public static function getTranslationMapForLocale($locale_code)
Inherited
PhutilTranslation
Load the complete translation map for a locale.
This will compile primary and fallback translations into a single translation map.
Parameters
string | $locale_code | Locale code, like "en_US". |
Return
map<string, wild> | Map of all avialable translations. |