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 Sean 1 year, 9 months ago.
Assisted by: Dražen.
Author | Posts |
---|---|
June 30, 2023 at 5:41 pm #13925271 | |
Sean |
Tell us what you are trying to do? Translate the title of the widget Is there any documentation that you are following? Not really, still looking for relevant docs. Is there a similar example that we can see? No, don't think so. What is the link to your site? hidden link For a while now we have been using the legacy widget for WordPress Popular Posts, the title of which was successfully translated. Recently the plugin author said he was discontinuing the legacy widget and we needed to switch to the new block based widget. So we did. Problem is we can't seem to find where to translate the title, which should read 'Popular Recipes' in English, then 'Populaire Recepten' in Dutch. This widget appears in 4 places; the posts/recipes side bar, every category page, the homepage and the search results page. We have looked in string translations, but what I think we see there is the strings of the old legacy Popular Posts widget. No matter what we do, we can't seem to translate the new block widget title. |
July 3, 2023 at 7:12 am #13930331 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+02:00) |
Hello, thanks for contacting us. Please try the next approach as per our docs: 1) Try adding different blocks for each language: 2) Search for the widget via String translation > admin text option: 3) If you are adding block widget to pages, they need to be translated when translating pages: - https://wpml.org/documentation/getting-started-guide/translating-widgets/#translating-widget-blocks Let me know how it goes and if it helps. Regards, |
July 6, 2023 at 8:31 am #13956469 | |
Sean |
Thank you for the reply. I am really sorry, but I am only just getting around to trying these things now. I will leave this page open to remind me to update this topic as soon as I can, hopefully by the end of today. |
July 6, 2023 at 9:08 am #13956829 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+02:00) |
Hello, sure, no worries, take your time. Feel free to let me know if you get stuck or have any doubts or questions. Regards, |
July 6, 2023 at 3:24 pm #13961701 | |
Sean |
Hi there, We've tried everything, but we just can't seem to find the string. At least we've been running this translated site for over 3 years now, so you think we'd know what we're doing. It's probably something small. Although one theory I have is that we are maybe seeing old strings from other widgets or something. We have tried refreshing/updating strings that still need translating, but to no avail. At the end of the day, it is just one small heading that I'm fairly sure no one really pays attention to anyway because the respective words in Dutch and English are very similar. I'm also pretty sure it won't hurt our rankings either and people will still share the recipes. I guess I'm just a stickler for these kinds of details. Ok, I might just mark this ticket 'resolved' and we can get on with other things in the meantime. I might come back to this later. Many thanks for your time. Sean H. |
July 7, 2023 at 8:10 pm #13970131 | |
Subash Chandra Poudel |
Hi Sean, I am Subash and I will be helping you here since Drazen is currently away. I see you use Sitegorund Optimizer plugin, can you please clear all caches on the site then update the widget with a small change in the widget text then see if you can find the title for translation? If you want, I will be happy to look into the issue closer for you. I have enabled the private reply for you to share the site details ( wp-admin and FTP ) securely. IMPORTANT: Please take a complete backup of the site first to avoid data loss. ✙ I would additionally need your permission to make a copy of the site with plugins like Duplicator and deploy it in my local machine to test the issue further. Regards, |
July 8, 2023 at 9:39 am #13971153 | |
Sean |
Hi Subash, Thanks for getting in touch. Yes, I have flushed all caches, both browser and server as well as bypassed the SiteGround CDN, doesn't help. I can give you access, but it would have to be to an existing separate staging version of the site as we are actively working on the main site and are not too keen to have someone else in there, at this time. The site is also currently very busy and we don't want to take unnecessary risks, as already mentioned, this is not a big issue at all, so I had almost forgotten about it. Just let me know if you would like access to a staging copy. I would however need to set up an ftp account as I don't normally use such. Let me know if you would need that too. Kind Regards, Sean Hodge. |
July 8, 2023 at 7:02 pm #13971903 | |
Subash Chandra Poudel |
Hi Sean, Thank you for the updates. Sure, can you please setup a staging site with the same issue replicated then share the site access credentials ( wp-admin ) through the private reply that I have enabled for you? Also, please let me know the exact location where I can find the widget with the issue. Screenshot or link will help. IMPORTANT: Please take a complete backup of the site first to avoid data loss. ✙ I would additionally need your permission to make a copy of the site with plugins like Duplicator and deploy it in my local machine to test the issue further. |
July 8, 2023 at 9:33 pm #13972017 | |
Sean |
Hi, Here are 2 screenshots which should show what I'm talking about. We have found the other widget titles to translate, but this one not. Regards, Sean H. |
July 8, 2023 at 9:46 pm #13972067 | |
Sean |
One more screenshot, in the widget area: |
July 10, 2023 at 6:44 am #13974399 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+02:00) |
Hello, thanks for your patience. It is working fine and these are steps that I have done: - Changed widget title to Popular Recipes EN, so I know which one is related Please check. Regards, |
July 11, 2023 at 12:04 pm #14014339 | |
Sean |
We tried, and found one of the 3, but it is still very complicated to translate what should be something very simple, a widget title. So, we have instead cheated and just used a word that is the same in both languages, 'Trending'. So thanks again for the help. Marking this topic as resolved, sort of. |
July 11, 2023 at 12:08 pm #14014403 | |
Sean |
* |