Translations on archive pages

Posted in: Newspaper
Post count: 109

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

Post count: 18283

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 !

Post count: 109

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

Post count: 18283

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 !

Post count: 109

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?

Post count: 18283

Hello !

We will have to inspect and see what needs to be done. After finding the problem we will gladly let you know how to fix it yourself.

Thank you !

Post count: 3

I have the same issue, and even if i choose not to use cloud templates and edit archive.php file it doesn’t show anything on archive pages.

Post count: 3

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.

Post count: 109

I’ve just mailed you my login information. I hope you can help. Thanks!

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.