Alexandre Maciel
asked 4 years ago

Hi!

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

tks!

1 Answers
DominicStaff
answered 4 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!

alemaciel
replied 4 years ago

Thank you, Dominic. Perfect!

Powered by DW Question & Answer Pro