[wp-trac] [WordPress Trac] #18495: human_time_diff() localization

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 23 12:27:19 UTC 2011


#18495: human_time_diff() localization
--------------------------+------------------------------
 Reporter:  pavelevap     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  I18N          |     Version:  3.2.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:   => has-patch


Comment:

 Replying to [comment:3 pavelevap]:
 > it is not possible to change "5 days" to "5 days ago" in bbPress

 In the admin, it says "5 days ago" in the Fresness column, so I didn't
 notice at first that it says "5 days" on the frontend.


 > I will try to use ngettext hook to change it

 There's `bbp_get_topic_freshness_link` filter, which can be more
 appropriate.

 > But generally, it would be helpfull to have for example optional
 parameter (or something else) to use human_time_diff() in different ways.

 [attachment:18495.patch] adds a filter for `human_time_diff()`.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18495#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list