Local helper update (#420)
* local helper update
* Delete entities.ftl
* Helper Refactor
* Revert "Helper Refactor"
This reverts commit 4aca315593.
* Helper Refactor
* Жееесть, я не знал про setdefault у словарей
* Update localization_helper.py
* Ревёрт "Жееесть, я не знал про setdefault у словарей"
Лучше бы я продолжал не знать о них
* чтооооо
* Update yml_parser.py
* Update entities.ftl
---------
Co-authored-by: Ed <96445749+TheShuEd@users.noreply.github.com>
This commit is contained in:
@@ -4,9 +4,7 @@ def read_ftl(paths: tuple) -> dict:
|
||||
file and determines by the indentation in the line whether
|
||||
it is a new prototype or an attribute of an old one.
|
||||
"""
|
||||
prototypes = {
|
||||
|
||||
}
|
||||
prototypes = {}
|
||||
|
||||
last_prototype = ""
|
||||
path, error_log_path = paths
|
||||
@@ -36,4 +34,4 @@ def read_ftl(paths: tuple) -> dict:
|
||||
with open(error_log_path, "a") as file:
|
||||
file.write(f"FTL-ERROR:\nAn error occurred while reading a file {path}, error - {e}\n")
|
||||
|
||||
return prototypes
|
||||
return prototypes
|
||||
|
||||
Reference in New Issue
Block a user