diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-03 10:14:14 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-03 10:14:14 +0100 |
commit | 34594a3096985c0fccd17cbefb9826c2d1084e3d (patch) | |
tree | 50f0622f95903d62ce2d5305471809445d280c20 | |
parent | f38076e15c4b9b12eb8835df891d0ba3c9344926 (diff) | |
parent | e5022531bf58fe2f91ed90544635edbfa140c873 (diff) | |
download | redot-engine-34594a3096985c0fccd17cbefb9826c2d1084e3d.tar.gz |
Merge pull request #86669 from YeldhamDev/there_is_no_escape
Stop escaping `'` on POT generation
-rw-r--r-- | editor/pot_generator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/pot_generator.cpp b/editor/pot_generator.cpp index ec044ee06e..93c446c29a 100644 --- a/editor/pot_generator.cpp +++ b/editor/pot_generator.cpp @@ -141,7 +141,7 @@ void POTGenerator::_write_to_pot(const String &p_file) { // Write context. if (!context.is_empty()) { - file->store_line("msgctxt " + context.c_escape().quote()); + file->store_line("msgctxt " + context.json_escape().quote()); } // Write msgid. @@ -183,11 +183,11 @@ void POTGenerator::_write_msgid(Ref<FileAccess> r_file, const String &p_id, bool } for (int i = 0; i < lines.size() - 1; i++) { - r_file->store_line((lines[i] + "\n").c_escape().quote()); + r_file->store_line((lines[i] + "\n").json_escape().quote()); } if (!last_line.is_empty()) { - r_file->store_line(last_line.c_escape().quote()); + r_file->store_line(last_line.json_escape().quote()); } } |