Skip to:

Opened 13 years ago

Closed 13 years ago

#3149 closed enhancement (duplicate)

International Date format for XProfile fields

Reported by: dhoppe's profile dhoppe Owned by:
Milestone: 1.5 Priority: normal
Severity: Version: 1.5
Component: Extended Profile Keywords: i10n, multilingual, date, format


In the function "bp_format_time" in bp-core/bp-core-templatetags.php (line 826) the format of the dates of the member profiles is hard coded to 'F j, Y '.

$date = date( 'F j, Y ', $time_offset );

If you change this line to

$date = date( _x('F j, Y', 'buddypress'), $time_offset );

the date could be formated within the language file. This would be great! :)

Change History (4)

#1 in reply to: ↑ description @dhoppe
13 years ago

Same problem with the time value in the same function:

$time = date( ' g:ia', $time_offset );

Should be changed to:

$time = date( _x('g:ia', 'buddypress'), $time_offset );

#2 @boonebgorges
13 years ago

Really, shouldn't this be inherited from the Date Format at Dashboard > Settings? Then we don't need to worry about translations.

#3 @cnorris23
13 years ago

@boonegorges It is that way on trunk, but not on the 1.2 branch.

@backie You should be patching against trunk. The 1.2 branch is only receiving major bug and security fixes.

#4 @DJPaul
13 years ago

  • Milestone changed from Awaiting Review to 1.3
  • Resolution set to duplicate
  • Status changed from new to closed

Already fixed in trunk, like cnorris23 says. Duplicate of #845

Note: See TracTickets for help on using tickets.