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.

S2 Profile form not completely translatable

Home Forums Community Forum S2 Profile form not completely translatable

This topic contains 12 replies, has 2 voices. Last updated by  Cristián Lávaque 3 years, 6 months ago.

Topic Author Topic
Posted: Wednesday Jun 5th, 2013 at 3:43 am #51395

Hi,

I use the “[s2Member-Profile /]” shortcode on my website which I have translated into german.

But two fields do not show the translated strings but the original english ones:

Username and Password titles:

I have places the file “s2member-de_DE.mo” into the plugin directory and it seems to work (except for the mentioned strings).

How do I solve this?

List Of Topic Replies

Viewing 12 replies - 1 through 12 (of 12 total)
Author Replies
Author Replies
Posted: Thursday Jun 6th, 2013 at 5:39 am #51468

I see both strings in the s2member.pot file, did you translate them there? s2member\includes\translations\s2member.pot

Posted: Thursday Jun 6th, 2013 at 8:04 am #51485

Hi Cristian,

yes, I translated both strings. But the translation is not applied.

This is from my po-file:

#: s2member/includes/classes/profile-in.inc.php:78
#: s2member/includes/classes/sc-profile-in.inc.php:94
#, fuzzy
msgctxt “s2member-front”
msgid “(cannot be changed)”
msgstr “( kann nicht geändert werden )”

#: s2member/includes/classes/profile-in.inc.php:234
#: s2member/includes/classes/sc-profile-in.inc.php:250
#, fuzzy
msgctxt “s2member-front”
msgid “(please type it twice)”
msgstr “( bitte zweimal eingeben )”

Posted: Thursday Jun 6th, 2013 at 8:14 am #51486

I have found additional places where “please type it twice” is used but not declared in the po file:

\s2member\includes\classes\profile-in.inc.php (1 hits)

Line 234: echo ‘‘ . _x (“New Password?”, “s2member-front”, “s2member”) . ‘ ‘ . _x (“(please type it twice)”, “s2member-front”, “s2member”) . ‘
‘ . “\n”;

\s2member\includes\classes\sc-profile-in.inc.php (1 hits)

Line 250: echo ‘‘ . _x (“New Password?”, “s2member-front”, “s2member”) . ‘ ‘ . _x (“(please type it twice)”, “s2member-front”, “s2member”) . ‘
‘ . “\n”;

Could this be the problem?

Posted: Friday Jun 7th, 2013 at 5:28 am #51581

I don’t think that’s the problem, but I’m not sure what is…

You can try this hack to complement your translations file:

Create this dir/file: /wp-content/mu-plugins/s2hacks.php
See: Knowledge Base » Hacking s2Member® Via Hooks/Filters

[hilite pre_code]
Posted: Friday Jun 7th, 2013 at 11:15 am #51612

Ok, this has worked.

But could you please issue a bug report since I have translated the strings in the mo-file but it is not displayed properly. Thanks!

Best
Alex

Posted: Saturday Jun 8th, 2013 at 6:01 am #51663

I’m glad that helped. :)

Sure, I’ll pass it on to Jason, but could you please provide a link to download your translation file? I’d like to review and try it to see if I can find what the problem is. Thanks!

Posted: Monday Jun 10th, 2013 at 4:51 am #51711

Sure, here is the download-link:

http://aschne.com/s2m/s2member-de_DE.mo

Posted: Tuesday Jun 11th, 2013 at 2:55 pm #51778

Additional fields that are not translated: (Registration for level 0 in PP Pro form):

#: 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
#, fuzzy
msgctxt “s2member-front”
msgid “Username (lowercase letters and/or numbers)”
msgstr “Benutzername ( Zeichen und/oder Zahlen )”

#: 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
#, fuzzy
msgctxt “s2member-front”
msgid “Password (type this twice please)”
msgstr “Passwort ( bitte zweimal eingeben )”

Posted: Thursday Jun 13th, 2013 at 1:32 am #51846

Sure, here is the download-link:

http://aschne.com/s2m/s2member-de_DE.mo

Thanks! I should have asked for the .po file. Could you share the s2member-de_DE.po file as well so I can read it? I forgot .mo is a binary file. Thanks!

Additional fields that are not translated: (Registration for level 0 in PP Pro form):

Thanks, I’ll tell Jason about these as well. You can use the hack I gave you to take care of these too.

Posted: Thursday Jun 13th, 2013 at 6:36 am #51879

Yes, I again used the hacks-file.

You can just replace the ending and then you can download to po file.

http://aschne.com/s2m/s2member-de_DE.po

Posted: Friday Jun 14th, 2013 at 5:27 am #51927

Cool. Thanks!

Posted: Monday Jun 17th, 2013 at 11:54 pm #52061

Found the problem, it’s because those entries have the “fuzzy” attribute, so they’re being ignored and the original string used instead. http://www.gnu.org/software/gettext/manual/html_node/Fuzzy-Entries.html

Jason updated the documentation in s2Member to warn about these. /s2member/includes/translations/translators.txt

FUZZY translation entries: If you’re updating an existing PO file (e.g. recompiling your MO file after changes in a new release of s2Member); please be sure to manually review any “fuzzy” entries. A fuzzy entry can occur as a result of changes from one release of s2Member (or s2Member Pro) to the next; where small changes in text might render your translation invalid (e.g. fuzzy).

Depending on your PO file editor, fuzzy entries may need to be reviewed and changes committed BEFORE you recompile; otherwise fuzzy entries will revert to their default state in your final MO file. Translations that are fuzzy, are NOT compiled into your final MO file. This can lead to much confusion. Please review any fuzzy entries carefully.

Viewing 12 replies - 1 through 12 (of 12 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.