diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2018-11-09 16:41:08 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2018-11-09 16:41:08 -0800 |
| commit | 355abc835ea75715b4dea38604ef64f8c4eeaa0f (patch) | |
| tree | 7e7c16e386157a42f686b27dbb6731738683befa /py/makeqstrdata.py | |
| parent | 97bc95183d5114ce69c9387ebd2e2aa13feb65a7 (diff) | |
Fix output overflow and make help translatable
Diffstat (limited to 'py/makeqstrdata.py')
| -rw-r--r-- | py/makeqstrdata.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/py/makeqstrdata.py b/py/makeqstrdata.py index b0a043ee3..5b5ec1c37 100644 --- a/py/makeqstrdata.py +++ b/py/makeqstrdata.py @@ -349,8 +349,7 @@ def print_qstr_data(encoding_table, qcfgs, qstrs, i18ns): total_text_compressed_size += len(compressed) decompressed = decompress(encoding_table, len(translation_encoded), compressed).decode("utf-8") for c in C_ESCAPES: - decompressed.replace(c, C_ESCAPES[c]) - #print("// \"{}\"".format(translation)) + decompressed = decompressed.replace(c, C_ESCAPES[c]) print("TRANSLATION(\"{}\", {}, {{ {} }}) // {}".format(original, len(translation_encoded)+1, ", ".join(["0x{:02x}".format(x) for x in compressed]), decompressed)) total_text_size += len(translation.encode("utf-8")) |
