- deleted the Calibration Plugin (made redundant by changes in other Plugins)

- some strings were updated
This commit is contained in:
Marius Stanciu
2022-04-25 01:09:51 +03:00
committed by Marius
parent 0caa2c97f6
commit 1459423ca3
13 changed files with 48 additions and 1655 deletions

View File

@@ -834,7 +834,7 @@ class ToolPaint(AppTool, Gerber):
# if new tool diameter already in the Tool List then abort
if truncated_tooldia in tool_dias:
self.app.inform.emit('[WARNING_NOTCL] %s' % _("Cancelled. Tool already in Tool Table."))
self.app.inform.emit('[WARNING_NOTCL] %s %s' % (_("Cancelled."), _("Tool already in Tool Table.")))
self.blockSignals(False)
return
@@ -920,7 +920,7 @@ class ToolPaint(AppTool, Gerber):
# if new tool diameter found in Tools Database already in the Tool List then abort
if updated_tooldia is not None and updated_tooldia in tool_dias:
self.app.inform.emit('[WARNING_NOTCL] %s' % _("Cancelled. Tool already in Tool Table."))
self.app.inform.emit('[WARNING_NOTCL] %s %s' % (_("Cancelled."), _("Tool already in Tool Table.")))
self.blockSignals(False)
return
@@ -980,7 +980,7 @@ class ToolPaint(AppTool, Gerber):
truncated_tooldia = self.app.dec_format(tool_dia, self.decimals)
if truncated_tooldia in tool_dias:
if muted is None:
self.app.inform.emit('[WARNING_NOTCL] %s' % _("Cancelled. Tool already in Tool Table."))
self.app.inform.emit('[WARNING_NOTCL] %s %s' % (_("Cancelled."), _("Tool already in Tool Table.")))
self.blockSignals(False)
return
@@ -1099,7 +1099,7 @@ class ToolPaint(AppTool, Gerber):
except Exception as e:
self.app.log.error(str(e))
self.app.inform.emit('[success] %s' % _("Tool(s) deleted from Tool Table."))
self.app.inform.emit('[success] %s' % _("Tools deleted from Tool Table."))
self.blockSignals(False)
self.build_ui()
@@ -2845,7 +2845,7 @@ class ToolPaint(AppTool, Gerber):
tool_dias.append(float('%.*f' % (self.decimals, (v[tool_v]))))
if float('%.*f' % (self.decimals, tooldia)) in tool_dias:
self.app.inform.emit('[WARNING_NOTCL] %s' % _("Cancelled. Tool already in Tool Table."))
self.app.inform.emit('[WARNING_NOTCL] %s %s' % (_("Cancelled."), _("Tool already in Tool Table.")))
self.ui_connect()
return 'fail'