ateliee/php_gettext_error

php error message translation output

dev-master 2014-07-26 08:51 UTC

This package is auto-updated.

Last update: 2024-03-29 02:28:06 UTC


README

phpのエラー文章を翻訳して、書き出します。 出力にはgettext()に準していますが、使用していません。 言語ファイル(./languages)ファイルを追加・変更すれば様々なエラー文を翻訳することができます。

translate an error sentence of php and begin to write it. In the output in gettext() associate; do it, but do not use it. If I add language file (./languages) file and change it, I can translate various error sentences.

使い方(how to use)

init.phpを読み込みます(include init.php)

include_once ("init.php");

言語を設定致します。(setup language)

PHPLangError::init("ja");

使用例(Example)

normal

Use of undefined constant **** - assumed '****'

output

タイプミスかもしれません('****')