mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
accept alternate strings file
This commit is contained in:
parent
6a0faac407
commit
dd2edee3b3
2 changed files with 2 additions and 2 deletions
2
qt/po/.gitignore
vendored
2
qt/po/.gitignore
vendored
|
@ -1,4 +1,4 @@
|
|||
.build
|
||||
repo
|
||||
ftl
|
||||
strings.json
|
||||
strings*.json
|
||||
|
|
|
@ -19,7 +19,7 @@ from fluent.syntax.ast import Message, TextElement, Identifier, Pattern, Junk
|
|||
# the templates folder inside the ftl repo
|
||||
repo_templates_dir = sys.argv[1]
|
||||
assert os.path.abspath(repo_templates_dir).endswith("templates")
|
||||
strings = json.load(open("strings.json"))
|
||||
strings = json.load(open("strings.json" if len(sys.argv) < 3 else sys.argv[2]))
|
||||
plurals = json.load(open("plurals.json"))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue