TechDraw: Translate some window titles
This commit is contained in:
committed by
WandererFan
parent
f4cb4de817
commit
acf4cf2446
@@ -360,7 +360,7 @@ bool CmdTechDrawExtensionInsertPrefixGroup::isActive()
|
||||
void execIncreaseDecreaseDecimal(Gui::Command* cmd, int delta) {
|
||||
// increase or decrease number of decimal places of a measure
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
if (!_checkSelection(cmd, selection, "TechDraw Increase/Decrease Decimal")) {
|
||||
if (!_checkSelection(cmd, selection, QT_TRANSLATE_NOOP("QObject","TechDraw Increase/Decrease Decimal"))) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -555,7 +555,7 @@ bool CmdTechDrawExtensionIncreaseDecreaseGroup::isActive()
|
||||
void execPosHorizChainDimension(Gui::Command* cmd) {
|
||||
// position a horizontal dimension chain
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
if (!_checkSelection(cmd, selection, "TechDraw PosHorizChainDimension")) {
|
||||
if (!_checkSelection(cmd, selection, QT_TRANSLATE_NOOP("QObject","TechDraw PosHorizChainDimension"))) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -616,7 +616,7 @@ bool CmdTechDrawExtensionPosHorizChainDimension::isActive()
|
||||
void execPosVertChainDimension(Gui::Command* cmd) {
|
||||
// position a vertical dimension chain
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
if (!_checkSelection(cmd, selection, "TechDraw PosVertChainDimension")) {
|
||||
if (!_checkSelection(cmd, selection, QT_TRANSLATE_NOOP("QObject","TechDraw PosVertChainDimension"))) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -678,7 +678,7 @@ bool CmdTechDrawExtensionPosVertChainDimension::isActive()
|
||||
void execPosObliqueChainDimension(Gui::Command* cmd) {
|
||||
// position an oblique dimension chain
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
if (!_checkSelection(cmd, selection, "TechDraw PosObliqueChainDimension")) {
|
||||
if (!_checkSelection(cmd, selection, QT_TRANSLATE_NOOP("QObject","TechDraw PosObliqueChainDimension"))) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -864,7 +864,7 @@ bool CmdTechDrawExtensionPosChainDimensionGroup::isActive()
|
||||
void execCascadeHorizDimension(Gui::Command* cmd) {
|
||||
// cascade horizontal dimensions
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
if (!_checkSelection(cmd, selection, "TechDraw CascadeHorizDimension")) {
|
||||
if (!_checkSelection(cmd, selection, QT_TRANSLATE_NOOP("QObject","TechDraw CascadeHorizDimension"))) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -930,7 +930,7 @@ bool CmdTechDrawExtensionCascadeHorizDimension::isActive()
|
||||
void execCascadeVertDimension(Gui::Command* cmd) {
|
||||
// cascade vertical dimensions
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
if (!_checkSelection(cmd, selection, "TechDraw CascadeVertDimension")) {
|
||||
if (!_checkSelection(cmd, selection, QT_TRANSLATE_NOOP("QObject","TechDraw CascadeVertDimension"))) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -997,7 +997,7 @@ bool CmdTechDrawExtensionCascadeVertDimension::isActive()
|
||||
void execCascadeObliqueDimension(Gui::Command* cmd) {
|
||||
// cascade oblique dimensions
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
if (!_checkSelection(cmd, selection, "TechDraw CascadeObliqueDimension")) {
|
||||
if (!_checkSelection(cmd, selection, QT_TRANSLATE_NOOP("QObject","TechDraw CascadeObliqueDimension"))) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1196,7 +1196,7 @@ void execCreateHorizChainDimension(Gui::Command* cmd) {
|
||||
//create a horizontal chain dimension
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
TechDraw::DrawViewPart* objFeat;
|
||||
if (!_checkSelObjAndSubs(cmd, selection, objFeat, "TechDraw Create Horizontal Chain Dimension")) {
|
||||
if (!_checkSelObjAndSubs(cmd, selection, objFeat, QT_TRANSLATE_NOOP("QObject","TechDraw Create Horizontal Chain Dimension"))) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1262,7 +1262,7 @@ void execCreateVertChainDimension(Gui::Command* cmd) {
|
||||
//create a vertical chain dimension
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
TechDraw::DrawViewPart* objFeat;
|
||||
if (!_checkSelObjAndSubs(cmd, selection, objFeat, "TechDraw Create Vertical Chain Dimension")) {
|
||||
if (!_checkSelObjAndSubs(cmd, selection, objFeat, QT_TRANSLATE_NOOP("QObject","TechDraw Create Vertical Chain Dimension"))) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1328,7 +1328,7 @@ void execCreateObliqueChainDimension(Gui::Command* cmd) {
|
||||
// create an oblique chain dimension
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
TechDraw::DrawViewPart* objFeat;
|
||||
if (!_checkSelObjAndSubs(cmd, selection, objFeat, "TechDraw Create Oblique Chain Dimension")){
|
||||
if (!_checkSelObjAndSubs(cmd, selection, objFeat, QT_TRANSLATE_NOOP("QObject","TechDraw Create Oblique Chain Dimension"))){
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1536,7 +1536,7 @@ void execCreateHorizCoordDimension(Gui::Command* cmd) {
|
||||
//create horizontal coordinate dimensions
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
TechDraw::DrawViewPart* objFeat;
|
||||
if (!_checkSelObjAndSubs(cmd, selection, objFeat, "TechDraw Create Horizontal Coord Dimension")) {
|
||||
if (!_checkSelObjAndSubs(cmd, selection, objFeat, QT_TRANSLATE_NOOP("QObject","TechDraw Create Horizontal Coord Dimension"))) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1609,7 +1609,7 @@ void execCreateVertCoordDimension(Gui::Command* cmd) {
|
||||
//create vertical coordinate dimensions
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
TechDraw::DrawViewPart* objFeat;
|
||||
if (!_checkSelObjAndSubs(cmd, selection, objFeat, "TechDraw Create Vertical Coord Dimension")) {
|
||||
if (!_checkSelObjAndSubs(cmd, selection, objFeat, QT_TRANSLATE_NOOP("QObject","TechDraw Create Vertical Coord Dimension"))) {
|
||||
return;
|
||||
}
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Vert Coord Dim"));
|
||||
@@ -1682,7 +1682,7 @@ void execCreateObliqueCoordDimension(Gui::Command* cmd) {
|
||||
//create oblique coordinate dimensions
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
TechDraw::DrawViewPart* objFeat;
|
||||
if (!_checkSelObjAndSubs(cmd, selection, objFeat, "TechDraw Create Oblique Coord Dimension")) {
|
||||
if (!_checkSelObjAndSubs(cmd, selection, objFeat, QT_TRANSLATE_NOOP("QObject","TechDraw Create Oblique Coord Dimension"))) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1905,7 +1905,7 @@ void execCreateHorizChamferDimension(Gui::Command* cmd) {
|
||||
//create a horizontal chamfer dimension
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
TechDraw::DrawViewPart* objFeat;
|
||||
if (!_checkSelObjAndSubs(cmd, selection, objFeat, "TechDraw Create Horizontal Chamfer Dimension")) {
|
||||
if (!_checkSelObjAndSubs(cmd, selection, objFeat, QT_TRANSLATE_NOOP("QObject","TechDraw Create Horizontal Chamfer Dimension"))) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1974,7 +1974,7 @@ void execCreateVertChamferDimension(Gui::Command* cmd) {
|
||||
//create a vertical chamfer dimension
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
TechDraw::DrawViewPart* objFeat;
|
||||
if (!_checkSelObjAndSubs(cmd, selection, objFeat, "TechDraw Create Vertical Chamfer Dimension")) {
|
||||
if (!_checkSelObjAndSubs(cmd, selection, objFeat, QT_TRANSLATE_NOOP("QObject","TechDraw Create Vertical Chamfer Dimension"))) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2160,7 +2160,7 @@ void CmdTechDrawExtensionCreateLengthArc::activated(int iMsg) {
|
||||
Q_UNUSED(iMsg);
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
TechDraw::DrawViewPart* objFeat;
|
||||
if (!_checkSelObjAndSubs(this, selection, objFeat, "TechDraw Create Arc Length Dimension")) {
|
||||
if (!_checkSelObjAndSubs(this, selection, objFeat, QT_TRANSLATE_NOOP("QObject","TechDraw Create Arc Length Dimension"))) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2237,7 +2237,7 @@ void CmdTechDrawExtensionCustomizeFormat::activated(int iMsg)
|
||||
{
|
||||
Q_UNUSED(iMsg);
|
||||
std::vector<Gui::SelectionObject> selected;
|
||||
if (!_checkSelection(this, selected, "TechDraw Customize Format"))
|
||||
if (!_checkSelection(this, selected, QT_TRANSLATE_NOOP("QObject","TechDraw Customize Format")))
|
||||
return;
|
||||
auto object = selected[0].getObject();
|
||||
if (object->isDerivedFrom(TechDraw::DrawViewDimension::getClassTypeId()) ||
|
||||
|
||||
Reference in New Issue
Block a user