- This topic has 2 replies, 2 voices, and was last updated 5 years, 2 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 8.8, bug, date format
Hi,
I tried to translate the month names in upcoming list to german. But I can’t find them in any files. The only place where I found english month names was in class.date.php which is a core file.
Any suggestions?
Kind regards,
Philip
@ Philip
Sorry, that is an oversight on my part. The dates are not translatable. I made the necessary changes for the next update to be released in a couple weeks. If you are able to make a minor change to a PHP file you could apply the change now. Here’s the file you need to edit:
../wp-content/plugins/connections/includes/entry/class.entry-data.php
Change line 3501
from:
return gmdate( $format, $nextUDay );
To this:
return date_i18n( $format, strtotime( gmdate( 'c', $nextUDay ) ) );
This runs the date thru the core WP function which handles the translation of dates.
Hope this helps!
Hi Steven,
thanks for your reply!
I changed line 3771 in function getUpcoming
from:
return date_i18n( $format, strtotime( gmdate( 'r', $nextUDay ) ), TRUE );
to this:
return date_i18n( $format, strtotime( gmdate( 'c', $nextUDay ) ) );
which solved this issue.
Kind regards,
Philip
You must be logged in to reply to this topic.