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 925a127 commit 6cd4c67
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions includes/class-wcpdf-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -784,8 +784,16 @@ public function output_number_date_edit_fields( object $document, array $data =
$document_title = $document->get_title();

$data = array(
'number' => array( 'label' => $document_title . ' ' . __( 'Number', 'woocommerce-pdf-invoices-packing-slips' ) . ':' ),
'date' => array( 'label' => $document_title . ' ' . __( 'Date', 'woocommerce-pdf-invoices-packing-slips' ) . ':' ),
'number' => array( 'label' => sprintf(
/* translators: %s: Document type */
__( '%s Number', 'woocommerce-pdf-invoices-packing-slips' ),
$document_title
) . ':' ),
'date' => array( 'label' => sprintf(
/* translators: %s: Document type */
__( '%s Date', 'woocommerce-pdf-invoices-packing-slips' ),
$document_title
) . ':' ),
);

if ( 'invoice' === $document->get_type() ) {
Expand Down

0 comments on commit 6cd4c67

Please sign in to comment.