Impossible to generate well formated POT files when a String
with \"
is used
#80004
Labels
Milestone
String
with \"
is used
#80004
Godot version
v4.1.stable.official [9704596]
System information
Godot v4.1.stable - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1050 (NVIDIA; 31.0.15.3667) - Intel(R) Core(TM) i5-8300H CPU @ 2.30GHz (8 Threads)
Issue description
When generating a POT file using Godot Editor, if the
String
contains double quotes, its entry in the POT file will be wrong (see below).Steps to reproduce
Create this script:
And then generate a POT file from it. You will get something like:
The problem cames from the extra double quotes inside the string, they will raise an error when generating a PO file.
A possible solution would be to make:
Therefore, the POT file:
But then, the string is not recognized. This is the PO file with an extra entry added manually:
Then
print(a)
printsTEST1
instead ofTEST0
.Minimal reproduction project
project.zip
The text was updated successfully, but these errors were encountered: