bindtextdomain
(PHP 4, PHP 5)
bindtextdomain — Fixe le chemin d'un domaine
Description
string bindtextdomain
( string $domain
, string $directory
)
Fixe le chemin du domaine.
Liste de paramètres
- domain
-
Le domaine
- directory
-
Le chemin vers le dossier
Valeurs de retour
Le chemin complet vers le domaine.
Exemples
Example#1 Exemple avec bindtextdomain()
<?php
$domain = 'myapp';
echo bindtextdomain($domain, '/usr/share/myapp/locale');
?>
L'exemple ci-dessus va afficher :
/usr/share/myapp/locale