Simple Membership Plugin › Forums › Simple Membership Plugin › Translation not working
Tagged: translation
- This topic has 11 replies, 2 voices, and was last updated 5 years, 4 months ago by
mbrsolution.
-
AuthorPosts
-
April 27, 2020 at 9:59 pm #20186
belisards
ParticipantHi, I have issues with the translation of [swpm_login_form]
My default WordPress language is already set for Portuguese and the plugins backend is translated, but some frontend strings are still in english. I used LocoTranslator to check the .PO/.MO file and the texts seems to be already translated, but the translations it not being applied for some reason. What could I do?
April 28, 2020 at 4:16 am #20189mbrsolution
ModeratorHi, can you share a screen capture illustrating the strings that are not translated? Or send me the URL with the login form page, so that I can check.
Thank you
April 28, 2020 at 3:23 pm #20195belisards
ParticipantSure: [escoladedados.org/membership-login]
Look at “Forgot your password” for instance.
April 28, 2020 at 9:53 pm #20197mbrsolution
ModeratorHi,
Can you make sure that the po and mo files in the following locations yoursite.com/wp-content/plugins/simple-membership/languages/ and yoursite.com/wp-content/languages/plugins/ are the same.
Let me know if the above helps you.
Thank you
April 28, 2020 at 10:52 pm #20200belisards
ParticipantI had no PO/MO files from Simple-Membership at wp-content/languages/plugins
And inside wp-content/plugins/simple-membership/languages/ I had all the languages available. I tried to copy the PO/MO files in Portuguese (Pt-BR) from this folder to the first one, ensuring they have the same owner and permissions. However, the parts of the frontend text are still in English.
April 28, 2020 at 11:49 pm #20201mbrsolution
ModeratorCan you confirm the string/s in question are translated into Portuguese in the po files in both locations? Also can you share the full name of the po and mo files added in both locations in your site?
Thank you
April 29, 2020 at 12:39 am #20202belisards
ParticipantThe translation seems to be ok inside the PO file.
I ran this command:
cat plugins/simple-membership/languages/simple-membership-pt_BR.po | grep Forgot -C 2
And I got:
#: views/login.php:24
msgid “Forgot Password”
msgstr “Esqueceu sua senha”I got the same result for the command below with the another file since they are the same.
cat languages/plugins/simple-membership-pt_BR.po | grep Forgot -C 2
April 29, 2020 at 1:22 am #20204mbrsolution
ModeratorHi, check to make sure this is not related to a cache issue.
Regards
April 29, 2020 at 1:39 am #20205belisards
ParticipantIt is not. The [swpm_login_form] in the URL that I sent is in portuguese for you?
What location is actually used by the plugin to load the PO/MO files? How could I check which translation file are active?
April 29, 2020 at 1:54 am #20206mbrsolution
ModeratorHi, I just carried out a test in my Spanish dev site and it is correctly translating the Forgot Password field in Spanish for me. There is something in your site that is preventing this. Unfortunately I can’t reproduce this issue in my end.
What location is actually used by the plugin to load the PO/MO files? How could I check which translation file are active?
In order to prevent an issue from ever happening, I always make sure that both areas have the same po and mo files.
Kind regards
May 12, 2020 at 8:36 pm #20247belisards
ParticipantThe problem is not just with this string. All frontend labels are in english, but the plugin settings in the backend has the language that I want (Portuguese). I tried to update the plugin, but it does not work as well.
May 12, 2020 at 9:41 pm #20248mbrsolution
ModeratorHi, unfortunately I can’t reproduce this issue in my end with the Spanish language. I have submitted a message to the developers to investigate further your issue.
Thank you
-
AuthorPosts
- You must be logged in to reply to this topic.