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.

S2mbr & WPML-string not found for translation

Home Forums Community Forum S2mbr & WPML-string not found for translation

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

Topic Author Topic
Posted: Tuesday Jul 24th, 2012 at 12:46 pm #20092
Frank Epton
Username: franclin

I’ve done a string search but “Con­firm Cancellation” is not found within WPML string translation on this page:

http://ccarts.ca/fr/annuler-labonnement/

Is there an s2member page I can open and edit so that it is found by WPML?

I’ve also sent a request to WPML to see if there is a way to re-index or search for the string again.

List Of Topic Replies

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Wednesday Jul 25th, 2012 at 2:59 am #20158

Hi Frank.

I searched the files and found that string in the s2member.pot file, line 3928. \s2member\includes\translations\s2member.pot

#: s2member-pro/includes/templates/forms/authnet-cancellation-form.php:30
#: s2member-pro/includes/templates/forms/paypal-cancellation-form.php:30
msgctxt "s2member-front"
msgid "Confirm Cancellation"
msgstr ""
Posted: Monday Jul 30th, 2012 at 4:40 pm #20703
Frank Epton
Username: franclin

Thanks Cristián.
I’ve looked at the .pot file and at the response from WPML. Unfortunately I don’t see how the two relate.

WPML wants me to make sure that the string is wrapped in …

wrapped in a GetText function call e.g
if string is

<input type="submit" value=" ” />

Please see more here
http://wpml.org/2009/05/wordpress-theme-localization/

Posted: Tuesday Jul 31st, 2012 at 7:14 am #20769

s2Member uses [hilite mono]_x[/hilite] for that string, which is a standard function for internationalization in WordPress. http://codex.wordpress.org/I18n_for_WordPress_Developers#Disambiguation_by_context

From paypal-cancellation-form.php:
[hilite pre_code]

[/hilite]

Posted: Friday Aug 3rd, 2012 at 2:32 pm #21130
Frank Epton
Username: franclin

Thanks Cristián,

Other Strings have shown up in the String Translation tab using “Select strings within context: plugin s2member” but many items on the form are still english. including

I’ve looked at the file and you are correct; it should be detectable by WPML. I’m in touch with WPML as well to see why this string is not being detected.

Posted: Tuesday Aug 7th, 2012 at 3:38 am #21328

Okay. Please let me know when you hear back from them. I hope it’s easy to fix. :)

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