Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Resolved] Changing plugin language

Simple Membership Plugin › Forums › Simple Membership Plugin › Changing plugin language

Tagged: language

  • This topic has 14 replies, 4 voices, and was last updated 7 years ago by admin.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • May 5, 2019 at 6:01 pm #18124
    rhail
    Participant

    Hi,

    I have tried to change the plugin language with several different tricks, and there seems not to be any simple instructions available for this. How is this supposed to be done? Changing the site language didn’t work, adding some language lines in php files didn’t work, how should this work? I see that in the plugin language folders, there are language files for FI.

    Please help! Thanks!

    May 6, 2019 at 12:00 am #18126
    mbrsolution
    Moderator

    Hi, please check the following documentation. Let me know if this helps you.

    Kind regards

    May 7, 2019 at 8:58 am #18139
    rhail
    Participant

    I’m not looking for instructions how to translate the plugin, translation is available already in the plugin files. I want to take existing translation into use with my WP site.

    May 7, 2019 at 9:41 pm #18147
    mbrsolution
    Moderator

    Hi, can you provide a step by step procedure of what you have done so far. This will allow me to better assist you. The following are a few questions fro you to get an idea.

    For example:

    1) What language are you wanting to set up in your site?
    2) Have you created the po and mo files from scratch?
    3) What did you name the po and mo files? The following is an example name for the Spanish files.

    simple-membership-es_ES.mo
    simple-membership-es_ES.po

    Kind regards

    May 7, 2019 at 11:22 pm #18149
    The Assurer
    Moderator

    If you change the WordPress (site) language setting to “Finnish,” then SWPM should start using the “FI” language files.

    May 8, 2019 at 1:33 am #18150
    mbrsolution
    Moderator

    Hi, I missed the “FI” language note in your post above as The Assurer pointed out in his reply. My apologies for this.

    Please check the following documentation. I just updated it to help those who run into language issues.

    Kind regards

    May 8, 2019 at 11:42 am #18153
    rhail
    Participant

    Hi,

    Now we are talking about the right thing. So the language of the plugin is bound to the site language.

    When I change site language to Finnish, the plugin texts (like login page or creation of new membership account) are still in English.

    Is it possible, that the plugin chooses the language only when installing the plugin? Or should it change it dynamically when user changes site language? The site language has been English this far, even though factually the site is in Finnish. So do I need to re-install the whole plugin so that the plugin would pick up the right site language (the language while installing the plugin)?

    May 9, 2019 at 4:45 am #18158
    mbrsolution
    Moderator

    Hi,

    When I change site language to Finnish, the plugin texts (like login page or creation of new membership account) are still in English.

    Is every string translated into English or only a few stings? If only a few strings are translated into English, then you will have to edit those strings and translate them into your language “Finnish” using Poedit or Loco Translate plugin.

    Regards

    May 9, 2019 at 8:02 am #18165
    rhail
    Participant

    Hi,

    All texts remain in English, after I have switched the site language to Finnish. For the end user at my WP site, login and registration page texts should be in Finnish so people can understand what they are doing at the site.

    I have checked the plugin’s FI language file (opened the .po file with text editor), and there are corresponding translations that are used at those pages (login and registration pages), like field “Last name” has translation of “Sukunimi” (which is correct).

    Could you/someone test this language switching with a test site that has the plugin installed? Is the switching of plugin language working dynamically with changing the site language? So is this a bug/feature of the plugin or is it just me that this doesn’t work?

    May 9, 2019 at 8:59 am #18166
    mbrsolution
    Moderator

    Hi, just one question. Did you read through the documentation I shared above? It has information about setting up a site in a different language other than English. There is also some troubleshooting steps. Please give this a try and let me know how you go.

    Kind regards

    May 9, 2019 at 9:59 am #18168
    rhail
    Participant

    Hi,

    I didn’t find anything that could fix the situation from the doc you provided.

    I tested to switch the site language to Swedish, and after that I got the login & register page texts in Swedish in my WP site.

    So it seems that there is some issue with the FI translation files, I would guess? Since the switching of the plugin language to SE worked as it was supposed to.

    May 9, 2019 at 10:27 am #18171
    mbrsolution
    Moderator

    Hi, you might be right and there might be a problem with the FI translation. As I recommended above, use Poedit or Loco Translate plugin to edit the strings.

    You could also try the following test. Check the FI po file in this location and make sure all the strings are correct.

    yoursite.com/wp-content/plugins/simple-membership/languages/

    If all the strings are correct and translated into Finnish, move the po and mo files to the following location overriding the existing ones.

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

    Then check to make sure the strings in question are translated in Finnish. If they are then your issue is resolved. If they are not, then I suspect that something might be wrong with FI translation files.

    Let me know how you go.

    Regards

    May 11, 2019 at 8:18 pm #18202
    rhail
    Participant

    I finally had some time to do some testing with the translation stuff. Found out the issue, or couple of issues with the FI translation file. First of all, in WP, FI language code seems to be ‘fi’, not fi_FI

    So, the translation files need to have name of ‘simple-membership-fi’ (.po & .mo files). Also file metadata should have
    “Language: fi\n”

    I also noticed when comparing SE and FI translation files, that the line numbers are a bit different. For example, the field ‘First name’ should be at ‘views/add.php:23’ (according to SE translation file) and in FI translation, it says line 22. I manually updated the FI translation file’s login page line info (those texts that point to add.php page) to correspond the SE translation line info. If there is further mismatches, it’s a lot of work to update all. It’s not really good to bind stuff to php file line numbers.

    Anyways, the FI translation file should be fixed to the plugin’s files also, so I don’t need to manually update that in the future, and new users that might need the FI language with the plugin would have it working out of the box.

    May 11, 2019 at 11:08 pm #18203
    mbrsolution
    Moderator

    Hi, thank you for reporting this issue. I have submitted a message to the developers to investigate further your findings.

    Kind regards

    May 12, 2019 at 6:31 am #18205
    admin
    Keymaster

    It is best for you to send us the updated translation file so we can add that to the plugin. The other file you are referring to was sent to us by another user who is still using it. So in my opinion, it is better to add a new one for this scenario. We will send you an email so you can reply to it and send us your translation file.

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy