- fixed some of the strings that were left in the old way

- updated the POT file
- updated Romanian language partially
This commit is contained in:
Marius Stanciu
2019-09-13 18:27:00 +03:00
parent 6ea9b80ad6
commit f6cd63021e
21 changed files with 10467 additions and 9636 deletions

View File

@@ -1065,8 +1065,8 @@ class FCDrillResize(FCShapeTool):
# we reactivate the signals after the after the tool editing
self.draw_app.tools_table_exc.itemChanged.connect(self.draw_app.on_tool_edit)
self.draw_app.app.inform.emit('[success] Done. %s' %
_("Drill/Slot Resize completed."))
self.draw_app.app.inform.emit('[success] %s' %
_("Done. Drill/Slot Resize completed."))
else:
self.draw_app.app.inform.emit('[WARNING_NOTCL] %s' %
_("Cancelled. No drills/slots selected for resize ..."))

View File

@@ -632,8 +632,9 @@ class TransformEditorTool(FlatCAMTool):
self.transform_lay = QtWidgets.QVBoxLayout()
self.layout.addLayout(self.transform_lay)
# ## Title
title_label = QtWidgets.QLabel("%s" % (_('Editor %s') % self.toolName))
title_label = QtWidgets.QLabel("%s %s" % (_('Editor'), str(self.toolName)))
title_label.setStyleSheet("""
QLabel
{
@@ -2354,7 +2355,7 @@ class FCPath(FCPolygon):
self.draw_app.in_action = False
self.complete = True
self.draw_app.app.inform.emit(_("[success] Done. Path completed."))
self.draw_app.app.inform.emit('[success] %s' % _("Done. Path completed."))
def utility_geometry(self, data=None):
if len(self.points) > 0:
@@ -4583,9 +4584,12 @@ class FlatCAMGeoEditor(QtCore.QObject):
local_results += list(cp.get_objects())
except Exception as e:
log.debug("Could not Paint the polygons. %s" % str(e))
self.app.inform.emit('[ERROR] %s' %
_("Could not do Paint. Try a different combination of parameters. "
"Or a different method of Paint\n%s") % str(e))
self.app.inform.emit('[ERROR] %s\n%s' %
(_("Could not do Paint. Try a different combination of"
" parameters. Or a different method of Paint"),
str(e)
)
)
return
# add the result to the results list
@@ -4595,7 +4599,7 @@ class FlatCAMGeoEditor(QtCore.QObject):
for r in results:
self.add_shape(DrawToolShape(r))
self.app.inform.emit(
_("[success] Paint done."))
'[success] %s' % _("Paint done."))
self.replot()

View File

@@ -1520,7 +1520,7 @@ class FCSemiDisc(FCShapeTool):
def on_key(self, key):
if key == 'D' or key == QtCore.Qt.Key_D:
self.direction = 'cw' if self.direction == 'ccw' else 'ccw'
return _('Direction: %s') % self.direction.upper()
return '%s: %s' % (_('Direction'), self.direction.upper())
if key == 'M' or key == QtCore.Qt.Key_M:
# delete the possible points made before this action; we want to start anew
@@ -3764,7 +3764,8 @@ class FlatCAMGrbEditor(QtCore.QObject):
# and then add it to the storage elements (each storage elements is a member of a list
def job_thread(aperture_id):
with self.app.proc_container.new(_("Adding aperture: %s geo ...") % str(aperture_id)):
with self.app.proc_container.new('%s: %s %s...' %
(_("Adding aperture"), str(aperture_id), _("geo"))):
storage_elem = []
self.storage_dict[aperture_id] = {}
@@ -4849,7 +4850,7 @@ class TransformEditorTool(FlatCAMTool):
self.layout.addLayout(self.transform_lay)
# Title
title_label = QtWidgets.QLabel("%s" % (_('Editor %s') % self.toolName))
title_label = QtWidgets.QLabel("%s %s" % (_('Editor'), self.toolName))
title_label.setStyleSheet("""
QLabel
{