こちらがgettext.phpの内容です。
間違いありますかね?><
PHP
1<?php 2date_default_timezone_set('Asia/Tokyo'); 3$domain_root_path = "/sample"; 4 5$language = 'en'; 6if (ereg('ja', $_SERVER['HTTP_ACCEPT_LANGUAGE'])) { 7 $language = 'ja_JP'; 8} 9 10function _e($text) 11{ 12 echo gettext($text); 13} 14 15function __($text) 16{ 17 return gettext($text); 18} 19 20putenv("LANG=$language"); 21setlocale(LC_ALL, $language); 22$domain = 'sample'; 23bindtextdomain($domain, $domain_root_path . "/languages"); 24textdomain($domain); 25 26?>
動かないとは、具体的にどんな症状なんでしょうか?