Add gettext context
This commit is contained in:
parent
9ae3795493
commit
b9eec91c87
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue