3

I want my my entire site on English, but the dates to be on other language.

I tried to set PHP local like this:

setlocale(LC_ALL, 'he');

Setting my whole website to the another language from admin panel does change the time language as well, but as I said I don't want this.. Any ideas how to accomplish that ?

  • Where do you want to time to display in the new language? Only on the front-end, or in all admin screens as well? – Slam Jun 8 '18 at 7:04
  • Only in the front end of the site, Still didn't found the write way. Of course I can search for the English words and replace them with my lang manually but that is not optimal. – Daniel Iliaguev Jun 8 '18 at 16:24
  • Don't forget about date_i18n developer.wordpress.org/reference/functions/date_i18n – rzepak Jan 26 at 11:53
0

It sounds like you want to create a multilingual site; even if you aren't displaying multiple languages on the admin side, it sounds like you want one language in the backend and another on the frontend.

You might want to check out WPBeginner's article on multi-language WordPress.

If all you are changing is the date language, and you are comfortable editing template, then you can alter the date displays alone using PHP.

0

You can change the global site language under Settings > General, but then edit your user account to set the admin language to whatever you want for your user account. For more info reference https://wptavern.com/wordpress-4-7-to-introduce-user-specific-language-setting-for-the-admin

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.