Translation fixes and tweaks (#34489)

Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Paulus SchoutsenandMartin Hjelmare authored and GitHub committed 2020-04-21 17:57:21 -07:00
1 parent 96649a7e27
commit e9ff1940d6
7 files changed
+189 -83

No files matched your search

+1 -2
View File
@@ -259,8 +259,7 @@ def validate_translation_file(config: Config, integration: Integration, all_stri
search = search[key]
key = parts.pop(0)
if parts:
print(key, list(search))
if parts or key not in search:
integration.add_error(
"translations",
f"{reference['source']} contains invalid reference {reference['ref']}: Could not find {key}",