This thread is resolved. Here is a description of the problem and solution.
Problem:
The client added a new language for Austria and mapped it to the German language. Most of the site was translated, but the checkout and cart pages were still showing in English, and some strings were not appearing in the 'String translations' tab.
Solution:
We reviewed the String Translation section and located all the static strings for the Cart and Checkout pages. We advised the client to navigate to "WPML > String Translation" and use the search function with the exact match option to find the strings that appear in English on these pages. If found, they can be translated by clicking on the "+" icon under the country flags.
For the strings that were not available for translation, we scanned the WooCommerce plugin through "WPML > Theme and Plugins localization" to make them accessible in the String Translation section. We also advised on how to handle texts with dynamic values by searching for the initial word and retaining placeholders in the translation.
If you're experiencing similar issues, we recommend trying the steps mentioned above. However, please note that the solution might be irrelevant due to being outdated or not applicable to your case. If these steps do not resolve your issue, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket.
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.
Tagged: Documentation request
This topic contains 12 replies, has 3 voices.
Last updated by Prosenjit Barman 8 months, 1 week ago.
Assisted by: Prosenjit Barman.
Author | Posts |
---|---|
April 14, 2024 at 3:02 pm #15516260 | |
nathanO-5 |
Hello, I added a new language for Austria and mapped it to my German language. Everything is translated, but the checkout and cart page are still showing in English. I want this page to also be displayed in German. Can anyone help me with this? |
April 15, 2024 at 6:14 am #15517137 | |
Kor Supporter
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Hello, Thank you for reaching out to WPML support. While you're waiting for one of my colleagues to handle this ticket, let me offer you some initial debugging steps to assist with the issue promptly. 1) Please ensure that you've translated both the cart and checkout pages, following the instructions provided here: https://wpml.org/documentation/related-projects/woocommerce-multilingual/translating-cart-and-checkout-pages/ 2) I recommend testing this with the WP default theme enabled and only with WPML plugins active while all others are disabled. This will help confirm whether the issue stems from any other code or plugin. Let me know if you need further assistance. |
April 15, 2024 at 12:52 pm #15520037 | |
nathanO-5 |
Thank you for your response. I already tried to translate the cart and checkout page manually, but the strings are not showing op in the 'String translation' tab. Also step 2 didn't make any difference. It seems that this problem only occurs with custom languages (Belgium & Austria). With all other languages, these pages do display in the correct language. |
April 16, 2024 at 5:15 am #15522293 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, I have taken over this ticket and would be happy to assist you further in this matter. Please be aware that the WooCommerce Plugin has already been translated into many languages, and translations for the static strings are loaded from the translation files included within the plugin. According to the WooCommerce translation project, 96% of the static content within WooCommerce has been translated into Dutch (Belgium) and about 63% into French (Belgium). However, only 3% has been translated into Austrian German. For more details, you can visit the WooCommerce Translation project here: hidden link It is possible that the static content on the Checkout and Cart pages has not yet been translated into the custom languages you've added, which may explain why the content does not appear properly translated automatically when you switch languages. Please try the following and check if that helps in solving the issue: - Navigate to "WPML > Theme and Plugins Localization." I hope the steps above will help in solving the issue. Please feel free to let me know if you need further assistance in this matter. I will be happy to help. Best regards, |
April 16, 2024 at 1:30 pm #15525672 | |
nathanO-5 |
Hi, thank you for your response. I already tried to scan the Woocommerce plugin, but the text from the checkout/cart page are still not showing up in the String Translation tab. Also I just want that the standard German language is used for the Austria checkout page, because both countries use German as there native language. The same counts for Dutch and Belgium. Is there not just a way to link these languages to each other? That would be a lot easier than manually copy and paste everything. |
April 17, 2024 at 4:57 am #15529008 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi There, I understand what you're asking for, but unfortunately, it's not possible to implement as you might hope. To translate the content on the Cart and Checkout pages, you will need to manually translate them into the desired languages. The scan should identify all the static content on the Checkout and Cart pages and list them in the String Translation interface. Could you please also check whether they are registered for translation by following the instructions provided here: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#translate-admin-and-settings-strings Based on the screenshot, it appears that the checkout and cart pages have been customized. If you continue to experience issues after following the guidelines mentioned in the guide above, could you temporarily disable the 'Coming Soon' mode? This would allow me to review the source of the content directly. Doing so will enable me to more accurately assess the situation and advise you on the next steps. Looking forward to your response and I'll be happy to assist you further in this matter. Best regards, |
April 17, 2024 at 9:36 am #15530531 | |
nathanO-5 |
Even in the 'Admin text translations' tab the strings are not showing up. I remove the coming soon page for you. |
April 17, 2024 at 11:36 am #15531572 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Thank you for the update! I've reviewed the Cart and Checkout page and noticed that most of the content on these pages is being added by the "Porto" theme. Could you please scan the 'Porto' theme following the instructions provided in my previous message (https://wpml.org/forums/topic/checkout-cart-page-of-mapped-language-shows-only-in-english/#post-15522293) and see if that allows you to translate the text? If the issue persists even after that, a closer inspection will be required to understand the root cause of the issue. I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it. Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you. IMPORTANT Looking forward to your response. Best Regards, |
April 18, 2024 at 3:25 am #15535285 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi There, Upon reviewing the String Translation section, I successfully located all the static strings displayed on the Cart and Checkout pages. To verify, I initially translated the 'Cart Totals' string from the Cart page into Austrian and confirmed that the translation is accurately reflected on the Austrian Cart page. Additionally, I translated the 'Product' string found in the Table header of the Cart page, and it also displayed correctly in Austrian on the Cart page. Please refer to the following screenshot for verification: hidden link Furthermore, I translated the 'Billing and Shipping' text from the Checkout page, and it also appeared correctly on the Austrian Checkout page. Please check this screenshot for confirmation: hidden link Navigate to "WPML > String Translation" and use the search function to locate the text that appears in English on the Cart and Checkout pages. For a more precise search, activate the exact match option (hidden link); this will help narrow down the results. If the string is listed in the results, you can then translate it into Austrian and Belgian languages by clicking on the "+" icon located under the respective country flags. I hope it helps. Please feel free to let me know if there is anything else you need help with or require clarification. I will be happy to help. Best regards, |
April 18, 2024 at 1:30 pm #15539072 | |
nathanO-5 |
Thanks for your help. I translated most of the strings, but there are still some strings that not showing up in the 'String translations' tab. Can you find those? |
April 19, 2024 at 3:48 am #15541646 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi There, Glad to hear that the suggestion helped in translating most of the strings. The strings you highlighted in the screenshot are static and should be available for translation under the 'woocommerce' and 'porto' text-domains in String Translation. However, I encountered an issue when trying to access your site to pinpoint the exact location of these strings. I keep receiving this error (hidden link), which prevents me from accessing the site. Could you please check why it is happening? If you're using any SSL plugins or have set any redirection, please deactivate and check again. Let me know when it is fixed so that I can access your site and assist you accordingly. Best regards, |
April 19, 2024 at 9:34 am #15542638 | |
nathanO-5 |
Sorry, we had just transferred our domain to another site. Please use the following domain: woo-sensationally-famous-werewolf.wpcomstaging.com to access the site |
April 22, 2024 at 3:24 am #15547923 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi There, Thank you for the update. After checking, I noticed that some WooCommerce strings were missing from the String Translation section. To address this, I scanned the WooCommerce plugin through "WPML > Theme and Plugins localization." Now, all strings are accessible for translation. You can find and translate these texts in the String Translation section. For texts with dynamic values (e.g., "includes €26.60 VAT estimated for Austria"), simply search for the initial word of the text ("includes" in this case). You should find the text in the results with placeholders (like "includes %1$s estimated for %2$s"). Be sure to retain these placeholders in your translation to ensure the dynamic values are displayed correctly. Please let me know if that helps or if you need further assistance in this matter. I will be happy to help. Best regards, |
April 26, 2024 at 4:32 pm #15571484 | |
nathanO-5 |
Thanks it worked! |