Changeset 1726
- Timestamp:
- 08/28/2009 09:18:19 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core.php
r1723 r1726 952 952 */ 953 953 function bp_core_format_time( $time, $just_date = false ) { 954 $date = date ( "F j, Y ", $time );954 $date = date_i18n( "F j, Y ", $time ); 955 955 956 956 if ( !$just_date ) { 957 $date .= __('at', 'buddypress') . date ( ' g:iA', $time );957 $date .= __('at', 'buddypress') . date_i18n( ' g:iA', $time ); 958 958 } 959 959 -
trunk/bp-core/bp-core-templatetags.php
r1721 r1726 398 398 399 399 function bp_format_time( $time, $just_date = false ) { 400 $date = date ( get_option('date_format'), $time );400 $date = date_i18n( get_option('date_format'), $time ); 401 401 402 402 if ( !$just_date ) { 403 $date .= ' ' . __( 'at', 'buddypress' ) . date ( ' ' . get_option('time_format'), $time );403 $date .= ' ' . __( 'at', 'buddypress' ) . date_i18n( ' ' . get_option('time_format'), $time ); 404 404 } 405 405 -
trunk/bp-groups/bp-groups-templatetags.php
r1719 r1726 590 590 $group =& $groups_template->group; 591 591 592 return apply_filters( 'bp_get_group_date_created', date ( get_option( 'date_format' ), $group->date_created ) );592 return apply_filters( 'bp_get_group_date_created', date_i18n( get_option( 'date_format' ), $group->date_created ) ); 593 593 } 594 594 -
trunk/bp-messages/bp-messages-classes.php
r1689 r1726 511 511 $wpdb->query( $wpdb->prepare( "UPDATE {$bp->messages->table_name_notices} SET is_active = 0 WHERE id != %d", $id ) ); 512 512 513 update_usermeta( $bp->loggedin_user->id, 'last_activity', date ( 'Y-m-d H:i:s' ) );513 update_usermeta( $bp->loggedin_user->id, 'last_activity', date_i18n( 'Y-m-d H:i:s' ) ); 514 514 515 515 do_action( 'messages_notice_after_save', $this ); -
trunk/bp-wire/bp-wire-templatetags.php
r1723 r1726 347 347 } 348 348 function bp_get_wire_poster_date() { 349 return apply_filters( 'bp_get_wire_poster_date', mysql2date( get_blog_option( BP_ROOT_BLOG, 'date_format' ), date ("Y-m-d H:i:s") ) );349 return apply_filters( 'bp_get_wire_poster_date', mysql2date( get_blog_option( BP_ROOT_BLOG, 'date_format' ), date_i18n("Y-m-d H:i:s") ) ); 350 350 } 351 351 -
trunk/bp-xprofile/bp-xprofile-classes.php
r1723 r1726 656 656 $this->field_id = apply_filters( 'xprofile_data_field_id_before_save', $this->field_id, $this->id ); 657 657 $this->value = apply_filters( 'xprofile_data_value_before_save', $this->value, $this->id ); 658 $this->last_updated = apply_filters( 'xprofile_data_last_updated_before_save', date ( 'Y-m-d H:i:s' ), $this->id );658 $this->last_updated = apply_filters( 'xprofile_data_last_updated_before_save', date_i18n( 'Y-m-d H:i:s' ), $this->id ); 659 659 660 660 do_action( 'xprofile_data_before_save', $this ); -
trunk/bp-xprofile/bp-xprofile-templatetags.php
r1695 r1726 433 433 434 434 if ( $field->data->value != '' ) { 435 $day = date ("j", $field->data->value);436 $month = date ("F", $field->data->value);437 $year = date ("Y", $field->data->value);435 $day = date_i18n("j", $field->data->value); 436 $month = date_i18n("F", $field->data->value); 437 $year = date_i18n("Y", $field->data->value); 438 438 $default_select = ' selected="selected"'; 439 439 … … 449 449 } 450 450 451 if ( isset( $_POST['field_' . $field->id . '_year'] ) && $year != date ("j", $_POST['field_' . $field->id . '_year'] ) ) {451 if ( isset( $_POST['field_' . $field->id . '_year'] ) && $year != date_i18n("j", $_POST['field_' . $field->id . '_year'] ) ) { 452 452 if ( !empty( $_POST['field_' . $field->id . '_year'] ) ) 453 453 $year = $_POST['field_' . $field->id . '_year']; … … 492 492 $html .= '<option value=""' . attribute_escape( $default_select ) . '>----</option>'; 493 493 494 for ( $i = date ( 'Y', time() ); $i > 1899; $i-- ) {494 for ( $i = date_i18n( 'Y', time() ); $i > 1899; $i-- ) { 495 495 if ( $year == $i ) { 496 496 $selected = ' selected = "selected"'; -
trunk/bp-xprofile/deprecated/bp-xprofile-deprecated.php
r1643 r1726 337 337 case 'datebox': 338 338 if ( $this->data->value != '' ) { 339 $day = date ("j", $this->data->value);340 $month = date ("F", $this->data->value);341 $year = date ("Y", $this->data->value);339 $day = date_i18n("j", $this->data->value); 340 $month = date_i18n("F", $this->data->value); 341 $year = date_i18n("Y", $this->data->value); 342 342 $default_select = ' selected="selected"'; 343 343 } … … 387 387 $html .= '<option value=""' . attribute_escape( $default_select ) . '>----</option>'; 388 388 389 for ( $i = date ( 'Y', time() ); $i > 1899; $i-- ) {389 for ( $i = date_i18n( 'Y', time() ); $i > 1899; $i-- ) { 390 390 if ( $year == $i ) { 391 391 $selected = ' selected = "selected"';
Note: See TracChangeset
for help on using the changeset viewer.