Home›Support›English Support›[Resolved] The post-time format of posts performed with Blocksy Theme can't be applied to the translation
[Resolved] The post-time format of posts performed with Blocksy Theme can't be applied to the translation
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is using the Blocksy Theme on their WordPress site and has encountered an issue where the post-time format in English ('F j, Y') is not translating correctly to Chinese Traditional ('Y 年 n 月 j 日') for single posts. Despite ensuring all translations related to the time/date format have been applied, the translation only affects the update time, not the post-time.
Solution: We identified that the issue stemmed from the Customizer settings under Blog -> Single Post -> Post Title -> Post Meta. The solution involves ensuring that the theme is updated to the latest version as the Blocksy team has released an update addressing this compatibility issue. Additionally, it is crucial to enable aggressive options for string scan and auto-registration. The client should also check and adjust the date format settings from 'Default' to 'Custom' if necessary, to ensure the translations are registered and appear correctly. If the problem persists on a customized theme, we recommend reinstalling a fresh copy of the theme to eliminate any customization conflicts.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, please visit our support forum at https://wpml.org/forums/ to open a new support ticket. We also highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins.
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.
I’ve activated the parent theme and completed copying the settings from the child theme on the staging site with the temporary login link I provided to you earlier.
Please try it again on the staging site for me.
Thanks.
I was able to find the source of that "update time". It is coming from Customizer -> Blog -> Single Post -> Post Title -> Post Meta.
So I compared my sandbox site and your test site. In my sandbox site it is working fine hidden link based on the translated "date_format" (from admin string's admin_texts_date_format).
While in your test site it isn't.
I'm not sure why it isn't working in your test site, however I suspect customization in the base theme which are somehow not working.
To further check this, I wanted to rename or delete your current Blocksy theme, and then install the fresh copy from Themes -> Add New and check again. So I can verify about any customization.
But unfortunately the restricted access you provided, doesn't allow me to look for theme's source code, as well as, removing/renaming and adding the theme anew.
All screenshots are attached for comparison.
So I'll request again to provide me unrestricted access to your test site, or, reproduce the issue in my sandbox site, so I can then further investigate.
Apparently, in a fresh setup, like my sandbox, there's no such issue and dates are formatted/translated accordingly and correctly.
Thank you so much for the test on the two strings, especially the Updated Date.
I bring the information about the access problem you mentioned into my communications with Blocksy support while emphasizing the key string we need to test again. Here's the reply I've just got as below.
> "I guess we can thank WPML for the confusion caused. 😄 I was able to finally identify the issue and have noted it down on our bug tracker.
I will let you know as soon as I have something."
I think it should be a good idea to wait for the next reply from Blocksy support for a while since it seems they've just figured out something new that will be organized.
The Blocksy team released an updated version of the Blocksy theme including this compatibility fixed.
The Blocksy support has tested the strings work fine on the staging site now.
I also tried the steps on my production site: hidden link
I updated the theme, enabling the aggressive enough options of the string scan and auto-registration, I tried to set the Custom date of the updated date and post date back again on my production site, and then both strings appeared to be checked for the translations (they can't be found and registered when the fields on Custom panel are set to Default formate instead of Custom format).
Thank you for the updates and glad that issue was resolved.
Changing date format to a custom one isn't a problem because there are different formats used across the world and this doesn't put any harm or overhead on the performance.
Since the issue has been resolved, I'll request to close this ticket as resolved and feel free to open a new ticket or chat for anything relating WPML whenever you need more help.