Results of 1 - 1 of about 1 for myPHPApp (0.000 sec.)
- gettext — 現在のドメインのメッセージを参照する | PHP 8.3 9414
- gettext (PHP 4, PHP 5, PHP 7, PHP 8) gettext — 現在のドメインのメッセージを参照する 説明 function gettext ( string $message ): string 現在のドメインのメッセージを参照します。 パラメータ message 翻訳するメッセージ。 戻り値 翻訳テーブルに翻訳
... に設定します putenv ( 'LC_ALL=de_DE' ); setlocale ( LC_ALL , 'de_DE' ); // 変換テーブルの場所を指定します bindtextdomain ( "myPHPApp" , "./locale" ); // ドメインを選択します textdomain ( "myPHPApp" ); // 翻訳内容は ./locale/de_DE/LC_MESSAGES/myPHPApp.mo か ... ら検索されます // テストメッセージを出力します echo gettext ( "Welcome to My PHP Application" ); // あるいは、gettext() のかわりに _() も使用可能です echo _ ( "Have a nice day" ); ?> 注意 注意 : この関数の ...
-
https://man.mtool.work/php/8.3/function.gettext.html
PREV
1
NEXT