dcgettext

(PHP 4, PHP 5)

dcgettextOverrides the domain for a single lookup

Description

string dcgettext ( string $domain , string $message , int $category )

This function allows you to override the current domain for a single message lookup.

Parameters

domain

The domain

message

The message

category

The category

Return Values

A string on success.

See Also

  • gettext() - Lookup a message in the current domain

Коментарии

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
2000-12-04 05:05:53
http://php5.kiev.ua/manual/ru/function.dcgettext.html
As of today, you can use the LC_* constants as last parameter.

<?php
echo dcgettext('main''My Text'LC_MESSAGES);
?>
2021-02-04 06:13:06
http://php5.kiev.ua/manual/ru/function.dcgettext.html

    Поддержать сайт на родительском проекте КГБ