[wp-meta] [Making WordPress.org] #1269: Theme Directory - localize update date

Making WordPress.org noreply at wordpress.org
Wed Dec 16 12:36:03 UTC 2015


#1269: Theme Directory - localize update date
---------------------+-----------------------------
  Reporter:  ramiy   |      Owner:
      Type:  defect  |     Status:  new
  Priority:  normal  |  Component:  Theme Directory
Resolution:          |   Keywords:  has-patch
---------------------+-----------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:10 ocean90]:
 > Again, this is a JavaScript template. That's why we let JavaScript
 handle the date format. Not sure why it doesn't work in your Chrome.

 It doesn't work for me either. It loads in Russian, but then changes to
 English, probably because my browser UI is set to English.

 It does work if I switch the browser UI to Russian. I guess it's OK, but
 seems inconsistent with the plugin directory.

 Also, when JavaScript is disabled, it's hardcoded to use the `F j, Y`
 format, which is not suitable for languages with declensions (#WP11226).
 "Декабрь 6, 2015" is not correct Russian, "6 декабря 2015" is. That's why
 we generally use `d.m.Y` instead of `F j, Y`.

 Ideally, I'd like to switch to `human_time_diff()`, as we did for plugin
 directory in #1270. But I guess it would be tricky, because it involves
 either adding a field in that format to the API, or performing an
 additional request. Recreating the function in JavaScript doesn't seem
 feasible either, because we need `_n()` to work.

 Could we at least commit [attachment:meta-1269.2.patch] to benefit from
 [WP35517] when JS is disabled? :)

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1269#comment:11>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list