X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FBaseModule.php;h=be4788045c2d283d73c5c30080c1ebf661ee7710;hb=f00792d370cfbf1d52b37e3eed7e80e682df9d8a;hp=5d752bb4f7450065bec2642c8f997fa8f067c91c;hpb=ce578a77453fd421e9598c994ef008ad7e128de6;p=friendica.git diff --git a/src/BaseModule.php b/src/BaseModule.php index 5d752bb4f7..be4788045c 100644 --- a/src/BaseModule.php +++ b/src/BaseModule.php @@ -49,6 +49,26 @@ abstract class BaseModule implements ICanHandleRequests $this->l10n = $l10n; } + /** + * Wraps the L10n::t() function for Modules + * + * @see L10n::t() + */ + protected function t(string $s, ...$args): string + { + return $this->l10n->t($s, $args); + } + + /** + * Wraps the L10n::tt() function for Modules + * + * @see L10n::tt() + */ + protected function tt(string $singular, string $plurarl, int $count): string + { + return $this->l10n->tt($singular, $plurarl, $count); + } + /** * {@inheritDoc} */