Skip to content

Commit a8d7b4b

Browse files
committed
Change arg to disable translation, rather than to have no effect
- translation output is enabled by default
1 parent a91dac2 commit a8d7b4b

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

build.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,14 +267,11 @@ def save(self):
267267
choices=["all", "github_actions"] + list(chapter_to_build_variants.keys()),
268268
)
269269
parser.add_argument("--force-download", default=False, action='store_true')
270-
parser.add_argument("--translation", default=False, action='store_true')
270+
parser.add_argument("--disable-translation", default=False, action='store_true')
271271
args = parser.parse_args()
272272

273273
force_download = args.force_download
274274

275-
# NOTE: For now, translation archive output is always enabled, as most of the time this script will be used for translators
276-
translation = args.translation
277-
278275
# Get chapter name from git tag if "github_actions" specified as the chapter
279276
chapter_name = args.chapter
280277
if chapter_name == "github_actions":
@@ -285,13 +282,21 @@ def save(self):
285282
)
286283
exit(0)
287284

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

288+
if args.disable_translation:
289+
translation = False
290+
291291
# Get a list of build variants (like 'onikakushi 5.2.2f1 win') depending on commmand line arguments
292292
build_variants = get_build_variants(chapter_name)
293293
build_variants_list = "\n - ".join([b.get_build_command() for b in build_variants])
294-
print(f"For chapter '{chapter_name}' building:\n - {build_variants_list}")
294+
print(f"-------- Build Started --------")
295+
print(f"Chapter: [{chapter_name}] | Translation Archive Output: [{('Enabled' if translation else 'Disabled')}]")
296+
print(f"Variants:")
297+
print(f" - {build_variants_list}")
298+
print(f"-------------------------------")
299+
print()
295300

296301
# Install python dependencies
297302
print("Installing python dependencies")

0 commit comments

Comments
 (0)