Fix grammar in warnings report
This commit is contained in:
parent
d55f889a84
commit
05307817ee
|
@ -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()
|
||||
|
|
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue