0
<?php _e('text', 'textdomain'); ?>
用於翻譯主題和插件中的文本。但是,如果我有一個PHP函數,文字定義爲一個變量:如何在php函數中使用_e()?
$textoutput = 'blablabla';
在另一個文件中的變量是呼應:
echo $textoutput;
如何將「blablabla」文本翻譯? $textoutput = _e('blablabla', 'textdomain');
不起作用。
謝謝。
中找到非常感謝你 – Pintolus