Skip to content Skip to sidebar

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

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

This topic contains 5 replies, has 2 voices.

Last updated by Marcel 1 year, 4 months ago.

Assisted by: Marcel.

Author Posts
May 13, 2024 at 10:16 am #15619877

caryY

Hello WPML team,

I am using woocommerce + Shoptimizer theme, Shoptimizer theme has an option to add Video on Product Gallery images as the picture in attachment, it need Youtube, Vimeo or a local media libabry video url. I set up a local media libabry video ur on this option, but this option can't be duplicate automatically or translate automatically by WPML translator.

I can' find this url in WPML advanced translator, or string translator, or setting > Custom Field Translation.
I can find all the text on this consent but doesn't have the URL field to translate.

Can you please help to see how can I duplicate this product video urls to other language?

Appreciate to your help in advanced.

Best Regard
Cary

add video on product gallery images.png
Custom Fields Translation.png
String Translation.png
May 13, 2024 at 4:27 pm #15621869

Marcel
Supporter

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

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

Hi Cary,

so you have this option inside the Theme Customizer; is this correct?

You might need to register them before to appear on the WPML Translation Table.

You have two methods of doing this:

1) Open the "Admin Strings" menu and try to search for the specific string (via a word form it) and register it from there: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#translate-admin-and-settings-strings.

2) If you cannot find the strings, please activate the "Auto register" option below the WPML string translation table and open a page in the front end where the string is visible. WPML will now try to register the getText() call automatically. Then refresh the string translation table and check whether there are any new entries for the strings you are looking for: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#enable-auto-register-strings

Does this work for you?

Best Regards
Marcel

May 14, 2024 at 3:28 am #15623121

caryY

Hello Marcel,

I tried both methods this morning, but neither worked.
However, I realized that even if I could find this field in the String Translation, it wouldn’t be helpful. This is because it is a dynamic field, where each product has its own product video URL, as shown in the GIF I uploaded.
This field needs to be accessible in the WPML Advanced Translator for products, as each WooCommerce product needs to copy its own product video URL in WPML Translation Editor.

Best Regards,
Cary

Recording 2024-05-14 111810 (1).gif
May 14, 2024 at 3:20 pm #15626204

Marcel
Supporter

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

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

Hi Cary,

this content is part of the wp post meta table. Therefore, it has to be translated via the Translation Editor. If it doesn't appear there, then this theme is not supporting WPML, or it's, in general, not prepared for multilingual use.

The authors never applied to get it tested for WPML: https://wpml.org/theme/?wpv_view_count=119967&wpv-theme-category=0&wpv_post_search=Shoptimizer&wpv-wpcf-recommendation-flag=&wpv_filter_submit=Search. I found some known issues and workarounds: https://wpml.org//?s=Shoptimizer.

Feel free to invite them to join our Go-Global program, where we help theme/plugin authors go through our certification process if they need help or info about best coding practices: https://wpml.org/documentation/support/go-global-program/. If they apply, we can help them translate that component via our editor.

If you don't hear back from them, please let me know. Then, we see if a temporary workaround is possible, which you can share with them for integration in their codebase.

Best Regards
Marcel

May 16, 2024 at 2:55 pm #15635923

caryY

Hello Marcel,

I have contacted the theme support, they reply that
“Hi Cary,

Thanks for your email. I've sent your suggestion to our team for Product gallery video link to support WPML translation.

​There's no ETA for when this will be checked and implemented but our team will be notified about this feature request. Thank you also for suggesting this.”

Could you please help to see if I can register this dynamic field and its wp post meta table by myself by creating a wpml-config.xml file according to the fellow documentation?
https://wpml.org/documentation/support/language-configuration-files/

May 16, 2024 at 3:34 pm #15636035

Marcel
Supporter

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

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

Hi Cary,

It seems that this would need a code adjustment using our API. As a temporary workaround, you could deactivate the WPML Translation Editor for the product and replace the URLs manually in the translation editor if this is an option (depending on how many products are affected, of course).

If you create a backup and temporarily deactivate the theme, do you see the WordPress shortcode on the front end? If yes, the XML config might work. Please let me know so I can assist you with this.

Best Regards
Marcel

The topic ‘[Closed] How Can I translate this field as I can't find it in String Translation?’ is closed to new replies.