Skip to content

Commit

Permalink
Fix translation of labels
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamadNateqi committed Jul 9, 2024
1 parent 6cd4c67 commit 6849117
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions includes/class-wcpdf-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -798,9 +798,21 @@ public function output_number_date_edit_fields( object $document, array $data =

if ( 'invoice' === $document->get_type() ) {
$data = array_merge( $data, array(
'display_date' => array( 'label' => $document_title . ' ' . __( 'Display date', 'woocommerce-pdf-invoices-packing-slips' ) . ':' ),
'creation_trigger' => array( 'label' => $document_title . ' ' . __( 'Created via', 'woocommerce-pdf-invoices-packing-slips' ) . ':' ),
'notes' => array( 'label' => $document_title . ' ' . __( 'Notes (printed in the invoice)', 'woocommerce-pdf-invoices-packing-slips' ) . ':' ),
'display_date' => array( 'label' => sprintf(
/* translators: %s: Document type */
__( '%s Display date', 'woocommerce-pdf-invoices-packing-slips' ),
$document_title
) . ':' ),
'creation_trigger' => array( 'label' => sprintf(
/* translators: %s: Document type */
__( '%s Created via', 'woocommerce-pdf-invoices-packing-slips' ),
$document_title
) . ':' ),
'notes' => array( 'label' => sprintf(
/* translators: %s: Document type */
__( '%s Notes (printed in the invoice)', 'woocommerce-pdf-invoices-packing-slips' ),
$document_title
) . ':' ),
) );
}
}
Expand Down

0 comments on commit 6849117

Please sign in to comment.