Fix grammar in warnings report

This commit is contained in:
Moritz Brückner 2021-01-25 16:47:51 +01:00
parent d55f889a84
commit 05307817ee
2 changed files with 2 additions and 2 deletions

View file

@ -433,7 +433,7 @@ def compilation_server_done():
def build_done():
print('Finished in ' + str(time.time() - profile_time))
if log.num_warnings > 0:
log.print_warn(f'{log.num_warnings} warnings occurred during compilation')
log.print_warn(f'{log.num_warnings} warning{"s" if log.num_warnings > 1 else ""} occurred during compilation')
if state.proc_build is None:
return
result = state.proc_build.poll()

View file

@ -426,7 +426,7 @@ class ARM_PT_ArmoryPlayerPanel(bpy.types.Panel):
box.alert = True
col = box.column(align=True)
col.label(text=f'{log.num_warnings} warnings occurred during compilation!', icon='ERROR')
col.label(text=f'{log.num_warnings} warning{"s" if log.num_warnings > 1 else ""} occurred during compilation!', icon='ERROR')
# Blank icon to achieve the same indentation as the line before
col.label(text='Please open the console to get more information.', icon='BLANK1')