-
Author
-
August 6, 2015 at 15:48 #71955jerrydParticipant
I have translated to Chinese from English, but how to use it?
August 6, 2015 at 15:59 #71956jerrydParticipantI have updated the constant WP_LANG to zh_CN in wp-config.php, and also created zh_CN.po in theme languages folder, my wordpress has been translated to chinese, but the theme still remain unchanged.
August 6, 2015 at 16:41 #71977RaduModeratorHi,
You have .po and .mo files ?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 9, 2015 at 16:04 #72335RaduModeratorHi Jerryd,
Try to do this
Make sure that your language files have this prefix :
kleo_framework-zh_CN.mo
kleo_framework-zh_CN.poPut the language files in this path : wp-content/languages/themes/
wp-content/languages/themes/kleo_framework-en_EN.mo
wp-content/languages/themes/kleo_framework-en_EN.poRelated issues and fixes here : https://archived.seventhqueen.com/forums/topic/kleo-translation-update-proof
Best Regards
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 10, 2015 at 13:58 #72419jerrydParticipantHi 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.Attachments:
You must be logged in to view attached files.August 10, 2015 at 18:23 #72453RaduModeratorHi,
1. You are no need for any change in core ( wp-includes/l10n.php ) put back the original file.
2. Put the language files in this path : wp-content/languages/themes/
3. Go to Wp-Admin -> Settings -> General -> Site Language ( select chinese )
It should work.
Let me know if it works.
Regards
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 11, 2015 at 14:35 #72548jerrydParticipantunfortunately, it is still not working. 🙁
I did exactly what you said, and also turned site language zh_CN, the whole wordpress and rtMedia both shown the language correctly, only now the theme still remained unchanged.
Attachments:
You must be logged in to view attached files.August 11, 2015 at 14:40 #72552jerrydParticipantI have disabled all plugins, it still remains same.
Attachments:
You must be logged in to view attached files.August 11, 2015 at 16:51 #72572RaduModeratorThe front end it’s not translated ?( your translated strings )
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 12, 2015 at 11:25 #72678jerrydParticipantI just checked, the front-end has been translated. The back-end will do that differently?
August 12, 2015 at 18:38 #72709RaduModeratorHi,
The kleo doesn’t not support translation for theme options yet.
Regards
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 13, 2015 at 12:40 #72838RaduModeratorIn one of future update, i cannot give you an exact date.
Regards
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.