WeblateOrg / weblate

Web based localization tool with tight version control integration.
https://weblate.org/
GNU General Public License v3.0
4.54k stars 1.01k forks source link

\"xxxxx\" will be convert to "\xxxxx"\ when exporting Arabic strings #12626

Open gs-xpeng opened 1 week ago

gs-xpeng commented 1 week ago

Describe the issue

\"xxxxx\" will be convert to "\xxxxx"\ when exporting Arabic strings

I already tried

Steps to reproduce the behavior

  1. add a new string for Arabic with "نعم (إستعمال "\نعم"\ فقط إذا كان الوسيط يدعم الاجابة 484)"
  2. export the Arabic in customize download , the string will be convert to image "نعم (إستعمال \"نعم\" فقط إذا كان الوسيط يدعم الاجابة 484)"

Expected behavior

the \" should not be convert to "\

Screenshots

No response

Exception traceback

No response

How do you run Weblate?

Docker container

Weblate versions

No response

Weblate deploy checks

No response

Additional context

No response

nijel commented 1 week ago

What file format do you use? What Weblate and translate-toolkit versions do you use?

gs-xpeng commented 1 week ago

What file format do you use? What Weblate and translate-toolkit versions do you use? PO format Weblate 5.6.2 translate-toolkit 3.13.3

nijel commented 1 week ago

In PO format, quotes need to be escaped, so adding a backslash in the file is expected. Where exactly do you observe it?