- changes to the strings in the Calculator Plugin

This commit is contained in:
Marius Stanciu
2021-09-08 16:26:06 +03:00
committed by Marius
parent 61e576f8d1
commit a49b734a50
2 changed files with 15 additions and 20 deletions

View File

@@ -10,6 +10,7 @@ CHANGELOG for FlatCAM beta
8.09.2021 8.09.2021
- in Calculator Plugin, in Units Calculator added more units conversions - in Calculator Plugin, in Units Calculator added more units conversions
- changes to the strings in the Calculator Plugin
6.09.2021 6.09.2021

View File

@@ -636,8 +636,7 @@ class CalcUI:
# Cut Z # Cut Z
self.cutDepth_label = FCLabel('%s:' % _("Cut Z")) self.cutDepth_label = FCLabel('%s:' % _("Cut Z"))
self.cutDepth_label.setToolTip(_("This is the depth to cut into the material.\n" self.cutDepth_label.setToolTip(_("This is the depth to cut into the material."))
"In the CNCJob is the CutZ parameter."))
self.cutDepth_entry = FCDoubleSpinner(callback=self.confirmation_message) self.cutDepth_entry = FCDoubleSpinner(callback=self.confirmation_message)
self.cutDepth_entry.set_range(-10000.0000, 10000.0000) self.cutDepth_entry.set_range(-10000.0000, 10000.0000)
@@ -648,9 +647,8 @@ class CalcUI:
# Tool Diameter # Tool Diameter
self.effectiveToolDia_label = FCLabel('%s:' % _("Tool Diameter")) self.effectiveToolDia_label = FCLabel('%s:' % _("Tool Diameter"))
self.effectiveToolDia_label.setToolTip(_("This is the tool diameter to be entered into\n" self.effectiveToolDia_label.setToolTip(_("This is the actual tool diameter\n"
"FlatCAM Gerber section.\n" "at the desired depth of cut."))
"In the CNCJob section it is called >Tool dia<."))
self.effectiveToolDia_entry = FCDoubleSpinner(callback=self.confirmation_message) self.effectiveToolDia_entry = FCDoubleSpinner(callback=self.confirmation_message)
self.effectiveToolDia_entry.set_precision(self.decimals) self.effectiveToolDia_entry.set_precision(self.decimals)
@@ -662,8 +660,7 @@ class CalcUI:
self.calculate_vshape_button.setIcon(QtGui.QIcon(self.app.resource_location + '/calculator16.png')) self.calculate_vshape_button.setIcon(QtGui.QIcon(self.app.resource_location + '/calculator16.png'))
self.calculate_vshape_button.setToolTip( self.calculate_vshape_button.setToolTip(
_("Calculate either the Cut Z or the effective tool diameter,\n " _("Calculate either the depth of cut or the effective tool diameter.")
"depending on which is desired and which is known. ")
) )
grid_vshape.addWidget(self.calculate_vshape_button, 12, 0, 1, 2) grid_vshape.addWidget(self.calculate_vshape_button, 12, 0, 1, 2)
@@ -693,7 +690,7 @@ class CalcUI:
# Area Calculation # Area Calculation
self.area_sel_label = FCLabel('%s:' % _("Area Calculation")) self.area_sel_label = FCLabel('%s:' % _("Area Calculation"))
self.area_sel_label.setToolTip( self.area_sel_label.setToolTip(
_("Choose how to calculate the board area.") _("Determine the board area.")
) )
self.area_sel_radio = RadioSet([ self.area_sel_radio = RadioSet([
{'label': _('Dimensions'), 'value': 'd'}, {'label': _('Dimensions'), 'value': 'd'},
@@ -705,7 +702,7 @@ class CalcUI:
# BOARD LENGTH # BOARD LENGTH
self.pcblengthlabel = FCLabel('%s:' % _("Board Length")) self.pcblengthlabel = FCLabel('%s:' % _("Board Length"))
self.pcblengthlabel.setToolTip(_('This is the board length. In centimeters.')) self.pcblengthlabel.setToolTip(_('Board Length.'))
self.pcblength_entry = FCDoubleSpinner(callback=self.confirmation_message) self.pcblength_entry = FCDoubleSpinner(callback=self.confirmation_message)
self.pcblength_entry.setSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Preferred) self.pcblength_entry.setSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Preferred)
self.pcblength_entry.set_precision(self.decimals) self.pcblength_entry.set_precision(self.decimals)
@@ -723,7 +720,7 @@ class CalcUI:
# BOARD WIDTH # BOARD WIDTH
self.pcbwidthlabel = FCLabel('%s:' % _("Board Width")) self.pcbwidthlabel = FCLabel('%s:' % _("Board Width"))
self.pcbwidthlabel.setToolTip(_('This is the board width.In centimeters.')) self.pcbwidthlabel.setToolTip(_('Board Width'))
self.pcbwidth_entry = FCDoubleSpinner(callback=self.confirmation_message) self.pcbwidth_entry = FCDoubleSpinner(callback=self.confirmation_message)
self.pcbwidth_entry.setSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Preferred) self.pcbwidth_entry.setSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Preferred)
self.pcbwidth_entry.set_precision(self.decimals) self.pcbwidth_entry.set_precision(self.decimals)
@@ -741,7 +738,7 @@ class CalcUI:
# AREA # AREA
self.area_label = FCLabel('%s:' % _("Area")) self.area_label = FCLabel('%s:' % _("Area"))
self.area_label.setToolTip(_('This is the board area.')) self.area_label.setToolTip(_('Board area.'))
self.area_entry = FCDoubleSpinner(callback=self.confirmation_message) self.area_entry = FCDoubleSpinner(callback=self.confirmation_message)
self.area_entry.setSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Preferred) self.area_entry.setSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Preferred)
self.area_entry.set_precision(self.decimals) self.area_entry.set_precision(self.decimals)
@@ -764,8 +761,8 @@ class CalcUI:
# DENSITY # DENSITY
self.cdensity_label = FCLabel('%s:' % _("Current Density")) self.cdensity_label = FCLabel('%s:' % _("Current Density"))
self.cdensity_label.setToolTip(_("Current density to pass through the board. \n" self.cdensity_label.setToolTip(_("Current density applied to the board. \n"
"In Amps per Square Feet ASF.")) "In Amperes per Square Feet ASF."))
self.cdensity_entry = FCDoubleSpinner(callback=self.confirmation_message) self.cdensity_entry = FCDoubleSpinner(callback=self.confirmation_message)
self.cdensity_entry.setSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Preferred) self.cdensity_entry.setSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Preferred)
self.cdensity_entry.set_precision(self.decimals) self.cdensity_entry.set_precision(self.decimals)
@@ -784,8 +781,7 @@ class CalcUI:
# COPPER GROWTH # COPPER GROWTH
self.growth_label = FCLabel('%s:' % _("Copper Growth")) self.growth_label = FCLabel('%s:' % _("Copper Growth"))
self.growth_label.setToolTip(_("How thick the copper growth is intended to be.\n" self.growth_label.setToolTip(_("Thickness of the deposited copper."))
"In microns."))
self.growth_entry = FCDoubleSpinner(callback=self.confirmation_message) self.growth_entry = FCDoubleSpinner(callback=self.confirmation_message)
self.growth_entry.setSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Preferred) self.growth_entry.setSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Preferred)
self.growth_entry.set_precision(self.decimals) self.growth_entry.set_precision(self.decimals)
@@ -805,7 +801,7 @@ class CalcUI:
# CURRENT # CURRENT
self.cvaluelabel = FCLabel('%s:' % _("Current Value")) self.cvaluelabel = FCLabel('%s:' % _("Current Value"))
self.cvaluelabel.setToolTip(_('This is the current intensity value\n' self.cvaluelabel.setToolTip(_('This is the current intensity value\n'
'to be set on the Power Supply. In Amps.')) 'to be set on the Power Supply.'))
self.cvalue_entry = FCDoubleSpinner(callback=self.confirmation_message) self.cvalue_entry = FCDoubleSpinner(callback=self.confirmation_message)
self.cvalue_entry.setSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Preferred) self.cvalue_entry.setSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Preferred)
self.cvalue_entry.set_precision(self.decimals) self.cvalue_entry.set_precision(self.decimals)
@@ -825,8 +821,7 @@ class CalcUI:
# TIME # TIME
self.timelabel = FCLabel('%s:' % _("Time")) self.timelabel = FCLabel('%s:' % _("Time"))
self.timelabel.setToolTip(_('This is the calculated time required for the procedure.\n' self.timelabel.setToolTip(_('The time calculated to deposit copper.'))
'In minutes.'))
self.time_entry = FCDoubleSpinner(callback=self.confirmation_message) self.time_entry = FCDoubleSpinner(callback=self.confirmation_message)
self.time_entry.setSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Preferred) self.time_entry.setSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Preferred)
self.time_entry.set_precision(self.decimals) self.time_entry.set_precision(self.decimals)
@@ -848,8 +843,7 @@ class CalcUI:
self.calculate_plate_button = FCButton(_("Calculate")) self.calculate_plate_button = FCButton(_("Calculate"))
self.calculate_plate_button.setIcon(QtGui.QIcon(self.app.resource_location + '/calculator16.png')) self.calculate_plate_button.setIcon(QtGui.QIcon(self.app.resource_location + '/calculator16.png'))
self.calculate_plate_button.setToolTip( self.calculate_plate_button.setToolTip(
_("Calculate the current intensity value and the procedure time,\n" _("Calculate the current intensity value and the procedure time.")
"depending on the parameters above")
) )
grid_electro.addWidget(self.calculate_plate_button, 24, 0, 1, 2) grid_electro.addWidget(self.calculate_plate_button, 24, 0, 1, 2)