我将部署我的第一个插件,但\\u e()和\\u()函数似乎不起作用。
在“我的评论”标题中:
Text Domain: add-to-post-footer
Domain Path: /languages
我创建了。采购订单和。mo文件,并将它们以/种语言放入我的插件中。我翻译成葡萄牙语并命名为“pt\\u BR”。采购订单/生产订单\'。在我的选项页面中,我有一些文本如下:
<?php echo __( \'With \', \'add-to-post-footer\').ATPF_PLUGIN_NAME.__(\' you can add some content at the final of all your posts without care about forget some of them, or the need to copy and paste boring proccess. Just go to Posts >> \', \'add-to-post-footer\').ATPF_PLUGIN_NAME.__(\', insert the content and save it. The proccess is the same to change the content. You just have to care about other stuff of your site/blog now\', \'add-to-post-footer\'); ?>
但是,当我在本地主机wordpress上安装语言为巴西葡萄牙语时,什么都没有发生(只是保存按钮,因为默认情况下,保存已经在WP上翻译了)
我做错了什么?