Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 -
- 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 -

Supporter timezone: Europe/Madrid (GMT+01:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Carlos Rojas 9 hours, 50 minutes ago.

Assisted by: Carlos Rojas.

Author Posts
November 7, 2024 at 11:14 am #16376581

markusS-78

Background of the issue:
I am trying to change the button label from 'Book now' to 'Add to Cart' and translate this to German ('Zum Warenkorb hinzufügen') using Woocommerce Bookings. I edited the functions.php to change the button label and added a text domain 'doras-cheesecake'. I used the WPML translation function and scanned the theme for strings. It found the string 'Add to Cart', and I added the German translation.

Symptoms:
The German translation doesn't show up on any of the products. It always says 'Add to Cart'.

Questions:
Is there anything else I've forgotten?
Why doesn't the German translation show up on the products?

November 7, 2024 at 11:45 am #16376871

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hello,
Thank you for contacting us

Although this scenario is considered custom coding and falls outside of the scope of our support service, I will be more than happy to take a look at the issue.

1.- Please share the code you added in functions.php to change the button label.

2.- Also, I would need to access the site in order to reproduce the issue. I have set your next answer private so you can securely share the access credentials.

Please don't forget to create a full backup of the site before sharing the credentials.

Looking forward to your message.
Regards,
Carlos