Simple Membership Plugin › Forums › Simple Membership Plugin › Need to translate "Already a member of this level" but I can't find it in Loco
Tagged: translation, update membership
- This topic has 9 replies, 4 voices, and was last updated 6 years, 1 month ago by
Marta.
-
AuthorPosts
-
August 12, 2019 at 10:44 am #18727
Marta
ParticipantHi,
Could you please make “Already a member of this level” translatable? I can’t find it in Loco.
I have a page where pre-registered users can choose their membership:
Initially, they have a free membership which is just a “first-step” to get registered.
Then, they are redirected to this page, where they can choose either the “official” free membership or one of the paid ones.
Later, they can come back to this page to choose a different membership.
So, as I’m testing:
– When a user chooses a membership, and later they come back to this page to choose a different one, the place where the button to access their current membership is, reads: “Already a member of this level”.
I need that to be in my language.
Thanks,
MartaAugust 12, 2019 at 11:07 pm #18733mbrsolution
ModeratorHi Marta, just to clarify your issue further. Can you share the URL to the page they can sign up for a different membership level? Or is this page protected? If it is protected can you share a screen capture that shows the string not translated.
Also can you share the settings enabled for this under Advanced Settings or Ajustes avanzados.
Thank you
August 13, 2019 at 3:45 pm #18739Marta
ParticipantHi, the page is totally protected.
Here’s a pic: drive.google.com/open?id=1BrgYiyc8kktPaXpD4vj3C9BT61fZ9etk.
This is a place where the user will come back to choose another membership. There are three memberships, once they are registered with a free-just-for-register membership.
Here, they have chosen the free membership, which is Pobladora. There was a button there, they pressed it and they were redirected to their membership account. Then, after a while, they decided to come back to this page, and choose a paid membership, like Maestra. So, now they can see that.
That text, should be in Spanish, but I can’t translated it.
Now, about my advanced settings: 0 means not activated and 1 means activated:
– 1
– Blank
– Blank
– 1
– https://… (my homepage)
– 0
– 0
– 1
– 1
– Do not delete
– Admin
– 1
– Blank
– 1
– Registro inicial
– Activated
– 1
– https://… my term and conditions
– 1
– https://… my privacy policyI hope this helps. If not, I can open the access to that page. It’s everything on a staging site at the moment.
Kind regards,
August 13, 2019 at 10:18 pm #18743mbrsolution
ModeratorHi, what shortcodes have you added in this page in question?
Regards
August 16, 2019 at 4:03 pm #18760Marta
ParticipantHi,
Apologies for the delay.
The one which is showing this sentence in English is:
[swpm_update_level_to level=”3″ button_text=”Gratis” redirect_to=”https://test.mujeressentadasencirculo.org/tu-cuenta/”%5D
Now, in case it’s useful to you, in this page I’m also using:
[swpm_payment_button id=6275 button_text=”Suscríbete por 19,99 € /mes”]
[swpm_protected for=”2″ do_not_show_protected_msg=”1″]
[swpm_protected for=”3-4-5-6″ do_not_show_protected_msg=”1″]
[swpm_protected for=”3-4-5-6″ do_not_show_protected_msg=”1″]
August 16, 2019 at 11:05 pm #18762mbrsolution
ModeratorHi, I have double and triple check and I cannot find the message “Already a member of this level”. I followed your instructions using partially protected addon with similar shortcodes and I always get the correct message.
I have submitted a message to the developers to investigate further your issue.
Kind regards
August 17, 2019 at 7:34 am #18764Marta
ParticipantWhat is the correct message you always get?
For me it’s not that “Already a member of this level” is incorrect, but it’s in English, and I want to translate it.
Thanks for submitting a message to the developers… That sentence obviously comes from your plugin, so it has to be somewhere. It’s just placed on the update membership button place. Have you check the code for that button?
Kind regards,
MartaAugust 18, 2019 at 1:19 am #18779admin
KeymasterI have added that message to the POT file of the core plugin (so you can translate it). You may need to regenerate the POT file of your language. If you look in the POT file of your language, do you see that message there?
August 19, 2019 at 6:19 am #18783Anonymous
InactiveThe phrase you want to translate has been added to the pot file most recently and is not yet in the Spanish po file. When you check the po file with the plugin “loco translate” you get the impression the po has been translated to 100%. That’s true for the phrases included in the po file, but unfortunately the po file contains only 411 rows and the pot file contains 607 rows. Meaning only 67% of the rows of pot file have been translated in Spanish.
If you want to translate phrases, poedit (https://poedit.net/) is a great tool to use. If you want to include the phrase you want to translate, I suggest you use poedit.
Download these files from your website: simple-membership-es_ES.po, simple-membership-es_ES.mo and simple-membership.pot. Open the po file with poedit. Click on Catalogue and then on “Update from pot”. You should see now a lot of rows not being translated yet. You will now find the phrase you are looking for. Once you’re done, save the files and upload the po and the mo files to your website.
In case poedit can’t open the pot file and you get an error message, you need to do the following, using the “Loco translate” plugin. Find SWMP under Plugins, click on translate and then open the pot file (do NOT open the po file) Make a minor change anywhere, for instance add space and the delete it in one of the rows and then save the pot file, which is basically unchanged. (Make sure you do not click on “sync.”) After you saved the pot file, download it and use this pot file to update the po file with poedit. This should work.
Keep in mind your po and mo files get replaced when you update SWMP. You need to upload your po and mo files after an update again.
August 19, 2019 at 5:15 pm #18787Marta
ParticipantHi,
This is solved! Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.