我在代码中翻译一行,仍然可以得到任何结果。
这一行我需要翻译

这是我放到.po文件中的

你能告诉我我哪里做错了吗?
我需要翻译这个页面上的自定义按钮"Poptávka“usb-4-logo.com/en/
发布于 2017-06-01 18:46:57
要使字符串可翻译,您需要在字符串周围使用任何WordPress转换函数:
例如:
<a href="#">This string</a> <-- this will not be translatable
<a href="#"><?php __e('This string','your-namespace'); ?></a> <-- this will be translatable.有相当多的方法可以使内容可翻译:__()、_e()等。阅读更多关于翻译的文档:https://codex.wordpress.org/L10n
https://stackoverflow.com/questions/44303863
复制相似问题