|
Stud.IP
6.1
|
Functions | |
| initializeTranslation ($domain) | |
| getTranslationDomain () | |
| hasTranslation () | |
| _ ($string) | |
| _n ($string0, $string1, $n) | |
Variables | |
| trait | TranslatablePluginTrait |
| _ | ( | $string | ) |
| _n | ( | $string0, | |
| $string1, | |||
| $n | |||
| ) |
Plugin localization for plural strings.
| string | $string0 | String to translate (singular) |
| string | $string1 | String to translate (plural) |
| mixed | $n | Quantity factor (may be an array or array-like) |
|
protected |
Returns the defined translation domain from plugin manifest. If none is set, false is returned.
| hasTranslation | ( | ) |
Returns whether the plugin has a translation defined or not.
|
protected |
Initializes the translation for the plugin.
| string | $domain |