现在使用 mako
模版引擎,在 html 代码中这样使用时 ${_('Francois Pinard')}
, 提示
TypeError: 'Undefined' object is not callable
但这个例子可以:
http://docs.makotemplates.org/en/latest/usage.html#babel
如何在模版中使用 _
?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号