Skip to content

Commit

Permalink
Change arg to disable translation, rather than to have no effect
Browse files Browse the repository at this point in the history
 - translation output is enabled by default
  • Loading branch information
drojf committed Jul 14, 2023
1 parent a91dac2 commit a8d7b4b
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,14 +267,11 @@ def save(self):
choices=["all", "github_actions"] + list(chapter_to_build_variants.keys()),
)
parser.add_argument("--force-download", default=False, action='store_true')
parser.add_argument("--translation", default=False, action='store_true')
parser.add_argument("--disable-translation", default=False, action='store_true')
args = parser.parse_args()

force_download = args.force_download

# NOTE: For now, translation archive output is always enabled, as most of the time this script will be used for translators
translation = args.translation

# Get chapter name from git tag if "github_actions" specified as the chapter
chapter_name = args.chapter
if chapter_name == "github_actions":
Expand All @@ -285,13 +282,21 @@ def save(self):
)
exit(0)

# NOTE: For now, translation archive output is always enabled, as most of the time this script will be used for translators
# NOTE: For now, translation archive output is enabled by default, as most of the time this script will be used for translators
translation = True

if args.disable_translation:
translation = False

# Get a list of build variants (like 'onikakushi 5.2.2f1 win') depending on commmand line arguments
build_variants = get_build_variants(chapter_name)
build_variants_list = "\n - ".join([b.get_build_command() for b in build_variants])
print(f"For chapter '{chapter_name}' building:\n - {build_variants_list}")
print(f"-------- Build Started --------")
print(f"Chapter: [{chapter_name}] | Translation Archive Output: [{('Enabled' if translation else 'Disabled')}]")
print(f"Variants:")
print(f" - {build_variants_list}")
print(f"-------------------------------")
print()

# Install python dependencies
print("Installing python dependencies")
Expand Down

0 comments on commit a8d7b4b

Please sign in to comment.