Simple Membership Plugin › Forums › Simple Membership Plugin › Translation plugin membership registration
Tagged: translation
- This topic has 4 replies, 3 voices, and was last updated 10 years, 1 month ago by
kferrandon.
-
AuthorPosts
-
June 28, 2016 at 2:29 pm #7301
kferrandon
ParticipantHello,
thank you for your plugin.
I would like to inform you that i found an error of translation on your class class.bFrontRegistration.php on line 61 BUtils::_(‘Registration Successful. ‘) you just need to delete the escape at the end.file .po:
#: E:\Portal\Project Material\NetBeans
#: Workspace\simple-membership\simple-membership/classes/class.bAdminRegistration.php:45
#: Workspace\simple-membership\simple-membership/classes/class.bFrontRegistration.php:58
msgid “Registration Successful.”
msgstr “Enregistrement Réussi.”Thank you for next release.
Kevin FERRANDONJune 28, 2016 at 10:28 pm #7306mbrsolution
ModeratorHi, thank you for reporting this but I can’t find the following file you mentioned above.
\simple-membership/classes/class.bFrontRegistration.php
June 30, 2016 at 1:19 pm #7324kferrandon
ParticipantHi,
Sorry i made a mistake.
on line 86:
if ($this->create_swpm_user() && $this->create_wp_user() && $this->send_reg_email()) { do_action('swpm_front_end_registration_complete'); //Keep this action hook for people who are using it (so their implementation doesn't break). do_action('swpm_front_end_registration_complete_user_data', $this->member_info); $login_page_url = SwpmSettings::get_instance()->get_value('login-page-url'); $after_rego_msg = '<div class="swpm-registration-success-msg">' . <strong>SwpmUtils::_('Registration Successful. ')</strong> . SwpmUtils::_('Please') . ' <a href="' . $login_page_url . '">' . SwpmUtils::_('Login') . '</a></div>'; $message = array('succeeded' => true, 'message' => $after_rego_msg); SwpmTransfer::get_instance()->set('status', $message); return; }do you see the escape in strong at the end of the sentence?
I hope it could help you.Kevin
July 1, 2016 at 11:50 am #7334admin
KeymasterThe language file actually has that spacing in there also. So in your translation use that spacing. That spacing is required so there is a space between that phrase and the next word.
If you look at our POT file, you will see that there is a space there. So update your language file accordingly and you should be good.
July 1, 2016 at 12:19 pm #7336kferrandon
ParticipantHello,
Thank you for your help.
I was juste affraid to do that, i thought It will be erase by next update?best regards
Kevin -
AuthorPosts
- You must be logged in to reply to this topic.