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.

This topic contains 4 replies, has 2 voices.

Last updated by Carlos Rojas 1 year, 8 months ago.

Assisted by: Carlos Rojas.

Author Posts
August 15, 2023 at 12:21 pm #14202909

viktorB-17

Hello my question is how to translate the default woocommerce pages or functions - for example the my Account page.

When I translate the Website to the default German version everything works fine and the My Account page is automatically in German. hidden link

See screenshots.
But then I also want to have a page called Austria -at which I have also mapped to German.
But when I create the My Account page - its in english hidden link

See screenshot.

How can I make it that hidden link is also treated as a german site? so all the default woocommerce functions pages etc. are treated as a german website?

I also cann ot find where to translate it manually.

Please help 🙂

Best,

Viktor

Screenshot 2023-08-15 141411.png
Screenshot 2023-08-15 141353.png
August 15, 2023 at 1:25 pm #14203257

viktorB-17

Okay I have figured out how to do it manually which takes a long time.

I had to load all the strings from the theme and woocommerce and then you can for example translate Accountdetails to Kontodetails manually.

See screenshot.

But in the default german version everything is already automatically in german on the account page.

how can I also do that for Swiss and Austrian translation?

thanks! 🙂

translated account details to konto details.png
german automatically correct translations.png
Austria only manual translation.png
August 16, 2023 at 11:16 am #14208941

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hello,
Thank you for contacting us

These automatic translations appear because German is within the translations in WordPress and Woocommerce, however, it seems that Austrian German and Swiss German are not. In this case, to save some time (and assuming most of the words are the same) you can export the .po files containing the translations of Woocommerce in German and import them back as Austrian and Swiss German in WPML -> String Translation -> Export/Import section in the bottom right.

Regards,
Carlos

August 16, 2023 at 11:51 am #14209223

viktorB-17

Hey Carlos,

thank you so much for the reply.

However I dont fully understand how to do it correctly.

When i check the string translations. German does not have a translation but on the frontend its already corrctly translated - see example screen shots.

I have tried to use export/ import the woocommerce po file.
But im not sure i did it correctly.

I was reading through other guides and discussions here on wpml forum but i do not understand how i can upload the german file and add it to the austrian or swiss translation (basically identical)

I am looking forward to hearing from you.

Best,

Viktor

no translation in string translation.png
front end string is translated correctly.png
August 16, 2023 at 1:00 pm #14235909

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi Viktor,

In this case, you have two options:
1.- Go to WPML -> String Translation -> Search a few of the strings that are already translated to German -> Remember the domains of the strings and then export those domains in the bottom right section
- After that, you just need to import these .po files back in the same section and make sure you select the correct languages

2.- Another workaround will be to find the .mo/.po files of the languages folder within the wp-content directory -> Duplicate the files that belong to the strings in German for Woocommerce and rename them to the language code you created for Austrian and Swiss.
- Then go to WPML -> Theme and plugins localization -> Scan Woocommerce again

Cheers!