필자는 필자의 새 응용 프로그램 용 카탈로그 (.in)를 PHP로 작성하려고합니다.Poedit로 POT 파일 만들기
<?php
echo _e('SORTIR LA NUIT');
?>
2)가에, Poedit를 엽니 다 1) 나는 모든 값이 예를 들어
를 번역 할 넣어 파일 "trans.php"를 만들어, 여기 내 파일 "경로"는 내가 입력 한 내용입니다. (사진 참조) 그런 다음 "php"파일과 동일한 위치를 저장합니다. 내가 "업데이트"를 클릭하면3), 나는 다음과 같은 오류가 있습니다 :
12:25:43: No files found in: /Users/aweaoftheworld/Desktop/test
12:25:43: Poedit did not find any files in scanned directories.
12:25:43: Entries in the catalog are probably incorrect.
12:25:43: Updating the catalog failed. Click on 'More>>' for details.
당신이 나를 도와 드릴까요? 당신이 방법으로 예를
<?php echo _("hi there i am gettext library") ?>
를 들어, _E _ 대신 의 사용해야
'_()'은 gettext()의 별칭입니다. http://php.net/manual/function.gettext.php – powtac