• Resolved francoc30

    (@francoc30)


    Hi, I want the front end of my site to be in Chinese language. I checked the simple-membership-zh_Hans.mo and simple-membership-zh_Hans.po files are the plugin’s language subfolder. I can use the Poedit to do translation. But somehow the front end is still displayed in English. It looks as if the mo file is not loaded. Please help.
    Wordpress version 5.3.2. , Theme is Astra.
    Thanks.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi,

    Hi, I want the front end of my site to be in Chinese language.

    Are you talking about the homepage of your site or the membership login form?

    Also, can you log in as admin in WordPress and go to Settings -> General. What language have you set up in Site Language option?

    Regards

    • This reply was modified 4 years, 11 months ago by mbrsolution.
    Thread Starter francoc30

    (@francoc30)

    I mean the login form, registration form and profile of the membership plugin. All the contents are in Chinese, but my WP language setting is English.
    This plugin automatically created five pages during activation. Can I change the name of these pages to Chinese without affect the functions.
    Can you tell me how to use the mo files for the plugin?

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi,

    This plugin automatically created five pages during activation. Can I change the name of these pages to Chinese without affect the functions.

    Please check the following documentation https://simple-membership-plugin.com/recreating-required-pages-simple-membership-plugin/. This will help you achieve your goal.

    Let me know if the above helps you.

    Thank you

    Thread Starter francoc30

    (@francoc30)

    Well that got around the renaming the name of the page. Using the shortcode say, [swpm_login_form], does display the login form on the new page. But the labels on the form are still English, like “username” “password”, etc. I need these labels to be in Chinese.

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi,

    Unfortunately the following files are not up to date. You need to update these files to be able to have the plugin fully translated into Chinese.

    simple-membership-zh_Hans.mo
    simple-membership-zh_Hans.po

    Please check the following documentation https://simple-membership-plugin.com/translate-simple-membership-plugin/. This will help you update your po and mo file to stay up to date with the current template file.

    Let me know if the above helps you.

    Thank you

    Thread Starter francoc30

    (@francoc30)

    Thanks. I did read the article you mentioned. I have downloaded and use Poedit to access the Hans.po file, make some translation and compile into .mo file. My question is how Simple Membership know where to look for which language file to load. I kind of expect to see a language selection dropdown box in the Setting tab. Since it is not there, the next step is to insert some codes in SM code base. Can you provide the what, where and how on this?

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi,

    My question is how Simple Membership know where to look for which language file to load. I kind of expect to see a language selection dropdown box in the Setting tab.

    Our plugin does not have a language dropdown selection option.

    Since it is not there, the next step is to insert some codes in SM code base. Can you provide the what, where and how on this?

    Can you provide more information. What are you trying to achieve?

    Thank you

    • This reply was modified 4 years, 11 months ago by mbrsolution.
    Thread Starter francoc30

    (@francoc30)

    Foundamently I want to be able to translate SWPM text strings, like field labels, to Chinese.

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi, those strings are available for translation as per the link I shared above. Or am I mistaking your request/ issue?

    Thank you

    Thread Starter francoc30

    (@francoc30)

    There is no further details on the document link you provided. I am new with using translation in WordPress platform. So I need more instructions. After finishing translation and save the PO and MO files. Where do I put these files, just in the same place of the POT file (Languages folder), or somewhere else? There are many PO and MO files of different languages in the plugin Language folder. How does WordPress or SWPM know which language file to use, since SWPM does not have a language selector?
    Hope this explains my issue more.

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi,

    The following paths are used by the plugins and themes translation files from WordPress polyglot.

    WordPress Languages Folders

    yoursite.com/wp-content/languages/plugins/
    yoursite.com/wp-content/languages/themes/

    The other method still used today is the plugin and theme directory path. When you upload or install a plugin or theme with a language directory, it usually uploads the language files in the /languages/ folder. The following is an example of a plugin and theme directory path.

    Plugin / Theme Language Folders

    yoursite.com/wp-content/themes/themes-name/languages/
    yoursite.com/wp-content/plugins/plugins-name/languages/

    Unfortunately the following files in our plugin are not up to date. You need to update these files to be able to have the plugin fully translated into Chinese.

    simple-membership-zh_Hans.mo
    simple-membership-zh_Hans.po

    If you are using Poedit to update the translations, please carry out the following steps.

    Step 1 Run Poedit and open the po file.
    Step 2 Click on Catalog -> Update from POT file.. in Poedit.
    Step 3 Locate the POT file and click on Open.
    Step 4 A window will open up providing a summary of new strings found. Click on Ok to accept the changes. This will update your simple-membership-zh_Hans.po and simple-membership-zh_Hans.mo files.

    Once you have completed the above steps, you will see the strings that need to be translated. Start translating these strings and make sure you keep saving your changes. Once you complete this, upload the po and mo file to the path mentioned above.

    Let me know if the above helps you.

    Thank you

    • This reply was modified 4 years, 11 months ago by mbrsolution.
    • This reply was modified 4 years, 11 months ago by mbrsolution.
    • This reply was modified 4 years, 11 months ago by mbrsolution.
    Thread Starter francoc30

    (@francoc30)

    The folder yoursite.com/wp-content/plugins/simple-membership/languages has many translation files that come with the install. Should I or can I delete all of them except the simple-membership-zh_Hans.mo and simple-membership-zh_Hans.po?

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi,

    The folder yoursite.com/wp-content/plugins/simple-membership/languages has many translation files that come with the install. Should I or can I delete all of them except the simple-membership-zh_Hans.mo and simple-membership-zh_Hans.po?

    You don’t need to delete the other language files. They are very small in size and cause no harm to your site.

    Thank you

    Thread Starter francoc30

    (@francoc30)

    Thanks for the detail description. After a bit more research and testing, in order for WP to find the proper language mo, the language setting under WP Setting|General must be set correctly, and the plugin language mo must match it. In my case, I have to set WP language to zh_HK and rename plugin’s language file from zh_Hans to zh_HK. Then it works. So for team, zh_Hans is not support. It needs to be changed.
    Thanks again.

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi, I am glad you managed to solve your issue.

    I have to set WP language to zh_HK and rename plugin’s language file from zh_Hans to zh_HK. Then it works. So for team, zh_Hans is not support. It needs to be changed.

    I have submitted a message to the developers to investigate further your findings.

    Thank you

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Chinese language not displayed’ is closed to new replies.