Loading...
 
 Error
  • Elasticsearch flush error: Validation Failed: 1: id is too long, must be no longer than 512 bytes but was: 722;2: id is too long, must be no longer than 512 bytes but was: 519;
 Error
  • The search index could not be updated. The site is misconfigured. Contact an administrator.
    Validation Failed: 1: id is too long, must be no longer than 512 bytes but was: 722;2: id is too long, must be no longer than 512 bytes but was: 519;
Development

Development


date_format

posts: 2 China

Although date format can be changed in Preference, but if a site needs to support multiple languages, it's difficult to select an appropriate common format for all languages. So I think it's better to enable translation of date format by language.php. I added tra() call in get_long_date_format() and get_short_date_format(), it works. But is it a right way?