[buddypress-trac] [BuddyPress Trac] #6436: Untranslated date on admin Activity UI - missing i18n
buddypress-trac
noreply at wordpress.org
Thu May 14 19:31:23 UTC 2015
#6436: Untranslated date on admin Activity UI - missing i18n
---------------------------+-----------------------------
Reporter: danbp | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: Awaiting Review
Component: Locale - i18n | Version: 2.2.3
Severity: normal | Keywords: has-patch
---------------------------+-----------------------------
In french, the date looks like this on the admin activity page
Soumis le '''14 May 2015''' à 18 h 15 min
Soumis le '''5 February 201'''5 à 3 h 20 min
etc...
To solve the problem, I replaced in bp-activity-admin.php:1531
{{{printf( __( 'Submitted on <a href="%1$s">%2$s at %3$s</a>',
'buddypress' ), bp_activity_get_permalink( $item['id'] ),
get_date_from_gmt( $item['date_recorded'], get_option( 'date_format' ) ),
get_date_from_gmt( $item['date_recorded'], get_option( 'time_format' ) )
);}}}
by
{{{printf( __( 'Submitted on <a href="%1$s">%2$s at %3$s</a>',
'buddypress' ), bp_activity_get_permalink( $item['id'] ), date_i18n(
get_option( 'date_format' ) , strtotime( $item['date_recorded'] ) ),
get_date_from_gmt( $item['date_recorded'], get_option( 'time_format' ) )
);}}}
Not sure if it's the best, but at least, it is working.
Digged a bit on Trac before posting and found #5781 - in case of.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6436>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list