August 10, 2015 at 13:58
#72419
jerryd
Participant
Hi Radu,
I have tried that, but it is still not working. I place is_textdomain_loaded
into kleo-child/functions.php for checking if the text domain is loaded, and the result is false.
I have activated the kleo-child theme not the kleo
I have enabled the WordPress MU.
The following is the header of kleo_framework-zh_CN.po
COPY CODE
"Project-Id-Version: Kleo v3.0.4\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: \n"
"PO-Revision-Date: Mon Aug 10 2015 19:13:48 GMT+1000 (AEST)\n"
"Last-Translator: wp-dev-admin <wp-dev-admin@gmail.com>\n"
"Language-Team: \n"
"Language: Chinese (China)\n"
"Plural-Forms: nplurals=1; plural=0\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Poedit-SourceCharset: utf-8\n"
"X-Generator: Loco - https://localise.biz/\n"
"X-Poedit-Language: English\n"
"X-Poedit-Country: UNITED STATES\n"
"X-Poedit-KeywordsList: _:1;gettext:1;dgettext:2;ngettext:1,2;dngettext:2,3;"
"__:1;_e:1;_c:1;_n:1,2;_n_noop:1,2;_nc:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
"_x:1,2c;_ex:1,2c;_nx:1,2,4c;_nx_noop:1,2,3c;_n_js:1,2;_nx_js:1,2,3c;"
"esc_attr__:1;esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;"
"esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
"X-Poedit-Basepath: ../../../\n"
"X-Poedit-Bookmarks: \n"
"X-Poedit-SearchPath-0: .\n"
"X-Textdomain-Support: yes\n"
"X-Loco-Target-Locale: zh_CN"
I have placed if ($domain == "kleo_framework") throw new \Exception(var_export($l10n[$domain],true));
inside wp-includes/l10n.php for list all registered text domain, and the result is 'Exception' with message 'NULL'
it seems that the text domain has not been registered.