Fix UI strings reported on Crowdin (#23297)
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
This commit is contained in:
@@ -1655,7 +1655,7 @@ class ViewProviderComponent:
|
||||
|
||||
def contextMenuAddToggleSubcomponents(self, menu):
|
||||
actionToggleSubcomponents = QtGui.QAction(QtGui.QIcon(":/icons/Arch_ToggleSubs.svg"),
|
||||
translate("Arch", "Toggle subcomponents"),
|
||||
translate("Arch", "Toggle Subcomponents"),
|
||||
menu)
|
||||
QtCore.QObject.connect(actionToggleSubcomponents,
|
||||
QtCore.SIGNAL("triggered()"),
|
||||
@@ -2092,7 +2092,7 @@ class ComponentTaskPanel:
|
||||
self.baseform.setWindowTitle(QtGui.QApplication.translate("Arch", "Component", None))
|
||||
self.delButton.setText(QtGui.QApplication.translate("Arch", "Remove", None))
|
||||
self.addButton.setText(QtGui.QApplication.translate("Arch", "Add", None))
|
||||
self.title.setText(QtGui.QApplication.translate("Arch", "Components of this object", None))
|
||||
self.title.setText(QtGui.QApplication.translate("Arch", "Components of This Object", None))
|
||||
self.treeBase.setText(0,QtGui.QApplication.translate("Arch", "Base component", None))
|
||||
self.treeAdditions.setText(0,QtGui.QApplication.translate("Arch", "Additions", None))
|
||||
self.treeSubtractions.setText(0,QtGui.QApplication.translate("Arch", "Subtractions", None))
|
||||
@@ -2102,8 +2102,8 @@ class ComponentTaskPanel:
|
||||
self.treeFixtures.setText(0,QtGui.QApplication.translate("Arch", "Fixtures", None))
|
||||
self.treeGroup.setText(0,QtGui.QApplication.translate("Arch", "Group", None))
|
||||
self.treeHosts.setText(0,QtGui.QApplication.translate("Arch", "Hosts", None))
|
||||
self.ifcButton.setText(QtGui.QApplication.translate("Arch", "Edit IFC properties", None))
|
||||
self.classButton.setText(QtGui.QApplication.translate("Arch", "Edit standard code", None))
|
||||
self.ifcButton.setText(QtGui.QApplication.translate("Arch", "Edit IFC Properties", None))
|
||||
self.classButton.setText(QtGui.QApplication.translate("Arch", "Edit Standard Code", None))
|
||||
|
||||
def editIfcProperties(self):
|
||||
"""Open the IFC editor dialog box.
|
||||
|
||||
@@ -92,12 +92,12 @@ class _ViewProviderArchMaterialContainer:
|
||||
if FreeCADGui.activeWorkbench().name() != 'BIMWorkbench':
|
||||
return
|
||||
actionMergeByName = QtGui.QAction(QtGui.QIcon(":/icons/Arch_Material_Group.svg"),
|
||||
translate("Arch", "Merge duplicates"),
|
||||
translate("Arch", "Merge Duplicates"),
|
||||
menu)
|
||||
actionMergeByName.triggered.connect(self.mergeByName)
|
||||
menu.addAction(actionMergeByName)
|
||||
|
||||
actionReorder = QtGui.QAction(translate("Arch", "Reorder children alphabetically"),
|
||||
actionReorder = QtGui.QAction(translate("Arch", "Reorder Children Alphabetically"),
|
||||
menu)
|
||||
actionReorder.triggered.connect(self.reorder)
|
||||
menu.addAction(actionReorder)
|
||||
|
||||
@@ -877,7 +877,7 @@ class _ViewProviderSite:
|
||||
menu.addAction(actionEdit)
|
||||
|
||||
actionToggleSubcomponents = QtGui.QAction(QtGui.QIcon(":/icons/Arch_ToggleSubs.svg"),
|
||||
translate("Arch", "Toggle subcomponents"),
|
||||
translate("Arch", "Toggle Subcomponents"),
|
||||
menu)
|
||||
QtCore.QObject.connect(actionToggleSubcomponents,
|
||||
QtCore.SIGNAL("triggered()"),
|
||||
|
||||
@@ -1430,7 +1430,7 @@ class _ViewProviderWall(ArchComponent.ViewProviderComponent):
|
||||
super().contextMenuAddEdit(menu)
|
||||
|
||||
actionFlipDirection = QtGui.QAction(QtGui.QIcon(":/icons/Arch_Wall_Tree.svg"),
|
||||
translate("Arch", "Flip direction"),
|
||||
translate("Arch", "Flip Direction"),
|
||||
menu)
|
||||
QtCore.QObject.connect(actionFlipDirection,
|
||||
QtCore.SIGNAL("triggered()"),
|
||||
|
||||
@@ -921,7 +921,7 @@ class _ViewProviderWindow(ArchComponent.ViewProviderComponent):
|
||||
|
||||
if len(hingeIdxs) > 0:
|
||||
actionInvertOpening = QtGui.QAction(QtGui.QIcon(":/icons/Arch_Window_Tree.svg"),
|
||||
translate("Arch", "Invert opening direction"),
|
||||
translate("Arch", "Invert Opening Direction"),
|
||||
menu)
|
||||
QtCore.QObject.connect(actionInvertOpening,
|
||||
QtCore.SIGNAL("triggered()"),
|
||||
@@ -930,7 +930,7 @@ class _ViewProviderWindow(ArchComponent.ViewProviderComponent):
|
||||
|
||||
if len(hingeIdxs) == 1:
|
||||
actionInvertHinge = QtGui.QAction(QtGui.QIcon(":/icons/Arch_Window_Tree.svg"),
|
||||
translate("Arch", "Invert hinge position"),
|
||||
translate("Arch", "Invert Hinge Position"),
|
||||
menu)
|
||||
QtCore.QObject.connect(actionInvertHinge,
|
||||
QtCore.SIGNAL("triggered()"),
|
||||
@@ -1458,15 +1458,15 @@ class _ArchWindowTaskPanel:
|
||||
TaskPanel.setWindowTitle(QtGui.QApplication.translate("Arch", "Window elements", None))
|
||||
self.holeLabel.setText(QtGui.QApplication.translate("Arch", "Hole wire", None))
|
||||
self.holeNumber.setToolTip(QtGui.QApplication.translate("Arch", "The number of the wire that defines a hole in the host object. A value of zero will automatically adopt the largest wire", None))
|
||||
self.holeButton.setText(QtGui.QApplication.translate("Arch", "Pick selected", None))
|
||||
self.holeButton.setText(QtGui.QApplication.translate("Arch", "Pick Selected", None))
|
||||
self.delButton.setText(QtGui.QApplication.translate("Arch", "Remove", None))
|
||||
self.addButton.setText(QtGui.QApplication.translate("Arch", "Add", None))
|
||||
self.editButton.setText(QtGui.QApplication.translate("Arch", "Edit", None))
|
||||
self.createButton.setText(QtGui.QApplication.translate("Arch", "Create/update component", None))
|
||||
self.createButton.setText(QtGui.QApplication.translate("Arch", "Create/Update Component", None))
|
||||
self.title.setText(QtGui.QApplication.translate("Arch", "Base 2D object", None))
|
||||
self.wiretree.setHeaderLabels([QtGui.QApplication.translate("Arch", "Wires", None)])
|
||||
self.comptree.setHeaderLabels([QtGui.QApplication.translate("Arch", "Components", None)])
|
||||
self.newtitle.setText(QtGui.QApplication.translate("Arch", "Create new component", None))
|
||||
self.newtitle.setText(QtGui.QApplication.translate("Arch", "Create new Component", None))
|
||||
self.new1.setText(QtGui.QApplication.translate("Arch", "Name", None))
|
||||
self.new2.setText(QtGui.QApplication.translate("Arch", "Type", None))
|
||||
self.new3.setText(QtGui.QApplication.translate("Arch", "Wires", None))
|
||||
@@ -1474,14 +1474,14 @@ class _ArchWindowTaskPanel:
|
||||
self.new5.setText(QtGui.QApplication.translate("Arch", "Offset", None))
|
||||
self.new6.setText(QtGui.QApplication.translate("Arch", "Hinge", None))
|
||||
self.new7.setText(QtGui.QApplication.translate("Arch", "Opening mode", None))
|
||||
self.addp4.setText(QtGui.QApplication.translate("Arch", "+ Frame prop.", None))
|
||||
self.addp4.setText(QtGui.QApplication.translate("Arch", "+ Frame property", None))
|
||||
self.addp4.setToolTip(QtGui.QApplication.translate("Arch", "If this is checked, the window's Frame property value will be added to the value entered here", None))
|
||||
self.addp5.setText(QtGui.QApplication.translate("Arch", "+ Offset prop.", None))
|
||||
self.addp5.setText(QtGui.QApplication.translate("Arch", "+ Offset property", None))
|
||||
self.addp5.setToolTip(QtGui.QApplication.translate("Arch", "If this is checked, the window's Offset property value will be added to the value entered here", None))
|
||||
self.field6.setText(QtGui.QApplication.translate("Arch", "Get selected edge", None))
|
||||
self.field6.setText(QtGui.QApplication.translate("Arch", "Get Selected Edge", None))
|
||||
self.field6.setToolTip(QtGui.QApplication.translate("Arch", "Press to retrieve the selected edge", None))
|
||||
self.invertOpeningButton.setText(QtGui.QApplication.translate("Arch", "Invert opening direction", None))
|
||||
self.invertHingeButton.setText(QtGui.QApplication.translate("Arch", "Invert hinge position", None))
|
||||
self.invertOpeningButton.setText(QtGui.QApplication.translate("Arch", "Invert Opening Direction", None))
|
||||
self.invertHingeButton.setText(QtGui.QApplication.translate("Arch", "Invert Hinge Position", None))
|
||||
for i in range(len(WindowPartTypes)):
|
||||
self.field2.setItemText(i, QtGui.QApplication.translate("Arch", WindowPartTypes[i], None))
|
||||
for i in range(len(WindowOpeningModes)):
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
<item>
|
||||
<widget class="QPushButton" name="buttonToggle">
|
||||
<property name="text">
|
||||
<string>Toggle On/Off</string>
|
||||
<string>Toggle Visibility</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -102,8 +102,8 @@ class BIM_Material:
|
||||
searchLayout = QtGui.QHBoxLayout()
|
||||
searchLayout.setSpacing(2)
|
||||
searchBox = MatLineEdit(self.dlg)
|
||||
searchBox.setPlaceholderText(translate("BIM", "Search…"))
|
||||
searchBox.setToolTip(translate("BIM", "Searches object labels"))
|
||||
searchBox.setPlaceholderText(translate("BIM", "Search Objects"))
|
||||
searchBox.setToolTip(translate("BIM", "Searches for objects in the tree"))
|
||||
self.dlg.searchBox = searchBox
|
||||
searchLayout.addWidget(searchBox)
|
||||
searchBox.textChanged.connect(self.onSearch)
|
||||
@@ -124,14 +124,14 @@ class BIM_Material:
|
||||
lay.addLayout(searchLayout)
|
||||
|
||||
createButtonsLayoutBox = QtGui.QGroupBox(
|
||||
translate("BIM", " Material operations"), self.dlg
|
||||
translate("BIM", " Material Operations"), self.dlg
|
||||
)
|
||||
createButtonsLayoutBox.setObjectName("matOpsGrpBox")
|
||||
createButtonsLayout = QtGui.QGridLayout()
|
||||
|
||||
# create
|
||||
buttonCreate = QtGui.QPushButton(
|
||||
translate("BIM", "Create new material"), self.dlg
|
||||
translate("BIM", "New Material"), self.dlg
|
||||
)
|
||||
buttonCreate.setIcon(QtGui.QIcon(":/icons/Arch_Material.svg"))
|
||||
createButtonsLayout.addWidget(buttonCreate, 0, 0)
|
||||
@@ -139,7 +139,7 @@ class BIM_Material:
|
||||
|
||||
# create multi
|
||||
buttonMulti = QtGui.QPushButton(
|
||||
translate("BIM", "Create new multi-material"), self.dlg
|
||||
translate("BIM", "Create new Multi-Material"), self.dlg
|
||||
)
|
||||
buttonMulti.setIcon(QtGui.QIcon(":/icons/Arch_Material_Multi.svg"))
|
||||
createButtonsLayout.addWidget(buttonMulti, 0, 1)
|
||||
@@ -148,7 +148,7 @@ class BIM_Material:
|
||||
# merge dupes
|
||||
opsLayout = QtGui.QHBoxLayout()
|
||||
buttonMergeDupes = QtGui.QPushButton(
|
||||
translate("BIM", "Merge duplicates"), self.dlg
|
||||
translate("BIM", "Merge Duplicates"), self.dlg
|
||||
)
|
||||
buttonMergeDupes.setIcon(QtGui.QIcon(":/icons/view-refresh.svg"))
|
||||
createButtonsLayout.addWidget(buttonMergeDupes, 1, 0)
|
||||
@@ -159,7 +159,7 @@ class BIM_Material:
|
||||
|
||||
# delete unused
|
||||
buttonDeleteUnused = QtGui.QPushButton(
|
||||
translate("BIM", "Delete unused"), self.dlg
|
||||
translate("BIM", "Delete Unused"), self.dlg
|
||||
)
|
||||
buttonDeleteUnused.setIcon(QtGui.QIcon(":/icons/delete.svg"))
|
||||
createButtonsLayout.addWidget(buttonDeleteUnused, 1, 1)
|
||||
|
||||
@@ -86,13 +86,13 @@ class BIM_Views:
|
||||
|
||||
# set button
|
||||
self.dialog.menu = QtGui.QMenu()
|
||||
for button in [("Active", translate("BIM","Active (default)")),
|
||||
("AddLevel", translate("BIM","Add level")),
|
||||
("AddProxy", translate("BIM","Add proxy")),
|
||||
for button in [("Active", translate("BIM","Active")),
|
||||
("AddLevel", translate("BIM","Add Level")),
|
||||
("AddProxy", translate("BIM","Add Proxy WP")),
|
||||
("Delete", translate("BIM","Delete")),
|
||||
("Toggle", translate("BIM","Toggle on/off")),
|
||||
("Toggle", translate("BIM","Toggle Visibility")),
|
||||
("Isolate", translate("BIM","Isolate")),
|
||||
("SaveView", translate("BIM","Save view position")),
|
||||
("SaveView", translate("BIM","Save View Position")),
|
||||
("Rename", translate("BIM","Rename"))]:
|
||||
action = QtGui.QAction(button[1])
|
||||
|
||||
@@ -121,7 +121,7 @@ class BIM_Views:
|
||||
self.dialog.buttonAddLevel.setToolTip(translate("BIM","Creates a new level"))
|
||||
self.dialog.buttonAddProxy.setToolTip(translate("BIM","Creates a new working plane proxy"))
|
||||
self.dialog.buttonDelete.setToolTip(translate("BIM","Deletes the selected item"))
|
||||
self.dialog.buttonToggle.setToolTip(translate("BIM","Toggles selected items on/off"))
|
||||
self.dialog.buttonToggle.setToolTip(translate("BIM","Toggles the visibility of selected items"))
|
||||
self.dialog.buttonIsolate.setToolTip(translate("BIM","Turns all items off except the selected ones"))
|
||||
self.dialog.buttonSaveView.setToolTip(translate("BIM","Saves the current camera position to the selected items"))
|
||||
self.dialog.buttonRename.setToolTip(translate("BIM","Renames the selected item"))
|
||||
|
||||
@@ -104,48 +104,48 @@ class ifc_vp_object:
|
||||
FreeCADGui.ActiveDocument.ActiveView.getActiveObject("NativeIFC")
|
||||
== vobj.Object
|
||||
):
|
||||
t = translate("BIM", "Deactivate container")
|
||||
t = translate("BIM", "Deactivate Container")
|
||||
else:
|
||||
t = translate("BIM", "Make active container")
|
||||
t = translate("BIM", "Make Active Container")
|
||||
action_activate = QtGui.QAction(icon, t, menu)
|
||||
action_activate.triggered.connect(self.activate)
|
||||
menu.addAction(action_activate)
|
||||
if self.hasChildren(vobj.Object):
|
||||
action_expand = QtGui.QAction(icon, translate("BIM", "Expand children"), menu)
|
||||
action_expand = QtGui.QAction(icon, translate("BIM", "Expand Children"), menu)
|
||||
action_expand.triggered.connect(self.expandChildren)
|
||||
actions.append(action_expand)
|
||||
if vobj.Object.Group:
|
||||
action_shrink = QtGui.QAction(icon, translate("BIM", "Collapse children"), menu)
|
||||
action_shrink = QtGui.QAction(icon, translate("BIM", "Collapse Children"), menu)
|
||||
action_shrink.triggered.connect(self.collapseChildren)
|
||||
actions.append(action_shrink)
|
||||
if vobj.Object.ShapeMode == "Shape":
|
||||
t = translate("BIM", "Remove shape")
|
||||
t = translate("BIM", "Remove Shape")
|
||||
else:
|
||||
t = translate("BIM", "Load shape")
|
||||
t = translate("BIM", "Load Shape")
|
||||
action_shape = QtGui.QAction(icon, t, menu)
|
||||
action_shape.triggered.connect(self.switchShape)
|
||||
actions.append(action_shape)
|
||||
if vobj.Object.ShapeMode == "None":
|
||||
action_coin = QtGui.QAction(icon, translate("BIM", "Load representation"), menu)
|
||||
action_coin = QtGui.QAction(icon, translate("BIM", "Load Representation"), menu)
|
||||
action_coin.triggered.connect(self.switchCoin)
|
||||
actions.append(action_coin)
|
||||
if element and ifc_tools.has_representation(element):
|
||||
action_geom = QtGui.QAction(icon, translate("BIM", "Add geometry properties"), menu)
|
||||
action_geom = QtGui.QAction(icon, translate("BIM", "Add Geometry Properties"), menu)
|
||||
action_geom.triggered.connect(self.addGeometryProperties)
|
||||
actions.append(action_geom)
|
||||
action_tree = QtGui.QAction(icon, translate("BIM", "Show geometry tree"), menu)
|
||||
action_tree = QtGui.QAction(icon, translate("BIM", "Show Geometry Tree"), menu)
|
||||
action_tree.triggered.connect(self.showTree)
|
||||
actions.append(action_tree)
|
||||
if ifc_psets.has_psets(self.Object):
|
||||
action_props = QtGui.QAction(icon, translate("BIM", "Expand property sets"), menu)
|
||||
action_props = QtGui.QAction(icon, translate("BIM", "Expand Property Sets"), menu)
|
||||
action_props.triggered.connect(self.showProps)
|
||||
actions.append(action_props)
|
||||
if ifc_materials.get_material(self.Object):
|
||||
action_material = QtGui.QAction(icon, translate("BIM", "Load material"), menu)
|
||||
action_material = QtGui.QAction(icon, translate("BIM", "Load Material"), menu)
|
||||
action_material.triggered.connect(self.addMaterial)
|
||||
actions.append(action_material)
|
||||
if ifc_types.is_typable(self.Object):
|
||||
action_type = QtGui.QAction(icon, translate("BIM", "Convert to type"), menu)
|
||||
action_type = QtGui.QAction(icon, translate("BIM", "Convert to Type"), menu)
|
||||
action_type.triggered.connect(self.convertToType)
|
||||
actions.append(action_type)
|
||||
if actions:
|
||||
@@ -156,7 +156,7 @@ class ifc_vp_object:
|
||||
|
||||
# generic actions
|
||||
ficon = QtGui.QIcon.fromTheme("folder", QtGui.QIcon(":/icons/folder.svg"))
|
||||
action_group = QtGui.QAction(ficon, translate("BIM", "Create group..."), menu)
|
||||
action_group = QtGui.QAction(ficon, translate("BIM", "New Group"), menu)
|
||||
action_group.triggered.connect(self.createGroup)
|
||||
menu.addAction(action_group)
|
||||
|
||||
@@ -432,14 +432,14 @@ class ifc_vp_document(ifc_vp_object):
|
||||
|
||||
icon = QtGui.QIcon(":/icons/IFC.svg")
|
||||
if vobj.Object.Modified:
|
||||
action_diff = QtGui.QAction(icon, translate("BIM", "View diff..."), menu)
|
||||
action_diff = QtGui.QAction(icon, translate("BIM", "View Diff"), menu)
|
||||
action_diff.triggered.connect(self.diff)
|
||||
ifc_menu.addAction(action_diff)
|
||||
if vobj.Object.IfcFilePath:
|
||||
action_save = QtGui.QAction(icon, translate("BIM", "Save IFC file"), menu)
|
||||
action_save = QtGui.QAction(icon, translate("BIM", "Save IFC File"), menu)
|
||||
action_save.triggered.connect(self.save)
|
||||
ifc_menu.addAction(action_save)
|
||||
action_saveas = QtGui.QAction(icon, translate("BIM", "Save IFC file as..."), menu)
|
||||
action_saveas = QtGui.QAction(icon, translate("BIM", "Save IFC File As…"), menu)
|
||||
action_saveas.triggered.connect(self.saveas)
|
||||
ifc_menu.addAction(action_saveas)
|
||||
|
||||
@@ -491,7 +491,7 @@ class ifc_vp_document(ifc_vp_object):
|
||||
msg = "Warning: This operation will change the whole IFC file contents "
|
||||
msg += "and will not give versionable results. It is best to not do "
|
||||
msg += "this while you are in the middle of a project. "
|
||||
msg += "Do you wish to continue anyway?"
|
||||
msg += "Continue anyway?"
|
||||
dlg = QtGui.QMessageBox.question(
|
||||
None,
|
||||
"Replace IFC file schema?",
|
||||
@@ -611,7 +611,7 @@ class ifc_vp_material:
|
||||
|
||||
icon = QtGui.QIcon(":/icons/IFC.svg")
|
||||
if ifc_psets.has_psets(self.Object):
|
||||
action_props = QtGui.QAction(icon, translate("BIM", "Expand property sets"), menu)
|
||||
action_props = QtGui.QAction(icon, translate("BIM", "Expand Property Sets"), menu)
|
||||
action_props.triggered.connect(self.showProps)
|
||||
menu.addAction(action_props)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user