Skip to content

The incorrect text is displayed in the PDF attachment in the email when the plugin is translated to Chinese language. #386

@priyanka-tychesoftwares

Description

@priyanka-tychesoftwares

Prerequisites

  • I have carried out troubleshooting steps and I believe I have found a bug.
  • I have searched for similar bugs in both open and closed issues and cannot find a duplicate.

Describe the bug

The incorrect text is displayed in the PDF attachment in the email when the plugin is translated to Chinese language. The translation is done using the Loco Translate plugin.

Steps to reproduce

  1. Install & activate the Loco Translate plugin.

  2. Go to Loco Translate -> Home -> Click on the Print Invoice & Delivery Notes plugin -> Select "Chinese (Taiwan)" language there.

  3. Translate our plugin strings to Chinese language using the Google translator.

  4. Please click on the "Save" button each time when adding the translation for the string. Then click on the "Check" and "Sync" buttons present there.

  5. Select the "Email to attachment" option present in the "Templates" tab.

  6. Change the site language to shown in this screenshot:
    2024-10-04_15-08-30

  7. Then, place an order for the product and you will receive the PDF in the order email. If you open that invoice PDF, you will notice the incorrect text displayed there.
    translated-pdf

Expected behavior

The translated text should be displayed in the PDF attached to the email.

WordPress Environment

Isolating the problem

  • I have deactivated other plugins and confirmed this bug occurs when only our plugin is active.
  • This bug happens with a default WordPress theme active, or Storefront.
  • I can reproduce this bug consistently using the steps above.

Additional field

https://support.tychesoftwares.com/conversation/3762?folder_id=15

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions