Skip to content

Commit

Permalink
Translations: make the due date output translatable (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
YordanSoares authored Jan 24, 2024
1 parent 1c45abd commit 37c7d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wcpdf-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -1659,7 +1659,7 @@ public function display_due_date( string $document_type = null, $order = null ):
return;
}

$due_date = apply_filters( 'wpo_wcpdf_due_date_display', date( wcpdf_date_format( $this, 'due_date' ), $due_date_timestamp ), $due_date_timestamp, $document_type, $document );
$due_date = apply_filters( 'wpo_wcpdf_due_date_display', date_i18n( wcpdf_date_format( $this, 'due_date' ), $due_date_timestamp ), $due_date_timestamp, $document_type, $document );
$due_date_title = is_callable( array( $document, 'get_due_date_title' ) ) ? $document->get_due_date_title() : __( 'Due Date:', 'woocommerce-pdf-invoices-packing-slips' );

if ( ! empty( $due_date ) ) {
Expand Down

0 comments on commit 37c7d60

Please sign in to comment.