From b9eec91c870154a747b228977490648a10005eb0 Mon Sep 17 00:00:00 2001 From: Jay Trees Date: Fri, 8 Apr 2022 09:08:42 +0200 Subject: [PATCH] Add gettext context --- src/functions/gettext.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/functions/gettext.php b/src/functions/gettext.php index 852a9fdd..d21895c2 100644 --- a/src/functions/gettext.php +++ b/src/functions/gettext.php @@ -27,3 +27,8 @@ function _n(string $singular, string $plural, int $amount): string { return 1 === $amount ? __($singular) : __($plural); } + +function _x(string $text, string $context): string +{ + return __($text); +}