dgettext

(PHP 4, PHP 5, PHP 7, PHP 8)

dgettextOverride the current domain

Опис

dgettext(string $domain, string $message): string

The dgettext() function allows you to override the current domain for a single message lookup.

Параметри

domain

The domain

message

The message

Значення, що повертаються

A string on success.

Помилки/виключення

Throws a ValueError if domain is the empty string.

Журнал змін

Версія Опис
8.4.0 Now throws a ValueError if domain is the empty string.

Прогляньте також

  • gettext() - Шукає переклад повідомлення в заданому домені