我正在使用 gettext() 来翻译我网站上的一些文本。这些大多是短文本/按钮,如“返回”、“名称”、...
// 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 ");