Changeset View
Changeset View
Standalone View
Standalone View
src/internationalization/PhutilTranslation.php
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | abstract class PhutilTranslation extends Phobject { | ||||
/** | /** | ||||
* Load all available translation objects. | * Load all available translation objects. | ||||
* | * | ||||
* @return list<PhutilTranslation> List of available translation sources. | * @return list<PhutilTranslation> List of available translation sources. | ||||
*/ | */ | ||||
public static function loadAllTranslations() { | public static function loadAllTranslations() { | ||||
return id(new PhutilClassMapQuery()) | return (new PhutilClassMapQuery()) | ||||
->setAncestorClass(__CLASS__) | ->setAncestorClass(__CLASS__) | ||||
->execute(); | ->execute(); | ||||
} | } | ||||
/** | /** | ||||
* Load the complete translation map for a locale. | * Load the complete translation map for a locale. | ||||
* | * | ||||
Show All 27 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0