Hi!
My blog is in Dutch. I am using Dutch translations and I’ve set the language of the front of the blog to Dutch as well.
However, there remains some English on the archive pages.
See here for an example -> https://www.fuckdiestudieschuld.nl/2019/10/
The name of the month is in English.
Any idea how I can change that?
Thanks!
Maaike
Hello !
On our side it appears that everything is in order. Please make sure that you have deleted your cache: https://www.screencast.com/t/4f3XDWybv
Thank you !
Everything is not in order. the website shows ‘October’. That is not Dutch. It should be oktober (with a k and without a capital).
(I’m talking about the title page, not about the meta information, by the way.)
-
This reply was modified 6 years by
maaikewind.
Hello !
Please contact us via email at contact@tagdiv.com and provide the following:
– admin url and credentials
– cPanel url and credentials
– A link to this topic in order to identify you
Our team will take a look !
Thank you !
Isn’t there a way for me to fix this myself? That way I learn to tweak the theme myself, I would like that. And maybe someone else who has the same problem can read your explanation and fix it themselves too?
I found the problem. It’s in tdb_state_date.php file of cloud library (includes/state/date). Using DateTime function you cannot use the setlocale that bring the one you specify in WordPress. So I have changed it like this:
function set_wp_query( $wp_query ) {
setlocale(LC_TIME, get_locale());
parent::set_wp_query( $wp_query );
$this->date_wp_query = $this->get_wp_query();
$this->current_year = $this->date_wp_query->query_vars['year'];
if ( $this->date_wp_query->is_month ) {
$monthNum = $this->date_wp_query->query_vars['monthnum'];
//$dateObj = DateTime::createFromFormat('!m', $monthNum);
//$this->current_month = $dateObj->format('F');
$this->current_month = strftime("%B", mktime(0, 0, 0, $monthNum , date("d"), date("Y")));
$this->current_month_num = $monthNum;
}
if ( $this->date_wp_query->is_day ) {
$monthNum = $this->date_wp_query->query_vars['monthnum'];
//$dateObj = DateTime::createFromFormat('!m', $monthNum);
$this->current_month_num = $monthNum;
//$this->current_month = $dateObj->format('M');
$this->current_month = strftime("%B", mktime(0, 0, 0, $monthNum , date("d"), date("Y")));
$this->current_day = $this->date_wp_query->query_vars['day'];
}
}
the commented lines are the original ones.
I have also changed the $data_array[‘title’] assignments just to better represent the dates for italian people. For this part maybe you havce to add some options in the layout editor.
I’ve just mailed you my login information. I hope you can help. Thanks!