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: Compatibility, Custom Work
This topic contains 7 replies, has 2 voices.
Last updated by Waqas Bin Hasan 1 year, 9 months ago.
Assisted by: Waqas Bin Hasan.
Author | Posts |
---|---|
July 25, 2023 at 9:13 pm #14098907 | |
marcD-48 |
Hello, I use Elementor Pro with the Hello Elementor theme and I need help in translating date fields in forms I created using the Elementor Form widget. I have fields where the user needs to input dates that on the Main Language show as F j, Y and the secondary language show as j F, Y. Problem I have is the following, when in the field, the calendar that displays shows the day and month in the main language (English). For example, if you go to hidden link and click into the field Date de fondation de l'entreprise *, you will see that the month comes up as July and the day's abbreviations are all in English... I followed the instructions on https://wpml.org/documentation/getting-started-guide/translating-your-sites-date-format-using-wpml/ as well as gone into the WP/Settings/General (both English and French) to make sure the date formats are correct and they are. Also cleared the cache (WPML and WPFC) but nothing seems to work. Please advise what I need to do to translate the months and days in the calendar. Thank-you in advance, Cheers, Marc |
July 26, 2023 at 9:39 am #14101841 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hello Marc, Thank you for contacting the support. Since you've already tried https://wpml.org/documentation/getting-started-guide/translating-your-sites-date-format-using-wpml/, did you also try for month and day names in Admin strings (just like date_format)? Secondly, is this a standard widget of Elementor? I see it is an Elementor Form. Can you please write down some steps to reproduce the issue? so I can try in my local site. Please let me know. Regards. |
July 26, 2023 at 3:18 pm #14105461 | |
marcD-48 |
Hello Sir, Yes, it's the standard Elementor Pro Form widget. When putting the widget on the page, the only thing you need to do is create a field and set it as "Date" (As per my initial message, I have it as HTML5 disabled). That's it. When you move into the field, a calendar will automatically appear. As far as looking for the months and day names and translating them. I've done that and than cleared both the WPML and WPFC cache. As you can see if you go to hidden link and click in the field "Date de fondation de l'entreprise", it didn't change anything. I've tried every combination of seraches I can think of to find other Month and Day strings but, as far as I can tell, I've translated all of them and yet... Cheers, Marc |
July 27, 2023 at 10:02 am #14109467 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for trying that and for the details. May I ask for admin access to your website to check the issue in detail? You can create a separate admin user for this purpose, which can be deleted afterwards. Also provide detailed steps to reproduce the issue and links to pages in admin and on frontend. Remember to take full backup of your website and database before proceeding. However, a staging/test site is highly recommended, because I may need to try some changes/fixes on the site (including plugins & themes deactivation), which may cause conflicts with the live site otherwise. Please confirm it in your next reply or let me know if you do not agree with the mentioned. I've set your next reply as private to share this information safely. IMPORTANT: If you don't see the section for providing access information, do not write in the message box or the information may appear as public. See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security. |
July 27, 2023 at 1:49 pm #14111261 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for providing the access and the details, I am working on it and 'll update you accordingly. |
July 28, 2023 at 7:51 am #14115181 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience and cooperation. I am still working on it and trying to reproduce in a separate fresh installation. So if it needs some compatibility fix, we can look into this accordingly. It 'll take some time and I'll try my best to update you by Monday at earliest. Have a great weekend in the meanwhile. |
July 31, 2023 at 7:23 am #14124381 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience and cooperation. I've reproduced the issue in a separate fresh sandbox site and consulting with my team. I'll get back to you as soon as possible. |
July 31, 2023 at 7:58 am #14124583 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for waiting. I've checked our system and this seems to involve so much custom coding solution, which is out of scope of our forums. Elementor uses "flatpickr" library for these date pickers and all the strings are hardcoded in /wp-content/plugins/elementor/assets/lib/flatpickr/flatpickr.min.js. It is advised to contact the Elementor support and say that it's not possible to translate the calendar strings in any way, because they are hardcoded in the the above mentioned file. This has, however, already been reported and they suggested:
You can also try this alternative method: hidden link - there are some locales already available: hidden link But of course, you need some custom work to deal with these kinds of things. If you need additional custom work, we recommend you contact WPML Contractors at https://wpml.org/contractors/. |
July 31, 2023 at 1:12 pm #14127651 | |
marcD-48 |
Thank-you for your assistance. I'll be contacting Elementor and devise a solution based on the links your provided. Cheers, Marc |