Alexandre Maciel
asked 9 years ago


I am translating to Portuguese-BR this theme. But, i can not find the command to translate the date, that appears partially translated (5 de May de 2015, for example – weeks and months still shows in english).


1 Answers
answered 9 years ago

Hi there,
If you want to translate to Portuguese-BR (Pt-BR) the date, you can do as the following:
Open the functions.php file in the folder path "wp-content -> themes -> dw-focus". Find the line 340.
Replace the following code:
return date( get_option( 'date_format' ), $from );
With new code:
return date_i18n( get_option( 'date_format' ), $from );
Hope this help!

replied 9 years ago

Thank you, Dominic. Perfect!

Powered by DW Question & Answer Pro