gettext로 내 응용 프로그램을 번역 할 때 문제가 있습니다.Windows 7에서 Gettext가 번역되지 않습니다
내 코드입니다 : 내가 스크립트를 실행하면
<?php
$language = 'cs_CZ';
$translatefile = 'default';
setlocale(LC_ALL, $language);
putenv("LANG=".$language);
bindtextdomain($translatefile, __DIR__.'/locale');
textdomain($translatefile);
echo gettext("ADMIN_LOGIN_PROFESSIONAL");
는 여전히 'ADMIN_LOGIN_PROFESSIONAL'이다.
내 파일 구조 :- 루트/
- index.php를
- 로케일/
- cs_CZ/
- LC_MESSAGES/default.mo
나는 윈도우 7, 아파치 2.2.22와 PHP 5.3.13을 실행하는거야
- cs_CZ/
os와 서버 사이에 PHP 관계가 있습니까? –
제 동료의 리눅스에서 잘 작동하고 있습니다. –