Fix Text Literals for Translation

- these strings were noted as being difficult to
  translate on Crowdin
This commit is contained in:
wandererfan
2019-01-15 16:07:05 -05:00
committed by wmayer
parent ed06cbe626
commit 7bd3bb8371
5 changed files with 23 additions and 21 deletions

View File

@@ -727,7 +727,7 @@ CmdTechDrawClipPlus::CmdTechDrawClipPlus()
: Command("TechDraw_ClipPlus")
{
sGroup = QT_TR_NOOP("TechDraw");
sMenuText = QT_TR_NOOP("Add View to ClipGroup");
sMenuText = QT_TR_NOOP("Add View to Clip group");
sToolTipText = QT_TR_NOOP("Add a View to Clip group");
sWhatsThis = "TechDraw_ClipPlus";
sStatusTip = sToolTipText;
@@ -740,7 +740,7 @@ void CmdTechDrawClipPlus::activated(int iMsg)
std::vector<Gui::SelectionObject> selection = getSelection().getSelectionEx();
if (selection.size() != 2) {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
QObject::tr("Select 1 DrawViewClip and 1 DrawView."));
QObject::tr("Select 1 Clip group and 1 View."));
return;
}
@@ -756,12 +756,12 @@ void CmdTechDrawClipPlus::activated(int iMsg)
}
if (!view) {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
QObject::tr("Select exactly one Drawing View object."));
QObject::tr("Select exactly one View to add to group."));
return;
}
if (!clip) {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
QObject::tr("Select exactly one Clip object."));
QObject::tr("Select exactly one Clip group."));
return;
}
@@ -824,7 +824,7 @@ void CmdTechDrawClipMinus::activated(int iMsg)
if (dObj.empty()) {
QMessageBox::warning( Gui::getMainWindow(),
QObject::tr("Wrong selection"),
QObject::tr("Select exactly one Drawing View object.") );
QObject::tr("Select exactly one View to remove from Group.") );
return;
}
@@ -939,8 +939,8 @@ CmdTechDrawDraftView::CmdTechDrawDraftView()
{
// setting the Gui eye-candy
sGroup = QT_TR_NOOP("TechDraw");
sMenuText = QT_TR_NOOP("Insert a DraftView");
sToolTipText = QT_TR_NOOP("Inserts a Draft WB object");
sMenuText = QT_TR_NOOP("Insert a DraftWB object");
sToolTipText = QT_TR_NOOP("Insert a View of a Draft Workbench object");
sWhatsThis = "TechDraw_NewDraft";
sStatusTip = sToolTipText;
sPixmap = "actions/techdraw-draft-view";
@@ -992,8 +992,8 @@ CmdTechDrawArchView::CmdTechDrawArchView()
{
// setting the Gui eye-candy
sGroup = QT_TR_NOOP("TechDraw");
sMenuText = QT_TR_NOOP("Insert an ArchView");
sToolTipText = QT_TR_NOOP("Inserts a view of an Arch Section Plane");
sMenuText = QT_TR_NOOP("Insert a Section Plane");
sToolTipText = QT_TR_NOOP("Inserts a view of a Section Plane from Arch Workbench");
sWhatsThis = "TechDraw_NewArch";
sStatusTip = sToolTipText;
sPixmap = "actions/techdraw-arch-view";
@@ -1027,7 +1027,7 @@ void CmdTechDrawArchView::activated(int iMsg)
archObj = objects[ifound];
} else {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
QObject::tr("There is no Arch Section Plane in selection."));
QObject::tr("There is no Section Plane in selection."));
return;
}

View File

@@ -200,7 +200,7 @@ void CmdTechDrawNewDimension::activated(int iMsg)
subs.push_back(SubNames[1]);
} else {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Incorrect Selection"),
QObject::tr("Can't make a Dimension from this selection"));
QObject::tr("Can not make a Dimension from this selection"));
return;
}
@@ -1079,7 +1079,7 @@ bool _checkDrawViewPart(Gui::Command* cmd) {
if( !objFeat ) {
QMessageBox::warning( Gui::getMainWindow(),
QObject::tr("Incorrect selection"),
QObject::tr("No DrawViewPart in selection.") );
QObject::tr("No View of a Part in selection.") );
return false;
}
return true;
@@ -1096,7 +1096,7 @@ bool _checkPartFeature(Gui::Command* cmd) {
}
if(!result) {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Incorrect selection"),
QObject::tr("No DrawViewPart in selection."));
QObject::tr("No Feature with Shape in selection."));
}
return result;
}

View File

@@ -7,11 +7,11 @@
<x>0</x>
<y>0</y>
<width>558</width>
<height>883</height>
<height>935</height>
</rect>
</property>
<property name="windowTitle">
<string>TechDraw 1</string>
<string>TechDraw General</string>
</property>
<layout class="QGridLayout" name="gridLayout_5">
<item row="0" column="0">
@@ -671,7 +671,7 @@
<item row="2" column="0">
<widget class="QLabel" name="lbl_TemplateDot">
<property name="text">
<string>Template Dot Size</string>
<string>Editable Text Marker Size</string>
</property>
</widget>
</item>
@@ -707,7 +707,7 @@
<string>View Label size in units</string>
</property>
<property name="value">
<double>3.500000000000000</double>
<double>6.000000000000000</double>
</property>
<property name="prefEntry" stdset="0">
<cstring>LabelSize</cstring>
@@ -720,7 +720,7 @@
<item row="2" column="2">
<widget class="Gui::PrefUnitSpinBox" name="plsb_TemplateDot">
<property name="toolTip">
<string>Green edit dot size in units</string>
<string>Size of editable text marker in Templates (green dot).</string>
</property>
<property name="value">
<double>3.000000000000000</double>

View File

@@ -7,11 +7,11 @@
<x>0</x>
<y>0</y>
<width>521</width>
<height>716</height>
<height>732</height>
</rect>
</property>
<property name="windowTitle">
<string>TechDraw 2</string>
<string>TechDraw Dimensions</string>
</property>
<layout class="QGridLayout" name="gridLayout_5">
<item row="0" column="0">

View File

@@ -120,7 +120,9 @@ MDIViewPage::MDIViewPage(ViewProviderPage *pageVp, Gui::Document* doc, QWidget*
isSelectionBlocked = false;
setWindowTitle(tr("dummy[*]")); //Yuck. prevents "QWidget::setWindowModified: The window title does not contain a '[*]' placeholder"
QString tabText = QString::fromUtf8(pageVp->getDrawPage()->getNameInDocument());
tabText += QString::fromUtf8("[*]");
setWindowTitle(tabText);
setCentralWidget(m_view); //this makes m_view a Qt child of MDIViewPage
// Connect Signals and Slots