gettext() を使用して、Web サイトのテキストの一部を翻訳しています。ほとんどの場合、これらは「戻る」、「名前」などの短いテキスト/ボタンです...
// I18N support information here
$language = "en_US";
putenv("LANG=$language");
setlocale(LC_ALL, $language);
// Set the text domain as 'messages'
$domain = 'messages';
bindtextdomain($domain, "/opt/www/abc/web/www/lcl");
textdomain($domain);
echo gettext("Back");
私の質問は、このテキスト (id) が echo gettext("") 部分にどれくらい「長く」あることができるかということです。
長いテキストの処理が遅くなりますか? それとも、それもうまく機能しますか?たとえば、次のようにします。
echo _("LZ adfadffs is a VVV contributor who writes a weekly column for Cv00m. The former Hechinger Institute Fellow has had his commentary recognized by the Online News Association, the National Association of Black Journalists and the National ");