我如何为下面的“消息”实现 gettext echo _("")?
$output = array(
'returnCode' => '0',
'message' => "Sorry, an error has occured. Please try again."
);
echo json_encode($output);
我试过了
$output = array(
'returnCode' => '0',
'message' => echo _("Sorry, an error has occured. Please try again.")
);
但当然它会返回一个错误