The category argument allows a specific category of the locale settings to be used for fetching a message. Valid categories are:
LC_CTYPE, LC_NUMERIC, LC_TIME, LC_COLLATE, LC_MONETARY, LC_MESSAGES and LC_ALL.
Note that the category must be specified with a numeric value, instead of the constant name. The values are:
LC_CTYPE 0
LC_NUMERIC 1
LC_TIME 2
LC_COLLATE 3
LC_MONETARY 4
LC_MESSAGES 5
LC_ALL 6
dcgettext
(PHP 4, PHP 5)
dcgettext — Substitui o domínio por um lookup
Descrição
string dcgettext
( string
$domain
, string $message
, int $category
)Esta função permite que você sobreescreva o domínio atual por uma simples mensagem de lookup.
Parâmetros
-
domain -
O domínio
-
message -
A mensagem
-
category -
A categoria
Valor Retornado
Uma string em sucesso.
zak at nucleus dot com ¶
12 years ago
