- This topic has 26 replies, 2 voices, and was last updated 2 years, 2 months ago by David.
-
AuthorPosts
-
May 24, 2019 at 12:09 am #909389Emmi
Hello,
How can I translate the message displayed when adding item to cart, with the “Display cart panel on add to cart” option checked?
But wait… I just discovered that in the backend live customizer, the cart panel looks different and displays the message in sites language.
Only in frontend the panel message is in english.Did I do something, or is it a bug?
May 24, 2019 at 12:27 am #909395EmmiOh, now I see…
There are 2 different things:
“Display cart panel on add to cart” and a “Success Message” on adding item to cart.So I just need to configure the text for the sticky add to cart panel I suppose.
Am I right?May 24, 2019 at 12:33 am #909397EmmiLol.
And just unchecked the “Display cart panel on add to cart” option, in order to see into action only the “Success Message” on adding item to cart.
But the message is not displayed in frontend, only in customizer.
There is where my confusion came: in customizer, the sticky cart panel on add to cart is not diplayed, only the succes message is.Pfooa… Let me know how can I send some Admin credentials to you, so you can duplicate what I am saying.
May 24, 2019 at 12:41 am #909401DavidStaffCustomer SupportHi there,
just looking at your site, and currently the Success Message is being displayed. And it looks like it is in the correct language. Note: the Success Message only displays on the Single Product.
Let me know.
May 24, 2019 at 12:45 am #909402Emmi🙂 In my customizer, the success message is displayed in the shop page.
I can’t confirm it for the single product page, because the add to cart button seems to be deactivated.May 24, 2019 at 12:55 am #909411DavidStaffCustomer SupportYeah the customizer does some ‘odd’ things – it should and does only display on the single product on the front end.
May 24, 2019 at 12:58 am #909413EmmiYeap. Confusing 🙂
Now, how can I translate / change the text for the sticky panel when adding item to cart?
You can see it displays in english, not default language.May 24, 2019 at 1:01 am #909417DavidStaffCustomer SupportTom is currently looking into this. Which translation plugin are you using?
May 24, 2019 at 1:03 am #909419EmmiI am not using any translation plugin.
It is the first time I need to translate anything on WooCommerce.May 24, 2019 at 1:19 am #909429DavidStaffCustomer SupportThats odd – if you don’t mind i will pass this to Tom as i know he is looking into a similar issue.
May 24, 2019 at 1:34 am #909437EmmiSure, no problem.
Thanks, David!PS: Please let me know…is it odd not to use any translation plugin? 🙂
May 24, 2019 at 1:51 am #909453DavidStaffCustomer Supportthanks – i was just being stupid and assumed a translation plugin was being used lol
May 24, 2019 at 8:09 am #909790TomLead DeveloperLead DeveloperYou’ll likely need to translate that string in your language here: https://translate.generatepress.com/glotpress/projects/gp-premium
Otherwise, you can use a filter to change the text:
add_filter( 'gettext', function( $translated_text ) { if ( 'Item added to cart.' === $translated_text ) { $translated_text = 'Your new text here'; } return $translated_text; } );
May 25, 2019 at 12:01 am #910244EmmiHi, Tom.
My default language is romanian. It is not in this list…
How can it be added?May 25, 2019 at 9:06 am #910591TomLead DeveloperLead DeveloperI’ve just added it. You can sign up to become a translator here: https://translate.generatepress.com/become-a-translator/
Thank you! 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.