Fix 1-translate-svg

Get empty string by default
This commit is contained in:
linsui 2024-03-06 16:18:18 +08:00
parent bd1aa5f288
commit 6b647fb6ad
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@ for f in d.glob("src/*/strings.yml"):
locale = f.parent.name
with open(f) as fp:
strings = yaml.safe_load(fp)
top = strings.get("above F-Droid").strip()
bottom = strings.get("below F-Droid").strip()
top = strings.get("above F-Droid", "").strip()
bottom = strings.get("below F-Droid", "").strip()
if top and bottom:
name = "top_and_bottom"
elif top: