accept alternate strings file

This commit is contained in:
Damien Elmes 2020-08-09 14:44:23 +10:00
parent 6a0faac407
commit dd2edee3b3
2 changed files with 2 additions and 2 deletions

2
qt/po/.gitignore vendored
View file

@ -1,4 +1,4 @@
.build .build
repo repo
ftl ftl
strings.json strings*.json

View file

@ -19,7 +19,7 @@ from fluent.syntax.ast import Message, TextElement, Identifier, Pattern, Junk
# the templates folder inside the ftl repo # the templates folder inside the ftl repo
repo_templates_dir = sys.argv[1] repo_templates_dir = sys.argv[1]
assert os.path.abspath(repo_templates_dir).endswith("templates") 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")) plurals = json.load(open("plurals.json"))