Skip Navigation

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.

This topic contains 21 replies, has 2 voices.

Last updated by Waqas Bin Hasan 8 months, 4 weeks ago.

Assisted by: Waqas Bin Hasan.

Author Posts
October 4, 2024 at 10:23 am #16253369

greenY

Hi Waqas,

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.

October 4, 2024 at 1:01 pm #16254287

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates. I'll check again and 'll get back to you on Monday.

October 7, 2024 at 7:58 am #16259309

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 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.

Screenshot 2024-10-07 125852.jpg
Screenshot 2024-10-07 125830.jpg
Screenshot 2024-10-07 125809.jpg
screenshot-ke2b_mystagingwebsite_com-2024_10_07-12_56_00.png
Screenshot 2024-10-07 125459.jpg
Screenshot 2024-10-07 125449.jpg
October 9, 2024 at 6:10 pm #16271973

greenY

Hi Waqas,

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.

What do you think?

October 10, 2024 at 9:29 am #16273786

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Sure, take your time and let me know when ready.

October 15, 2024 at 10:50 am #16290075

greenY

Hi Waqas,

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).

1. single_blog_post_hero_meta_updated_date_date_format
2. single_blog_post_hero_meta_post_date_date_format

Since my default date format is the same as my custom date, and either can be translated, I’ve set them to the default date format.

Would be simpler and more efficient for the website? I’m not sure about that.

At least I think it should be fine if I need a custom date format that is different from the default date someday.

October 15, 2024 at 12:49 pm #16290774

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

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.