This thread is resolved. Here is a description of the problem and solution.
Problem:
Printful size guide not translatable
Solution:
https://wpml.org/forums/topic/size-guide-not-appearing-nor-translating-in-french/#post-10833521
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 11 replies, has 2 voices.
Last updated by lydiaM-5 3 years, 5 months ago.
Assisted by: Bruno Kos.
Author | Posts |
---|---|
March 15, 2022 at 1:52 pm #10793869 | |
lydiaM-5 |
Tell us what you are trying to do? You can see that in English, we can see a size guide appearing above the price of the product. When we switch to French, the size guide disappears. Is there any documentation that you are following? nope. You guys have access to the site, can you please change the settings so it appears in French and also gets translated to French? Blessings |
March 16, 2022 at 8:58 am #10800165 | |
Bruno Kos WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+02:00) |
Hi, Thank you for contacting WPML support! We don't have access to your site, as credentials get removed automatically on all the closed tickets/chats. Can you tell me how did you add this "Size Guide" part? Is it part of some plugin or a template (you can send screenshots from the backend on where this is set)? Regards, |
March 16, 2022 at 9:24 am #10800475 | |
lydiaM-5 |
Hey Bruno, It comes from our print on demand supplier. I therefore push them at the same time I push a product from printful. I don't mind giving access to the site again. I believe it went faster to resolve the problem as I am not a technician. |
March 16, 2022 at 10:19 am #10801145 | |
Bruno Kos WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+02:00) |
I marked your next reply as private so that you can safely add credentials. But I will still need details on how is this integrated here, where in the backend do you set this size guide (at least on the original product). |
March 16, 2022 at 11:29 am #10802091 | |
Bruno Kos WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+02:00) |
Thank you for the info - I did this: And it shows now: |
March 16, 2022 at 2:33 pm #10804847 | |
lydiaM-5 |
oki, but the guide is still in English and it is only resolved for one product. Can't you solve it for all products? |
March 16, 2022 at 2:39 pm #10804889 | |
Bruno Kos WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+02:00) |
But where in WordPress is this Size Guide text defined? Did you translate it somewhere? In order to set this for all the products (existing - for new it will work automatically), you can quickly bulk edit them: So just select them like this and click "update", leave everything to "no change" and check translations then. |
March 18, 2022 at 9:33 am #10819739 | |
lydiaM-5 |
I am not the best tech person. The only thing I know is the chart is in the custom field in a product editing mode (pf_size_chart). Still not showing or what I did didn't work: hidden link |
March 18, 2022 at 10:35 am #10820247 | |
Bruno Kos WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+02:00) |
Hi, It appears now, I only updated the original: However note that I cannot reverse engineer your website to find out where is what. Can you ask the person who developed your website to provide us with such information? I also cannot ask for printful credentials to check there because we are not allowed to ask clients for access to external services they use. But this custom field would only carry the information where this size guide will appear, but it will not contain its content. Because even if I set this field the translation of this size guide does not appear anywhere in translation editor so this information is not there. You can either reach site developer or try with a plugin such as https://wordpress.org/plugins/string-locator/ to find where and how this size guide is coded. Perhaps it is within your theme or some plugin or plugin settings or even a popup template or similar. In the meantime update WPML plugins and its addons: Regards, |
March 18, 2022 at 2:22 pm #10823361 | |
lydiaM-5 |
Here is what she is answer: If we are getting some data dynamically through JavaScript by printful API, can we translate that any way? https://wordpress.org/support/topic/the-content-of-size-chart-is-not-translabler/ Ppl with same issue - https://wordpress.org/support/topic/change-name-of-size-chart/ |
March 21, 2022 at 6:21 am #10833521 | |
Bruno Kos WPML Supporter since 12/2018
Languages: English (English ) German (Deutsch ) French (Français ) Timezone: Europe/Zagreb (GMT+02:00) |
Hi, It would seem confirmed even by Printful that this is not possible: In general JavaScript content can be translated through https://developer.wordpress.org/reference/functions/wp_localize_script/, but works only if the such script is reachable through theme or plugin, if it comes to the site on the fly it will not work. I suggest you ask Printful to join our https://wpml.org/documentation/support/go-global-program/ so we could suggest solutions and work with them on full integration. Regards, |