This topic has 13 replies, 2 voices, and was last updated 9 years by Radu.

  • Author
  • #71955
     jerryd
    Participant

    I have translated to Chinese from English, but how to use it?

    #71956
     jerryd
    Participant

    I 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.

    #71977
     Radu
    Moderator

    Hi,

    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 solution
    #72154
     jerryd
    Participant

    yes, I have done that with poEditor

    #72335
     Radu
    Moderator

    Hi Jerryd,

    Try to do this

    Make sure that your language files have this prefix :
    kleo_framework-zh_CN.mo
    kleo_framework-zh_CN.po

    Put 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.po

    Related 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 solution
    #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.

    Attachments:
    You must be logged in to view attached files.
    #72453
     Radu
    Moderator

    Hi,

    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 solution
    #72548
     jerryd
    Participant

    unfortunately, 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.
    #72552
     jerryd
    Participant

    I have disabled all plugins, it still remains same.

    Attachments:
    You must be logged in to view attached files.
    #72572
     Radu
    Moderator

    The 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 solution
    #72678
     jerryd
    Participant

    I just checked, the front-end has been translated. The back-end will do that differently?

    #72709
     Radu
    Moderator

    Hi,

    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 solution
    #72835
     jerryd
    Participant

    OK, I see.

    When would that be supported?

    #72838
     Radu
    Moderator

    In 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
Viewing 14 posts - 1 through 14 (of 14 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?