How to translate date in other language

Posted in: Newspaper
Post count: 2

Hi
post link: http://www.news92.com/?p=183
i install wordpress translation in my native language (urdu) also i install custom font which is working fine… also i use your theme translation which is also working fine..
but theme front-end post date not changing to native translation.
i use help from wordpress forum..
i also try to test
<?php echo date_i18n( 'Y. F j.', strtotime( get_the_time( "Y-m-d" ) ) ); ?>
how to translate wordpress date

Best Regards

Post count: 22421

Hello,

The post date is grabbed by the wordpress date from here: https://www.screencast.com/t/XLraDYk2I
Please read this guide to customize the wp date: https://codex.wordpress.org/Formatting_Date_and_Time

Thank you!

Post count: 2

Thanks Bogdan B.
i tried but its not working..date translate when i change Settings->General->
site language to my native language.. but break site design.. and also change admin language ..which i don’t want

any other thing you may help me in this.. i am here after spent tons of time on this issue

Best Regards

Post count: 22421

Unfortunately This is a wp issue, not theme related. The theme simply grabs the date from WP. It does not offer any other implementation. You will need to search for a custom modification to the WP files to translate just the date and not the entire site language. Unfortunately there is no solution I can provide in this regard

Thank you

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