This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 8 replies, has 2 voices.
Last updated by Yvette 4 years, 10 months ago.
Assisted by: Yvette.
Author | Posts |
---|---|
August 27, 2020 at 8:57 pm #6889371 | |
fredrikK-7 |
Hi, I am simply looking for a string that I cannot find. It belongs to "Woocommerce Subscriptions". Said string is "This subscription is set to renew automatically using your payment method on file. You can manage or cancel this subscription from your my account page". The problem is I can't find it via search or going through strings manually. The particular string is a piece of text Woo Subscriptions inserts into order and order paid emails. As you can see in the screenshot, I have been able to translate everything else. I have updated and fetched the plugin strings a few times. I have been able to translate other Woocommerce strings as well. I have reached out to Woo Subscriptions and asked them the same. They gave me this answer: "It looks like this string was added to WooCommerce Subscriptions .po file version 3.0.5 (2 versions ago) but maybe WPML is using an older version of the plugin so you don't see it. The link to my site is: hidden link many thanks, Fred |
August 28, 2020 at 2:14 pm #6894943 | |
Yvette Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Paris (GMT+02:00) |
Hello I´ll be helping you with this issue. 1. Temporary Access to your system |
August 31, 2020 at 7:48 am #6904267 | |
Yvette Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Paris (GMT+02:00) |
Hello I see the strings and I´m not sure why they will not register. My suspicion is with the way they are is localized as plurals. 1. Sandbox site URL: hidden link Please notify me when this is done. Thanks |
August 31, 2020 at 8:28 am #6904791 | |
fredrikK-7 |
Hi Yvette, I now uploaded the plugin to your demo site. best regards, Fred |
August 31, 2020 at 8:32 am #6904801 | |
fredrikK-7 |
I uploaded the woo subscription string but could not find the string in demo site when searching for "This subscription is set to renew automatically using your payment method on file. You can manage or cancel this subscription from your my account page" or "this subscription" |
August 31, 2020 at 8:40 am #6904941 | |
Yvette Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Paris (GMT+02:00) |
Great - thank you. Yes, I can now escalate this to the compatibility team who can surely give you a workaround. |
August 31, 2020 at 8:51 am #6904991 | |
Yvette Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Paris (GMT+02:00) |
Escalated |
September 4, 2020 at 8:10 am #6940859 | |
fredrikK-7 |
Hi Yvette, I am unsure what the next step is - and what expectations I can have from "escalation". We are opening the site to a thousand non-english users next week and would like to solve this as soon we can. Do you think we can expect a solution to this issue and in what time? thanks for you help, cheers, Fred |
September 4, 2020 at 10:15 am #6941833 | |
Yvette Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Paris (GMT+02:00) |
I have news. It seems that the comment inside _n() makes that text unable to be registered in our String Translation table.. We have a workaround to offer. Could you please try this and let us know if it works? File: woocomerce-subscriptions/templates/emails/plain/subscription-info.php Change Lines 51 - 57 FROM: echo wp_kses_post( sprintf( _n( // Translators: Placeholder is the My Account URL. 'This subscription is set to renew automatically using your payment method on file. You can manage or cancel this subscription from your my account page. %s', 'These subscriptions are set to renew automatically using your payment method on file. You can manage or cancel your subscriptions from your my account page. %s', count( $subscriptions ), 'woocommerce-subscriptions' ), $my_account_url ) ); To: // Translators: Placeholder is the My Account URL. echo wp_kses_post( sprintf( _n( 'This subscription is set to renew automatically using your payment method on file. You can manage or cancel this subscription from your my account page. %s', 'These subscriptions are set to renew automatically using your payment method on file. You can manage or cancel your subscriptions from your my account page. %s', count( $subscriptions ), 'woocommerce-subscriptions' ), $my_account_url ) ); and printf( '<small>%s</small>', wp_kses_post( sprintf( _n( // Translators: Placeholders are opening and closing My Account link tags. 'This subscription is set to renew automatically using your payment method on file. You can manage or cancel this subscription from your %smy account page%s.', 'These subscriptions are set to renew automatically using your payment method on file. You can manage or cancel your subscriptions from your %smy account page%s.', count( $subscriptions ), 'woocommerce-subscriptions' ), '<a href="' . $my_account_url . '">', '</a>' ) ) ); To: // Translators: Placeholders are opening and closing My Account link tags. printf( '<small>%s</small>', wp_kses_post( sprintf( _n( 'This subscription is set to renew automatically using your payment method on file. You can manage or cancel this subscription from your %smy account page%s.', 'These subscriptions are set to renew automatically using your payment method on file. You can manage or cancel your subscriptions from your %smy account page%s.', count( $subscriptions ), 'woocommerce-subscriptions' ), '<a href="' . $my_account_url . '">', '</a>' ) ) ); This will make those strings show up in ST after scanning the plugin again. |