This thread is resolved. Here is a description of the problem and solution.
Problem:
The client needed to update the date format for French to match the format 'le 20 février 2024' but changes made in the admin strings were not taking effect.
Solution:
We recommended manually translating the date format using the Advanced Translation Editor and provided the correct format to use. The client should enter the following format in the translation editor:
\l\e d F Y
Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If the issue persists, we encourage you to open a new support ticket. We also highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please contact us through the WPML support forum.
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
This topic contains 15 replies, has 2 voices.
Last updated by Andreas W. 1 year, 3 months ago.
Assisted by: Andreas W..
Author | Posts |
---|---|
February 27, 2024 at 5:39 pm #15350585 | |
nathalieM-5 |
Hi - I'm trying to find where I can update the format of the date for French. In the screenshot below, it explains how the date should be shown in French: English: February 20, 2024 This is the post: hidden link I tried to update the admin strings but this didn't do anything (screenshot #2). Can you please help? |
February 27, 2024 at 10:12 pm #15351507 | |
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, It looks as if you are using a Divi Template and a Divi Page Builder Widget, which means that the format would need to get translated with the WPML Translation Editor when translating the template. Please try to search for the format by using the text search field on the top left of the WPML Advanced Translation Editor. If you can not find the date format this way, then please let me know the name of the Divi Widget that you are using and I will try to create a config for making this date format translatable. As far as I understand, this is the default Divi "Title" widget, correct? Best regards |
February 28, 2024 at 3:52 pm #15354877 | |
nathalieM-5 |
Ah! THAT's where I needed to modify the date format - in the divi widget for "Title". I updated the format - any way to add "le" in front of the date? As an fyi, I don't have the option to open the translator in Divi builder (see screenshot 1)...I had to by click on "showing content in: French" then build the template (screenshot 2). |
February 28, 2024 at 10:33 pm #15356006 | |
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Yes, this is correct. I can offer to have a look into this and try to create a custom XML config that allows to translation of the date format on the WPML Translation Editor. I have created a test site with WPML and Divi and I would like to ask you to recreate the same template with the same widgets. One-Click-Login: You can also simply import your Divi template. Let me know on this ticket once you are done with this task. |
February 29, 2024 at 11:51 am #15357629 | |
nathalieM-5 |
Hi Andreas - I have imported the template in the Divi Builder. Let me know if you need anything else from me. Thanks! |
February 29, 2024 at 5:36 pm #15359940 | |
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Please add the following XML markup to WPML > Settings > Custom XML Configruation: <wpml-config> <shortcodes> <shortcode> <tag>et_pb_fullwidth_post_title</tag> <attributes> <attribute>meta_date</attribute> </attributes> </shortcode> </shortcodes> </wpml-config> Now, edit the post title widget on your custom body template by adding a blank space behind the date format. Save the template. Go to WPML Translation Management and create a job for the template, then translate it at WPML > Translations. The date format will not show up right away. You will need to use the text search field on the top left and search it, then translate it. See screenshot. Please give this a test and let me know if this worked out. If so, then I will escalate the issue to our compatibility team, so that they will update the config for Divi. |
February 29, 2024 at 6:12 pm #15360146 | |
nathalieM-5 |
Quick question: how do I "create a job for the template" in WPML Translation Management? I'v never gone this far into this before... |
February 29, 2024 at 6:56 pm #15360227 | |
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Go to WPML Translation Management > Dashboard. On the top left you see a dropdown filter that lets you filter by post type. Select here "Body Template". Then mark your template in the list and at the bottom of the page create a job for a manul translation. Then access the translation at WPML > Translations. It is explained here with some screenshots: |
March 1, 2024 at 1:05 am #15360804 | |
nathalieM-5 |
hmmmm...okay, in screenshot #3, I've inserted the space in module in the body template. In screenshot #4: I'm not sure what to put in that field to search for the date? I've tried "d" and "f" (4) and I'm not sure what I should be looking for here but I don't see anything familiar... Could you please explain that part? Thank you! |
March 1, 2024 at 6:01 pm #15364471 | |
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Thank you for your message and the screenshots. Please edit the original custom body template in Divi and make a small edit to the date format field of your Post Title Blog. See screenshot. After that, access the translation and search for: F d, Y Translate it to you needs for example for German I would use: d. F Y which results in 30. Januar 2024 |
March 1, 2024 at 6:55 pm #15364554 | |
nathalieM-5 |
I'm sorry but now I'm confused...in your response dated Feb. 29 @ 5:36pm, you mentioned "Now, edit the post title widget on your custom body template by adding a blank space behind the date format. Save the template." Isn't this what I was supposed to do per my screenshot #3? I have figured out the right format for French but would like to add the article "le" in front of the date: English: February 20, 2024 When I search for "F d,Y" - nothing comes up (screenshot #5)...by the way, the search bar doesn't seem to allow capital letters... I appreciate your help. |
March 1, 2024 at 7:20 pm #15364716 | |
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further. You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it. IMPORTANT The private response form looks like this: Next time you reply, click "I still need assistance." Video: Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form. Best regards |
March 1, 2024 at 8:07 pm #15364790 | |
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
My apologies. Search for the letter "f" should be sufficient. See screenshot. Also, take note that there are two custom body templates registered in Translation Management. I translated now the untranslated one, which had the date format available. Seems you were translating the wrong template. Take note, that you can not use "le" inside this date format, as those letters are reserved for the format. "le" inside the date format will print: "mardiAmerica/Toronto" The other template seems to be not the one from your blog page. |
March 1, 2024 at 8:10 pm #15364808 | |
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Seems the translation from the Advanced Translation Editor is not taking effect on your posts. I suggest you translate this manually and use the following format. This version escapes the letters and you will achieve your desired result: \l\e d F Y |
March 1, 2024 at 8:35 pm #15364950 | |
nathalieM-5 |
THAT did the trick!! Yes, I noticed putting "le" inside the date format printed strange. The blackslash helped! Thank you so much! Should I remove this part? <wpml-config> |