dcgettext

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

dcgettextBelirtilen arama için geçerli uygulama adını değiştirir

Açıklama

dcgettext(string $uygulama_adı, string $ileti, int $yerel): string

dcgettext() işlevi, belirtilen iletinin belli bir uygulama_adı altında aranabilmesini sağlar.

Bağımsız Değişkenler

uygulama_adı

Gettext iletileri için uygulama veya paket adı.

ileti

Özgün ileti.

yerel

Yerel kategorisi.

Dönen Değerler

Başarılı olursa bir dizge ile döner.

Ayrıca Bakınız

  • gettext() - Geçerli uygulama alanında bir iletiyi arar

add a note

User Contributed Notes 2 notes

up
12
zak at nucleus dot com
23 years ago
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
up
0
chaosben at gmail dot com
3 years ago
As of today, you can use the LC_* constants as last parameter.

<?php
echo dcgettext('main', 'My Text', LC_MESSAGES);
?>
To Top