From 90a9e350c021e2bf59d0065fea0acbff3129d64e Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Fri, 23 Apr 2021 12:37:54 +0200 Subject: [PATCH] Remove warnings caused by '\x00' Manually unescape '\x00' for the time being, removing spurious warnings. --- lang/lang-check.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lang/lang-check.py b/lang/lang-check.py index c5bfbe9ab..62ba02524 100755 --- a/lang/lang-check.py +++ b/lang/lang-check.py @@ -45,6 +45,9 @@ def parse_txt(lang, no_warning): source = src.readline()[:-1].strip('"') #print (source) #Debug translation = src.readline()[:-1].strip('"') + if translation == '\\x00': + # crude hack to handle intentionally-empty translations + translation = '' #print (translation) #Debug #Wrap text to 20 chars and rows wrapper = textwrap.TextWrapper(width=20)