Simple Membership Plugin › Forums › Simple Membership Plugin › Mixed language content
- This topic has 11 replies, 2 voices, and was last updated 1 year, 3 months ago by
admin.
-
AuthorPosts
-
March 23, 2025 at 6:54 am #30045
TomPtacnik
ParticipantEven though all my settings are set to my site language (Czech) I keep getting mixed content English/Czech.
My correct settings: [photos.app.goo.gl/sEe3L57TMup69E2U8]
Login page: [photos.app.goo.gl/yHG8m4bcvKYZZ6yPA]
I even double checked the *.po file and all the content is translated correctly.
Can you possibly help how to avoid mixed language content?
March 23, 2025 at 6:54 am #30046TomPtacnik
ParticipantEdit: I noticed that some messages do not appear at all. For instance, when requesting a new password, the page does not give me any messages about the length, confirmation etc.
March 23, 2025 at 7:10 am #30054admin
KeymasterThis will be an issue related to that particular language’s language file not having all the translation strings. It most likely needs to be updated.
To verify do the following test:
1) Go to the General Settings menu of WordPress
2) Temporarily switch your langauge to something like Spanish or German (I know that those language files are done correctly).
3) Check the login page to see if the full translation works for those languages or not.
4) This will help determine whether the issue lies with the language file or another cause.The “existing-file-translation-update-steps” section on the following documentation should be helpful:
https://simple-membership-plugin.com/translate-simple-membership-plugin/#existing-file-translation-update-stepsMarch 23, 2025 at 11:11 am #30055TomPtacnik
ParticipantI have performed your suggested test. Everything is showing in German as it is supposed to.
I downloaded simple-membership-de_DE.po and it really differs from the Czech one. Many fields are missing. But even if I update the simple-membership-cs_CZ.po file and update it alongside with simple-membership-cs_CZ.mo, it does not update the language on my site.
Also, for example, the Processing password reset request… sentence is not even present in the German file. So it must be processing it from somewhere else. Btw, this line is not translated in German either.
And when requesting new password, no text is visible either in any language. I would assume a confirmation message or an error should be present.
March 24, 2025 at 6:42 am #30065admin
KeymasterThere are two separate issues here. I’ll clarify them so they can be addressed individually without confusion:
#1) Missing Strings in the Main POT File
The first issue is whether a particular language string shown by our plugin is included in the main Simple Membership plugin’s POT file. For reference, you can view the full POT file here:If a string is missing from the POT file, please let us know, and we will update the file to include it.
For example, I can confirm that the text “Processing password reset request…” is present in the main POT file. If it’s not appearing in a specific language file, it means that file is outdated and needs to be updated.
#2) Incomplete or Outdated Translations
The second issue is whether a particular language file is fully translated. Language files are created and maintained by the community — our team is small and primarily English-speaking, so we rely on user contributions for translations.If a language file is incomplete, users can either update the existing file or create a new translation. We welcome and appreciate any help from the community in keeping these translations up to date.
That said, please focus on one of these items first so I can provide a more targeted and streamlined response for that specific issue.
March 24, 2025 at 4:31 pm #30071TomPtacnik
ParticipantThank you for your detailed reply. I understand #1, there are not any missing string I would need to use.
As to #2, I added the missing strings to the file of my language. However, it is still not showing up.
An example of the added string is
#: views/forgot_password.php:27
msgid “Processing password reset request…”
msgstr “Zpracování žádosti o obnovu hesla…”It also shows correctly in Poedit software. The cache on my website has been purged.
I do not why but the plugin just ignores the updated version of my files simple-membership-cs_CZ.po and simple-membership-cs_CZ.mo.
Additionally, if it helps you find the issue, none of password reset messages is shown at all. They are not present in the original simple-membership-cs_CZ.po. But even after adding them, no messages appear apart from English Processing password reset request…
March 25, 2025 at 6:29 am #30074admin
KeymasterThank you. Let me investigate this a bit more to make sure there is no race condition happening with the language loading for the password reset request form submission. I will get back to you once we get a chance to investigate this further.
March 25, 2025 at 12:15 pm #30075admin
KeymasterWe’ve made some adjustments to the password reset processing order and priority. I’ll be sharing an updated version of the plugin with you so you can test it on your site and see if it works better.
You can download an updated copy of the plugin from our site using the following link.
https://simple-membership-plugin.com/wp-content/uploads/simple-membership.zipIf you want to try this update, first delete the currently active copy of the plugin then upload and activate the above mentioned one. You won’t lose any data (members, payments, buttons, settings etc.) in the process so it is safe to do this.
Let me know if this works better or not. If it doesn’t can you send us your language files so we can test it by setting it up on a test site of ours?
March 26, 2025 at 8:44 pm #30076TomPtacnik
ParticipantThanks a lot. I will try that and let you know it it works.
March 28, 2025 at 9:29 am #30089TomPtacnik
ParticipantUnfortunately, the problem has not been solved. I am attaching the simple-membership-cs_CZ.po and simple-membership-cs_CZ.mo files. I have added only one single translation to illustrate the issue of it not working.
https://drive.google.com/drive/folders/1h9F6SNLpc9PpWBVCyvWV1Jo1hMFLi8Vm?usp=sharing
The added lines are:
#: classes/class.swpm-front-registration.php:219
#: classes/class.swpm-init-time-tasks.php:214
#: classes/class.swpm-utils-misc.php:422 views/login.php:65
msgid “Log In”
msgstr “Přihlásit se”The files have been uploaded to the correct folder replacing original files, the cache on my website has been purged. The log in form still shows the English phrase.
March 29, 2025 at 6:34 am #30092admin
KeymasterCan you please verify that you uploaded those language files to the following directory also?
wp-content/languages/pluginsI uploaded to that directory and did a test with your language, it worked fine for me. See the screenshot here that shows that the “Log In” button is correctly translated to your language:
March 30, 2025 at 9:25 am #30115TomPtacnik
ParticipantYes, the files are uploaded in this folder too. I guess the problem will be somewhere on my side then.
March 31, 2025 at 4:57 am #30120admin
KeymasterA plugin or theme might be affecting how the text domain loads on this WordPress site. Try running a plugin and theme conflict test to check:
https://simple-membership-plugin.com/forums/topic/test-for-plugin-and-theme-conflict-before-posting-an-issue-or-a-bug/ -
AuthorPosts
- You must be logged in to reply to this topic.