sgel
Forum Replies Created
-
@andrewza
Thank you for your reply.I checked source code. There is no definition the text ONLY “The price for membership is”. Is Filter hook available?
https://github.com/strangerstudios/paid-memberships-pro/blob/master/includes/functions.phpAs for the logged-in text, Of course I’ve already found and set translation text in PO file, but it doesn’t reflect to live page so I asked.
Translation settings(Loco Translate)
https://prnt.sc/1qixhry
Live page
https://prnt.sc/1qixinjI’m sorry to keep bothering you, but please answer the details of how to write the filter hook for pmpro_level_cost_text and issue about the logged-in text.
Regards,
Did you find the cause of this issue?
In addition to the text “The price for membership is”, the text The same issue occurs in the sentence “You are logged in as “USERNAME”. If you would like to use a different account for this membership, log out now.
For these two strings that cannot be translated in the po file, please tell me how to change them.
Since this site is already open to the public, I would appreciate a reply as soon as possible.
Thank you.I found the text “The price for membership is” in membershiplevels.php and rewrite it, but doesn’t reflect on live page.
<td>
<?php if(pmpro_isLevelFree($level)) { ?>
<?php _e(‘FREE’, ‘paid-memberships-pro’ );?>
<?php } else { ?>
<?php echo str_replace( ‘The price for membership is’, ”, pmpro_getLevelCost($level)); ?>
<?php } ?>
</td>What do I need to rewrite to fix the text “The price for membership is” that shows at the case of free membership?
I’m waiting for your reply. Thank you.
Hello @andrewza
Thank you for your reply.
I mean missing the string ONLY “The price for membership is”.That is showed in membership registration page.
https://prnt.sc/1hhpukdI’ve already found and set Japanese the strings INCLUDING “The price for membership is” which you said.
https://prnt.sc/1hhr7vmBut the original English “The price for membership is” in the registration page remains.
Where is this text reflected?
Additional info;
Loco Translate shows the message below.
This bundle’s configuration has been automatically detected, but isn’t fully complete.
3 files can’t be matched to a known set of strings
Is it possible to provide XML for the missing files?
Hello Kim,
Thank you for your prompt reply.
I’ve got it.