ateliee / php_gettext_error
php error message translation output
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ateliee/php_gettext_error
This package is auto-updated.
Last update: 2025-09-29 01:49:21 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
タイプミスかもしれません('****')