Gettext()包含更大的文本

Nic*_*as. 6 php gettext

我正在使用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");
Run Code Online (Sandbox Code Playgroud)

我的问题是,这个文本(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 ");
Run Code Online (Sandbox Code Playgroud)

dec*_*eze 6

官方gettext文档仅提供以下建议:

可翻译的字符串应限于一个段落; 不要让一条消息长于十行.原因是当可翻译字符串改变时,翻译者面临更新整个翻译字符串的任务.也许只有一个单词会在英文字符串中发生变化,但翻译人员看不到(使用当前的翻译工具),因此她必须校对整个消息.

字符串的长度没有官方限制,它们显然可以超过"一段/ 10行".

对于长字符串,应该几乎没有可衡量的性能损失.