我无法让我的翻译在我的主题中工作。这是我的
在函数中。php,我有:
load_theme_textdomain( \'transparent\', get_template_directory_uri() .\'/languages\' );
我有/主题/语言/透明-en\\U US。采购订单,
其中包含:
# English translations for Transparent package.
# Copyright (C) 2014 Steven Doig
# This file is distributed under the same license as the Transparent package.
# Automatically generated, 2012.
#
msgid ""
msgstr ""
"Project-Id-Version: my-pluginname 1.0\\n"
"Report-Msgid-Bugs-To: \\n"
"POT-Creation-Date: 2012-08-06 13:46-0400\\n"
"PO-Revision-Date: 2013-03-21 11:20+0400\\n"
"Last-Translator: Automatically generated\\n"
"Language-Team: none\\n"
"MIME-Version: 1.0\\n"
"Content-Type: text/plain; charset=utf-8\\n"
"X-Poedit-SourceCharset: iso-8859-1\\n"
"Content-Transfer-Encoding: 8bit\\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\\n"
"X-Generator: Poedit 1.5.4\\n"
#: header.php:58
msgid "thanks-for-visiting"
msgstr "Hello! Thank you for visiting. Take a look around and subscribe to the "
#: header.php:60
msgid "subscribe-by-email"
msgstr "subscribe by email"
#: header.php:62
msid "for-updates"
msgstr "for updates."
在标题中。php,从第58行开始,我有:<p><?php echo __("thanks-for-visiting", \'transparent\'); ?><a href="<?php bloginfo(\'rss2_url\'); ?>" title="<?php bloginfo(\'name\'); ?> RSS feed">RSS feed</a>
<?php if (of_get_option(\'feedburner\', \'\') !== \'\') {?>
or <a href="http://feedburner.google.com/fb/a/mailverify?uri=<?php echo of_get_option(\'feedburner\', \'no entry\');?>&loc=en_US" target="_blank"><?php echo __("subscribe-by-email", \'transparent\'); ?></a>
<?php } ?>
<?php echo __("for-updates", \'transparent\'); ?></p>
以我的风格。css我有以下内容/*
Theme Name: Transparent
Theme URI: http://websitetechnology.com.au/category/themes/transparent/
Description: Transparent responsive two-column theme.
Tags: green, two-columns, right-sidebar
Author:Steven Doig
Author URI:http://tech.doig.com.au
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Version:1.2
*/
然而,在front end, 我明白了:感谢访问RSS提要以获取更新
你能明白为什么这个翻译不起作用吗?