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 |
---|---|---|---|---|---|---|
10:00 – 14:00 | 10:00 – 14:00 | 10:00 – 14:00 | 10:00 – 14:00 | 10:00 – 14:00 | - | - |
16:00 – 20:00 | 16:00 – 20:00 | 16:00 – 20:00 | 16:00 – 20:00 | 16:00 – 20:00 | - | - |
Supporter timezone: Asia/Jerusalem (GMT+03:00)
Tagged: Compatibility
This topic contains 6 replies, has 2 voices.
Last updated by Itamar 11 months, 1 week ago.
Assisted by: Itamar.
Author | Posts |
---|---|
June 26, 2024 at 1:55 pm | |
sophiaB-2 |
Background of the issue: I've also tried setting wpml_cf_preferences to 3, and even 2. If I set it to 2, the value of the radio button shows to be translated (series, course, doc, mooc) and not the label. And that is what is showing up on the site (in English) on the translated page. The strings do appear in String Translation and have been translated but the label doesn't show. Symptoms: Questions: |
June 26, 2024 at 2:32 pm | |
June 27, 2024 at 9:59 am #15842603 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, I'll continue to help you with this issue. I can see the problem on your site. Please see the attached screenshot problem-on-the-front-end.jpg. However, I'm wondering why only DOC is shown for the left button, and for the two other buttons, only SERIES is shown. This inconsistency does not make sense to me. You said that you translated it in Strings Translation. But there, I only see "Video Series" translated. I don't see "Documentary Series" translated. Please see the attached screenshot video-series-trans.jpg. I wonder where the translation of "Documentary Series" is? I can see the "Our Latest Video Series" section when I edit the homepage (hidden link). Please see the attached screenshot Our Latest Video Series.jpg. But I don't understand how you present the buttons on the front end. Or in other words, how did you design the layout of the front end, and where is it possible to edit it? I also suspect that you are facing the following known issue. Does the above issue seem related to you? I'll wait for your reply. Regards, |
June 27, 2024 at 10:11 am #15842813 | |
sophiaB-2 |
That is not an inconsistency. This is a category. The first video is in the "Documentary Series" category (slug=doc) and the second two are in the Video Series category (slug=video). The problem is not in the difference, it is that it shows the slug and not the actual name. Documentary Series was translated on the live site but maybe it wasn't at the point which I recloned this site to staging. I have since rescanned the theme for strings and translated it. Nothing changes. The only way I could see to fix this is to remove the slugs and use only the labels in my code and then set translation preferences to "translate". 'key' => 'field_video_series_category', Then I could manually translate each category along with the rest of the text in the page. I tested this on my development server and it works, but ideally I would like to be able to use String Translation so as to have to do this only once. I also tried setting the choices this way but leaving the wpml preferences to copy or copy once. Neither took the string translation into account and translated the category on the German page. Done this way, the full label is shown but always in English. |
June 28, 2024 at 11:25 am #15851444 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, and thanks for your explanations. However, I'm still waiting for answers for te following subjects and questions I presented n my previous reply. I can see the "Our Latest Video Series" section when I edit the homepage (hidden link). Please see the attached screenshot Our Latest Video Series.jpg. But I don't understand how you present the buttons on the front end. Or in other words, how did you design the layout of the front end, and where is it possible to edit it? I also suspect that you are facing the following known issue. Does the above issue seem related to you? Regards, |
June 28, 2024 at 1:04 pm #15852124 | |
sophiaB-2 |
The relationship field just pulls in pages. The relationship field is called "cards". I then use the post_object to get the page information: foreach ($cards as $post_id) : $post_object = get_post($post_id); $category = get_field('category'); The $category is this button and just grabbed from the custom field category that is part of the page. You can find this in the theme under here: /inc/acf/render/blocks/block-video-series.php I aware of that issue. Since I use PHP and not JSON I found a workaround here: This is quite a cumbersome workaround but I went in and did this and set all those system fields to copy. This has worked for everything else, so it would seem odd if this issue was related. |
June 30, 2024 at 3:06 pm #15862649 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Timezone: Asia/Jerusalem (GMT+03:00) |
Thanks for all the information you provided. I'm consulting our second-tier supporters about this issue. I'll update you here once I have news from them. I appreciate your patience. |
July 7, 2024 at 12:32 pm #15907249 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, I'm sorry for the late reply here. We need to investigate this issue further. Please allow me to take a copy of your site. I must install a plugin like Duplicator or All In One Migration for this. Please let me know if you agree. DO you agree to the above? Thanks, |
The topic ‘[Closed] Translating the Labels on Radio Buttons created with ACF’ is closed to new replies.