latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Error in Translation Files.

Home Forums Community Forum Error in Translation Files.

This topic contains 8 replies, has 4 voices. Last updated by  Jason (Lead Developer) 3 years, 10 months ago.

Topic Author Topic
Posted: Sunday Feb 17th, 2013 at 6:20 am #42022
Andaluzo
Username: andaluzo

Hi,

in the last update something went wrong.

We had already translated the frase

“Username ( lowercase letters and/or numbers )”
and it was working fine.

It is located in the Paypal Pro Form. But now again it shows up only in english

#: s2member-pro/includes/templates/forms/authnet-checkout-form.php:69
#: s2member-pro/includes/templates/forms/authnet-registration-form.php:50
#: s2member-pro/includes/templates/forms/paypal-checkout-form.php:69
#: s2member-pro/includes/templates/forms/paypal-registration-form.php:50
msgctxt "s2member-front"
msgid "Username ( lowercase letters and/or numbers )"
msgstr "Nombre de usario (minusculas y/o numeros "juan123")"

Can you please give me a solution how to fix this.

Thanks

List Of Topic Replies

Viewing 8 replies - 1 through 8 (of 8 total)
Author Replies
Author Replies
Posted: Sunday Feb 17th, 2013 at 9:08 am #42025
Andaluzo
Username: andaluzo

Found it.

in the paypal-checkout-form.php

line 69 must be changed from

<span><?php echo _x ("Username (lowercase letters and/or numbers)", "s2member-front", "s2member"); ?> *</span><br />

to

<span><?php echo _x ("Username ( lowercase letters and/or numbers )", "s2member-front", "s2member"); ?> *</span><br />

Then it works again ;)

Can you please change that in the source files, so this will not pop up in every update.

Thanks

Posted: Monday Feb 18th, 2013 at 1:17 pm #42296
Ronnie
Username: Zeeflo

It sounds like your editing the Pro Form which is located in the s2memberpro folder.
What you have to do is copy it to your themes folder, and then edit it. Otherwise you will experience it again, when theres a new release of S2member.

You can also use a program like POedit and translate the real language files.
If you do this, then you just have to save your translated POT and MO file as s2member-da_DK.pot/mo if your translation is danish.. It would be en_GB if its british, etc etc.
Those files should then be uploaded to the root of your /plugins dir. This would be a more correct way to translate S2member.

Either way, you should never translate in ANY plugin/wordpress original php file, ever!!

Posted: Monday Feb 18th, 2013 at 1:35 pm #42303
Eduan
Username: Eduan
Moderator

Andaluzo, it seems that this problem is caused because your translation is recognizing a different string.

It’s trying to find the string with the spaces inside the parentheses, but now it doesn’t have them so it doesn’t translate it.

To fix this you need to fix your translation, not s2Member. :)

Posted: Monday Feb 18th, 2013 at 2:37 pm #42311
Andaluzo
Username: andaluzo

Hi Eduan,

that is the Problem, the translation File, which is part of s2member does not reflect the part in the PHP File.

But the translation file comes with s2member snd if you not change it in the source (translation / or PHP File) no one can translate that part.

Have a great day.

Posted: Monday Feb 18th, 2013 at 3:32 pm #42324
Eduan
Username: Eduan
Moderator

Ah I see.
I will report this to Jason. :)

Posted: Monday Feb 18th, 2013 at 3:38 pm #42325
Staff Member

Thanks for the heads up on this thread :-)

The current s2Member POT file (which is updated for each new release of s2Member®), includes the following.

#: s2member-pro/includes/templates/forms/authnet-checkout-form.php:69
#: s2member-pro/includes/templates/forms/authnet-registration-form.php:50
#: s2member-pro/includes/templates/forms/paypal-checkout-form.php:69
#: s2member-pro/includes/templates/forms/paypal-registration-form.php:50
msgctxt "s2member-front"
msgid "Username (lowercase letters and/or numbers)"
msgstr ""

#: s2member-pro/includes/templates/forms/authnet-checkout-form.php:75
#: s2member-pro/includes/templates/forms/authnet-registration-form.php:56
#: s2member-pro/includes/templates/forms/paypal-checkout-form.php:75
#: s2member-pro/includes/templates/forms/paypal-registration-form.php:56
msgctxt "s2member-front"
msgid "Password (type this twice please)"
msgstr ""
Please see my reply here also. Where I discuss this issue specifically.
Posted: Friday Feb 22nd, 2013 at 2:44 am #42785
Andaluzo
Username: andaluzo

With the new Update, this thread can be marked as solved.

(s2Member/s2Member Pro) Feature Enhancement/Emails Adding support for PHP tags in the following emails: New User Notification, Administrative New User Notification, Signup Confirmation Email, Specific Post/Page Confirmation Email. See the relevant sections in your Dashboard for further details. Such as: s2Member® -› General Options -› Email Configuration and s2Member® -› PayPal® Options -› Signup Confirmation Email.

Thanks a lot for keeping up the great work!

One last question. Is there a way to test the email funcuntion, f.ex. trigger the emails to let them send to a specific email (admin)

Thanks

Posted: Friday Feb 22nd, 2013 at 10:24 pm #42890
Staff Member

Thanks for the follow-up :-)

Great! You’re very welcome :-)

One last question. Is there a way to test the email funcuntion, f.ex. trigger the emails to let them send to a specific email (admin)

Currently, the only way to run a test against most emails, is to run a test transaction yourself and watch for the emails to arrive. However, it is possible to BCC yourself on all customer emails if you like. Just add your email address to the list of recipients. Each recipient is sent an email separately, so a customer does not know you received the email too. See: s2Member® -› PayPal® Options -› Signup Confirmation Email -› Recipients

Example:

"%%full_name%%" <%%payer_email%%>; "Webmaster" <webmaster@example.com>
Viewing 8 replies - 1 through 8 (of 8 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.