Skip to content

Commit 49484b8

Browse files
removed some dead code
1 parent 2a4fb30 commit 49484b8

2 files changed

Lines changed: 3 additions & 19 deletions

File tree

bin/buildAndDeploy.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -120,27 +120,11 @@ def runI18n4go(path: str) -> None:
120120
mxm_re = re.compile(r"^\"(.+?)\" exists in ([a-zA-Z_]{5,7}), but not in en_US$", flags=re.M | re.DOTALL)
121121
# This should be the last line
122122
fin_re = re.compile(r"Could not checkup, err: Strings don't match$")
123-
# print(result.stdout)
123+
124124
if result.stderr:
125125
print(f"[red]Error: {result.stderr}")
126-
# to_check = ""
127-
if result.returncode > 0:
128-
129-
# for line in result.stdout:
130-
# to_check = f"{to_check}{line}"
131-
# if to_check.endswith(" exists in the code, but not in en_US"):
132-
# key = to_check.replace(" exists in the code, but not in en_US", '')
133-
# add_json[key] = {"id": key, "translation": key}
134-
# to_check = ""
135-
# elif to_check.endswith(" exists in en_US, but not in the code"):
136-
# key = to_check.replace(" exists in en_US, but not in the code", '')
137-
# del_json[key] = {"id": key, "translation": key}
138-
# to_check = ""
139-
# elif to_check.endswith(", but not in en_US"):
140-
# key = to_check.replace(" exists in en_US, but not in the code", '')
141-
# del_json[key] = {"id": key, "translation": key}
142-
# to_check = ""
143126

127+
if result.returncode > 0:
144128
print("\t[yellow] ====== ADD ======== ")
145129
add_results = add_re.findall(result.stdout)
146130
for line in add_results:

bin/catch-i18n-mismatch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fi
1111
# Switches to plugin directory or exits if it doesn't exist.
1212
cd "./plugin"
1313

14-
RESULTS=`../bin/i18n4go.exe -c checkup -q i18n -v`
14+
RESULTS=`../bin/i18n4go -c checkup -q i18n -v`
1515
# RESULTS="OKTotal time:"
1616
OUTPUT=""
1717
ADD_JSON_OUT=$'[\n'

0 commit comments

Comments
 (0)