2020-11-27 16:33:17 +01: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 03:21:20 +01:00
|
|
|
import argparse
|
|
|
|
import sys
|
2020-11-27 16:33:17 +01:00
|
|
|
|
2020-11-19 02:18:08 +01:00
|
|
|
from squirrelbattle.bootstrap import Bootstrap
|
2020-11-28 03:21:20 +01:00
|
|
|
from squirrelbattle.translations import Translator
|
2020-10-02 15:48:39 +02:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2020-11-28 03:21:20 +01: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()
|