Add gettext context

This commit is contained in:
Jay Trees 2022-04-08 09:08:42 +02:00
parent 9ae3795493
commit b9eec91c87

View file

@ -27,3 +27,8 @@ function _n(string $singular, string $plural, int $amount): string
{ {
return 1 === $amount ? __($singular) : __($plural); return 1 === $amount ? __($singular) : __($plural);
} }
function _x(string $text, string $context): string
{
return __($text);
}