mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-29 12:22:52 +03:00
Don't delete placeholders that differ from source ARB
This commit is contained in:
parent
5bd585294f
commit
372747f0dd
@ -32,7 +32,13 @@ def equalize_key_order(source, target):
|
|||||||
if key in target and target[key] is not None:
|
if key in target and target[key] is not None:
|
||||||
source_value = source[key]
|
source_value = source[key]
|
||||||
target_value = target[key]
|
target_value = target[key]
|
||||||
target_result[key] = equalize_key_order(source_value, target_value)
|
|
||||||
|
if key == "placeholders":
|
||||||
|
# Placeholders might use different variable names than in
|
||||||
|
# the source file; don't delete them if they do.
|
||||||
|
target_result[key] = target_value
|
||||||
|
else:
|
||||||
|
target_result[key] = equalize_key_order(source_value, target_value)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
if key.startswith("@"):
|
if key.startswith("@"):
|
||||||
|
Loading…
Reference in New Issue
Block a user