(PHP 3>= 3.0.7, PHP 4 )
gettext -- Vyhledat zprßvu v souΦasnΘ domΘn∞
Popis
string gettext
(string message)
Tato funkce vrßtφ p°elo╛en² °et∞zec, pokud jej najde v p°ekladovΘ
tabulce, nebo p°edan² °et∞zec, pokud jej nenajde. Jako alias k tΘto
funkci m∙╛ete pou╛φt podtr╛φtko.
P°φklad 1. Gettext()-check
<?php
// Set language to German
putenv ("LANG=de");
// Specify location of translation tables
bindtextdomain ("myPHPApp", "./locale");
// Choose domain
textdomain ("myPHPApp");
// Print a test message
print (gettext ("Vφtejte v mΘ PHP Aplikaci"));
?>
|
|