scripts/unocommands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 92f3d628829153c1925338aad49ef482df342bee Author: Andras Timar <andras.ti...@collabora.com> AuthorDate: Fri Nov 9 21:55:23 2018 +0100 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Fri Nov 9 21:59:50 2018 +0100 escape double quotes when generating json files from po files Change-Id: Iacddaf919161b6843dac2190a5072af8a25e8251 Reviewed-on: https://gerrit.libreoffice.org/63218 Reviewed-by: Andras Timar <andras.ti...@collabora.com> Tested-by: Andras Timar <andras.ti...@collabora.com> diff --git a/scripts/unocommands.py b/scripts/unocommands.py index d73a5bb9b..27fca0d84 100755 --- a/scripts/unocommands.py +++ b/scripts/unocommands.py @@ -305,7 +305,7 @@ def writeTranslations(onlineDir, translationsDir, strings): f.write(',\n') else: writeComma = True - f.write(('"' + key + '":"' + translations[key] + '"').encode('utf-8')) + f.write(('"' + key.replace('"','\\\"') + '":"' + translations[key].replace('"','\\\"') + '"').encode('utf-8')) f.write('\n}\n') _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits