Translation fixes and tweaks (#34489)

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

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}",