2020-11-27 15:33:17 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
# Copyright (C) 2020 by ÿnérant, eichhornchen, nicomarg, charlse
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
2020-11-28 02:21:20 +00:00
|
|
|
import argparse
|
|
|
|
import sys
|
2020-11-27 15:33:17 +00:00
|
|
|
|
2020-11-19 01:18:08 +00:00
|
|
|
from squirrelbattle.bootstrap import Bootstrap
|
2020-11-28 02:21:20 +00:00
|
|
|
from squirrelbattle.translations import Translator
|
2020-10-02 13:48:39 +00:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2020-11-28 02:21:20 +00:00
|
|
|
parser = argparse.ArgumentParser()
|
|
|
|
|
|
|
|
parser.add_argument("--makemessages", "-mm", action="store_true",
|
|
|
|
help="Extract translatable strings")
|
|
|
|
parser.add_argument("--compilemessages", "-cm", action="store_true",
|
|
|
|
help="Compile translatable strings")
|
|
|
|
|
|
|
|
args = parser.parse_args(sys.argv[1:])
|
|
|
|
if args.makemessages:
|
|
|
|
Translator.makemessages()
|
|
|
|
elif args.compilemessages:
|
|
|
|
Translator.compilemessages()
|
|
|
|
else:
|
|
|
|
Bootstrap.run_game()
|