bindtextdomain

(PHP 3 >= 3.0.7, PHP 4, PHP 5)

bindtextdomain -- Указать путь к каталогу сообщений

Описание

string bindtextdomain ( string domain, string directory )

Возвращает текущий путь.

Пример 1. Пример

<?php

$domain
= 'myapp';
echo
bindtextdomain($domain, '/usr/share/myapp/locale');

?>

Вывод:

/usr/share/myapp/locale



bindtextdomain
Robert Beaudry
12-Feb-2006 02:19
To re-enforce Andreas' comment, I spent a few hours attempting to get phpldapadmin to work ... without success. I tracked it down to a "bindtextdomain" call that didn't return. Having found Andreas's note above, I simply added the php_gettext extension and everything now works!

Thanks Andreas.
Andreas Koepke: php at andreas dot id dot au
03-May-2004 09:19
This function requires the gettext extension to be added or compiled into PHP.

This is not mentioned anywhere above and had me stumped for a while, I only discovered this by reading the bug reports.

<bind_textdomain_codesetdcgettext>
 Last updated: Tue, 15 Nov 2005