Per Ahm
asked 7 years ago

Hi,
have read quite a bit of topics about this, but no answers that works.
Hve change days and months in locale.php, but page stille uses english months…
$this->month[’01’] = /* translators: month name */ __(‘Januar’);
is January on the homepage.

3 Answers
DominicStaff
answered 7 years ago
Per Ahm
replied 7 years ago

Thanks – but i really cant find the right things to do… http://billundonline.dk/Months are displayed wrong, some text fiels im trying to translate i cant find, only in the po files, but no changes… all facebook social plugins etc, thinks the page are in english, and we realle need to be in danish 🙂

Dominic Staff
replied 7 years ago

Please tell e detail about the position that you want to translate, please send me a screenshot. I will helps you translate it.

Per Ahm
replied 7 years ago

A couple of files is here:https://dl.dropboxusercontent.com/u/49606755/Picture0001.zip
Months are not in danish, January etc.FB social links – olso things the page are in english, and therefor displays everthings in english…Need a login ?

Per Ahm
replied 7 years ago

Did you have any time yet Dominic?

Cover
answered 7 years ago

Hi there,
If you use Danish translation of wordpress.
To translate date in your site, you can do as the following:
Open file functions.php of dw-focus theme.
Find line 340
Replace the code 

return date( get_option( 'date_format' ), $from );

With:

return date_i18n( get_option( 'date_format' ), $from );

Hope this help!

Per Ahm
replied 7 years ago

Thats the way 🙂 Thanks, its working!

DominicStaff
answered 7 years ago

– I have checked your image, I saw the facebook comment and facebook like section in your site is another plugin, please contact with author plugin to get best support.
– To translate the “Related posts” word, you can open the single.php file in the folder path “wp-content\themes\dw-focus”, then find the line 33.
– To translate date in your site, please refer answer of @cover provided.
Hope this helps !

Per Ahm
replied 7 years ago

Found it changed it, and all works.

Powered by DW Question & Answer Pro