Backslash are not exported correctly for .strings files #7562
Labels
bug
Something is broken.
duplicate
Similar issue or pull request already exists.
translate-toolkit
Issues which need to be fixed in the translate-toolkit
Describe the issue
I have some strings in which I'm using LaTeX, so I have
\
. InLocalizable.strings
files, they need to be escaped as\\
(else they are treated as control chars).My source strings is declared this way:
After translations on weblate, it was exported like this:
So backslash are not escaped correctly!
Note that the same string is present in
strings.xml
files for Android, and it is exported correctly:I already tried
Steps to reproduce the behavior
Import any
Localizable.strings
file with a string containing\\
, translate to another language using weblate, and see the exported string with only\
instead of\\
.Expected behavior
I expected the exported string to contain
\\
, like in the source string, and also like the android xml generated file.Additional context
After inspection, translate/translate#4618 should fix the problem.
The text was updated successfully, but these errors were encountered: