PHP中的双下划线?
这几行 PHP 代码中的双下划线是什么意思?
What does the double underscores in these lines of PHP code mean?
$WPLD_Trans['Yes']=__('Yes',$WPLD_Domain);
$WPLD_Trans['No']=__('No',$WPLD_Domain);
推荐答案
看起来你正在使用 Wordpress - wp-includes/l10n.php 将 __ 定义为一个转换字符串的函数(类似gettext 及其别名 _ 但带有用于显式指定域的可选参数).
Looks like you're using Wordpress - wp-includes/l10n.php defines __ as a function that translates a string (similar to gettext and its alias, _ but with an optional parameter for explicitly specifying a domain).
相关文章