add dynamic language change support
add "en" ts
This commit is contained in:
@@ -173,6 +173,17 @@ bool BlockEditor::eventFilter(QObject *o, QEvent *e) {
|
||||
}
|
||||
|
||||
|
||||
void BlockEditor::changeEvent(QEvent * e) {
|
||||
QWidget::changeEvent(e);
|
||||
switch (e->type()) {
|
||||
case QEvent::LanguageChange:
|
||||
ui->retranslateUi(this);
|
||||
break;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void BlockEditor::on_actionRemove_items_triggered() {
|
||||
QList<QGraphicsItem*> si = ui->blockView->scene()->selectedItems();
|
||||
foreach (QGraphicsItem * i, si)
|
||||
@@ -342,12 +353,12 @@ QWidget * PinAlignDelegate::createEditor(QWidget * parent, const QStyleOptionVie
|
||||
QString PinAlignDelegate::displayText(const QVariant & value, const QLocale & locale) const {
|
||||
int cv = value.toInt();
|
||||
switch (cv) {
|
||||
case Qt::AlignLeft: return "Left"; break;
|
||||
case Qt::AlignRight: return "Right"; break;
|
||||
case Qt::AlignTop: return "Top"; break;
|
||||
case Qt::AlignBottom: return "Bottom"; break;
|
||||
case Qt::AlignLeft: return tr("Left"); break;
|
||||
case Qt::AlignRight: return tr("Right"); break;
|
||||
case Qt::AlignTop: return tr("Top"); break;
|
||||
case Qt::AlignBottom: return tr("Bottom"); break;
|
||||
}
|
||||
return "unknown";
|
||||
return tr("unknown");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -71,6 +71,7 @@ private slots:
|
||||
|
||||
private:
|
||||
bool eventFilter(QObject * o, QEvent * e);
|
||||
void changeEvent(QEvent * e);
|
||||
|
||||
Ui::BlockEditor *ui;
|
||||
QMap<int, QTreeWidgetItem*> pin_tli;
|
||||
|
||||
@@ -225,7 +225,7 @@ bool _DTSizeItem::sceneEventFilter(QGraphicsItem * watched, QEvent * event) {
|
||||
|
||||
|
||||
|
||||
DrawTools::DrawTools(BlockView * parent): QObject(parent),
|
||||
DrawTools::DrawTools(BlockView * parent): QWidget(parent),
|
||||
actions_Z_up(this), actions_Z_top(this), actions_Z_down(this), actions_Z_bottom(this) {
|
||||
widget_props = new QWidget();
|
||||
ui = new Ui::DrawTools();
|
||||
@@ -238,9 +238,6 @@ actions_Z_up(this), actions_Z_top(this), actions_Z_down(this), actions_Z_bottom(
|
||||
int fh = qMax<int>(QApplication::fontMetrics().size(0, "0").height(), 22);
|
||||
int thick = lineThickness();
|
||||
QSize sz(fh * 2.5, fh);
|
||||
QStringList styles;
|
||||
styles << tr("NoPen") << tr("Solid") << tr("Dash")
|
||||
<< tr("Dot") << tr("Dash-Dot") << tr("Dash-Dot-Dot");
|
||||
ui->comboLineStyle->setIconSize(sz);
|
||||
for (int i = 0; i < 6; i++) {
|
||||
QPixmap pix(sz);
|
||||
@@ -249,7 +246,7 @@ actions_Z_up(this), actions_Z_top(this), actions_Z_down(this), actions_Z_bottom(
|
||||
p.setPen(QPen(Qt::black, thick, (Qt::PenStyle)i));
|
||||
p.drawLine(0, pix.height() / 2, pix.width(), pix.height() / 2);
|
||||
p.end();
|
||||
ui->comboLineStyle->addItem(QIcon(pix), styles[i]);
|
||||
ui->comboLineStyle->addItem(QIcon(pix), "");
|
||||
}
|
||||
#ifdef Q_OS_MACOS
|
||||
setAlignCompact(true);
|
||||
@@ -264,22 +261,21 @@ actions_Z_up(this), actions_Z_top(this), actions_Z_down(this), actions_Z_bottom(
|
||||
new_item = cur_item = 0;
|
||||
view_ = 0;
|
||||
resize_enabled = true;
|
||||
text_dlg.setWindowTitle(tr("Edit text"));
|
||||
text_dlg.setLayout(new QBoxLayout(QBoxLayout::TopToBottom));
|
||||
QDialogButtonBox * bbox = new QDialogButtonBox(QDialogButtonBox::Save | QDialogButtonBox::Cancel);
|
||||
connect(bbox, SIGNAL(accepted()), &text_dlg, SLOT(accept()));
|
||||
connect(bbox, SIGNAL(rejected()), &text_dlg, SLOT(reject()));
|
||||
text_dlg.layout()->addWidget(&text_edit);
|
||||
text_dlg.layout()->addWidget(bbox);
|
||||
actions_Z_up.setText(tr("Bring\nforward")); actions_Z_up.setIcon(QIcon(":/icons/z-up.png")); actions_Z_up.setEnabled(false);
|
||||
actions_Z_top.setText(tr("Bring\nto front")); actions_Z_top.setIcon(QIcon(":/icons/z-top.png")); actions_Z_top.setEnabled(false);
|
||||
actions_Z_down.setText(tr("Send\nbackward")); actions_Z_down.setIcon(QIcon(":/icons/z-down.png")); actions_Z_down.setEnabled(false);
|
||||
actions_Z_bottom.setText(tr("Send\nto back")); actions_Z_bottom.setIcon(QIcon(":/icons/z-bottom.png")); actions_Z_bottom.setEnabled(false);
|
||||
actions_add << newAction(tr("Draw\nRectangle"), QIcon(":/icons/draw-rectangle.png"), 1)
|
||||
<< newAction(tr("Draw\nEllipse"), QIcon(":/icons/draw-ellipse.png"), 2)
|
||||
<< newAction(tr("Draw\nLine"), QIcon(":/icons/draw-line.png"), 4)
|
||||
<< newAction(tr("Draw\nText"), QIcon(":/icons/draw-text.png"), 0)
|
||||
<< newAction(tr("Draw\nImage"), QIcon(":/icons/view-preview.png"), 3);
|
||||
actions_Z_up.setIcon(QIcon(":/icons/z-up.png")); actions_Z_up.setEnabled(false);
|
||||
actions_Z_top.setIcon(QIcon(":/icons/z-top.png")); actions_Z_top.setEnabled(false);
|
||||
actions_Z_down.setIcon(QIcon(":/icons/z-down.png")); actions_Z_down.setEnabled(false);
|
||||
actions_Z_bottom.setIcon(QIcon(":/icons/z-bottom.png")); actions_Z_bottom.setEnabled(false);
|
||||
actions_add << newAction(QIcon(":/icons/draw-rectangle.png"), 1)
|
||||
<< newAction(QIcon(":/icons/draw-ellipse.png"), 2)
|
||||
<< newAction(QIcon(":/icons/draw-line.png"), 4)
|
||||
<< newAction(QIcon(":/icons/draw-text.png"), 0)
|
||||
<< newAction(QIcon(":/icons/view-preview.png"), 3);
|
||||
buttons_align << ui->buttonAlignTL << ui->buttonAlignTC << ui->buttonAlignTR
|
||||
<< ui->buttonAlignCL << ui->buttonAlignCC << ui->buttonAlignCR
|
||||
<< ui->buttonAlignBL << ui->buttonAlignBC << ui->buttonAlignBR;
|
||||
@@ -321,6 +317,7 @@ actions_Z_up(this), actions_Z_top(this), actions_Z_down(this), actions_Z_bottom(
|
||||
connect(&actions_Z_down, SIGNAL(triggered(bool)), this, SLOT(actionZ_triggered()));
|
||||
connect(&actions_Z_bottom, SIGNAL(triggered(bool)), this, SLOT(actionZ_triggered()));
|
||||
setBlockView(parent);
|
||||
retranslate();
|
||||
}
|
||||
|
||||
|
||||
@@ -331,6 +328,24 @@ DrawTools::~DrawTools() {
|
||||
}
|
||||
|
||||
|
||||
void DrawTools::retranslate() {
|
||||
QStringList styles;
|
||||
styles << tr("NoPen") << tr("Solid") << tr("Dash")
|
||||
<< tr("Dot") << tr("Dash-Dot") << tr("Dash-Dot-Dot");
|
||||
for (int i = 0; i < styles.size(); i++) ui->comboLineStyle->setItemText(i, styles[i]);
|
||||
text_dlg.setWindowTitle(tr("Edit text"));
|
||||
actions_Z_up.setText(tr("Bring\nforward"));
|
||||
actions_Z_top.setText(tr("Bring\nto front"));
|
||||
actions_Z_down.setText(tr("Send\nbackward"));
|
||||
actions_Z_bottom.setText(tr("Send\nto back"));
|
||||
actions_add[0]->setText(tr("Draw\nRectangle"));
|
||||
actions_add[1]->setText(tr("Draw\nEllipse"));
|
||||
actions_add[2]->setText(tr("Draw\nLine"));
|
||||
actions_add[3]->setText(tr("Draw\nText"));
|
||||
actions_add[4]->setText(tr("Draw\nImage"));
|
||||
}
|
||||
|
||||
|
||||
void DrawTools::setBlockView(BlockView * v) {
|
||||
if (view_) view_->viewport()->removeEventFilter(this);
|
||||
disconnect(this, SLOT(selectionChanged()));
|
||||
@@ -454,6 +469,18 @@ bool DrawTools::eventFilter(QObject * o, QEvent * e) {
|
||||
}
|
||||
|
||||
|
||||
void DrawTools::changeEvent(QEvent * e) {
|
||||
QWidget::changeEvent(e);
|
||||
switch (e->type()) {
|
||||
case QEvent::LanguageChange:
|
||||
ui->retranslateUi(this);
|
||||
retranslate();
|
||||
break;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
QComboBox * DrawTools::textEditCombo() const {
|
||||
return ui->comboText;
|
||||
}
|
||||
@@ -468,8 +495,8 @@ void DrawTools::changeEvent(QEvent * e) {
|
||||
}
|
||||
*/
|
||||
|
||||
QAction * DrawTools::newAction(const QString & text, const QIcon & icon, int type) {
|
||||
QAction * ret = new QAction(icon, text, this);
|
||||
QAction * DrawTools::newAction(const QIcon & icon, int type) {
|
||||
QAction * ret = new QAction(icon, QString(), this);
|
||||
ret->setCheckable(true);
|
||||
ret->setData(type);
|
||||
return ret;
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace Ui {
|
||||
}
|
||||
|
||||
|
||||
class QAD_EXPORT DrawTools: public QObject
|
||||
class QAD_EXPORT DrawTools: public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(bool resizeHandlesEnabled READ isResizeHandlesEnabled WRITE setResizeHandlesEnabled)
|
||||
@@ -92,8 +92,9 @@ public:
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject * o, QEvent * e);
|
||||
void changeEvent(QEvent * e);
|
||||
|
||||
QAction * newAction(const QString & text, const QIcon & icon, int type);
|
||||
QAction * newAction(const QIcon & icon, int type);
|
||||
void setToolButtonsEnabled(bool pen, bool brush, bool wid_hei);
|
||||
void blockPropSignals(bool block_);
|
||||
void actionAlignTrigger(bool vert, Qt::AlignmentFlag value);
|
||||
@@ -150,6 +151,8 @@ signals:
|
||||
void itemEdited(QGraphicsItem * item);
|
||||
void itemZChanged(QGraphicsItem * item);
|
||||
|
||||
private:
|
||||
void retranslate();
|
||||
};
|
||||
|
||||
|
||||
|
||||
383
qad/blockview/lang/qad_blockview_en.ts
Normal file
383
qad/blockview/lang/qad_blockview_en.ts
Normal file
@@ -0,0 +1,383 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="en_US">
|
||||
<context>
|
||||
<name>BlockBusItem</name>
|
||||
<message>
|
||||
<location filename="../blockbusitem.cpp" line="499"/>
|
||||
<source>Add point: Ctrl + LeftClick
|
||||
Remove point\segment: Ctrl + RightClick
|
||||
New branch: Shift + LeftClick
|
||||
Remove connection: Shift + RightClick</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>BlockEditor</name>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="14"/>
|
||||
<source>Block editor</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="32"/>
|
||||
<source>Block parameters</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="59"/>
|
||||
<source>Width:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="79"/>
|
||||
<source>Heigth:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="99"/>
|
||||
<source>Pins margin:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="119"/>
|
||||
<source>Color:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="130"/>
|
||||
<source>Pins</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="179"/>
|
||||
<source>Name</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="184"/>
|
||||
<source>Bus</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="194"/>
|
||||
<source>Add</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="205"/>
|
||||
<source>Clone</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="232"/>
|
||||
<source>Remove selected</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="243"/>
|
||||
<source>Remove all</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="346"/>
|
||||
<source>Save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="353"/>
|
||||
<location filename="../blockeditor.ui" line="383"/>
|
||||
<source>Ctrl+S</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="376"/>
|
||||
<source>Save as ...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="406"/>
|
||||
<source>Load ...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="413"/>
|
||||
<source>Ctrl+O</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="433"/>
|
||||
<source>Clear</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="450"/>
|
||||
<source>Remove items</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="453"/>
|
||||
<source>Del</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DrawTools</name>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="14"/>
|
||||
<source>Form</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="51"/>
|
||||
<source>Font ...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="62"/>
|
||||
<source>Text:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="91"/>
|
||||
<location filename="../drawtools.ui" line="94"/>
|
||||
<source>Edit text ...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="123"/>
|
||||
<location filename="../drawtools.ui" line="137"/>
|
||||
<location filename="../drawtools.ui" line="230"/>
|
||||
<source>Align center left</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="178"/>
|
||||
<source>Align center</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="204"/>
|
||||
<source>Align center right</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="256"/>
|
||||
<source>Align top right</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="282"/>
|
||||
<source>Align bottom right</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="308"/>
|
||||
<source>Align bottom center</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="334"/>
|
||||
<source>Align top left</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="360"/>
|
||||
<source>Align top center</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="386"/>
|
||||
<source>Align bottom left</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="471"/>
|
||||
<source>Width: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="506"/>
|
||||
<source>Thickness: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="522"/>
|
||||
<source>Height:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="538"/>
|
||||
<source>Style:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="591"/>
|
||||
<source>Load image ...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="608"/>
|
||||
<source>Paste image ...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="641"/>
|
||||
<source>Scale:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="750"/>
|
||||
<source>Top</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="758"/>
|
||||
<location filename="../drawtools.ui" line="761"/>
|
||||
<location filename="../drawtools.ui" line="780"/>
|
||||
<location filename="../drawtools.ui" line="783"/>
|
||||
<source>Center</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="769"/>
|
||||
<location filename="../drawtools.ui" line="772"/>
|
||||
<source>Bottom</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="791"/>
|
||||
<location filename="../drawtools.ui" line="794"/>
|
||||
<source>Left</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="802"/>
|
||||
<location filename="../drawtools.ui" line="805"/>
|
||||
<source>Right</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="333"/>
|
||||
<source>NoPen</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="333"/>
|
||||
<source>Solid</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="333"/>
|
||||
<source>Dash</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="334"/>
|
||||
<source>Dot</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="334"/>
|
||||
<source>Dash-Dot</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="334"/>
|
||||
<source>Dash-Dot-Dot</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="336"/>
|
||||
<source>Edit text</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="337"/>
|
||||
<source>Bring
|
||||
forward</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="338"/>
|
||||
<source>Bring
|
||||
to front</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="339"/>
|
||||
<source>Send
|
||||
backward</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="340"/>
|
||||
<source>Send
|
||||
to back</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="341"/>
|
||||
<source>Draw
|
||||
Rectangle</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="342"/>
|
||||
<source>Draw
|
||||
Ellipse</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="343"/>
|
||||
<source>Draw
|
||||
Line</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="344"/>
|
||||
<source>Draw
|
||||
Text</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="345"/>
|
||||
<source>Draw
|
||||
Image</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="824"/>
|
||||
<source>Select image</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>PinAlignDelegate</name>
|
||||
<message>
|
||||
<location filename="../blockeditor.cpp" line="356"/>
|
||||
<source>Left</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.cpp" line="357"/>
|
||||
<source>Right</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.cpp" line="358"/>
|
||||
<source>Top</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.cpp" line="359"/>
|
||||
<source>Bottom</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.cpp" line="361"/>
|
||||
<source>unknown</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
@@ -20,7 +20,7 @@ Remove connection: Shift + RightClick</source>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="14"/>
|
||||
<source>Block editor</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Редактор блока</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="32"/>
|
||||
@@ -91,7 +91,7 @@ Remove connection: Shift + RightClick</source>
|
||||
<location filename="../blockeditor.ui" line="353"/>
|
||||
<location filename="../blockeditor.ui" line="383"/>
|
||||
<source>Ctrl+S</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="376"/>
|
||||
@@ -106,7 +106,7 @@ Remove connection: Shift + RightClick</source>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="413"/>
|
||||
<source>Ctrl+O</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="433"/>
|
||||
@@ -121,7 +121,7 @@ Remove connection: Shift + RightClick</source>
|
||||
<message>
|
||||
<location filename="../blockeditor.ui" line="453"/>
|
||||
<source>Del</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@@ -214,7 +214,7 @@ Remove connection: Shift + RightClick</source>
|
||||
<translation>Высота:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="554"/>
|
||||
<location filename="../drawtools.ui" line="538"/>
|
||||
<source>Style:</source>
|
||||
<translation>Стиль:</translation>
|
||||
</message>
|
||||
@@ -226,7 +226,7 @@ Remove connection: Shift + RightClick</source>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="608"/>
|
||||
<source>Paste image ...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation>Вставить картинку ...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.ui" line="641"/>
|
||||
@@ -265,107 +265,135 @@ Remove connection: Shift + RightClick</source>
|
||||
<translation>Право</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="242"/>
|
||||
<location filename="../drawtools.cpp" line="333"/>
|
||||
<source>NoPen</source>
|
||||
<translation>НетЛинии</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="242"/>
|
||||
<location filename="../drawtools.cpp" line="333"/>
|
||||
<source>Solid</source>
|
||||
<translation>Сплошная</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="242"/>
|
||||
<location filename="../drawtools.cpp" line="333"/>
|
||||
<source>Dash</source>
|
||||
<translation>Штриховая</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="243"/>
|
||||
<location filename="../drawtools.cpp" line="334"/>
|
||||
<source>Dot</source>
|
||||
<translation>Пунктирная</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="243"/>
|
||||
<location filename="../drawtools.cpp" line="334"/>
|
||||
<source>Dash-Dot</source>
|
||||
<translation>ШтрихПунктирная</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="243"/>
|
||||
<location filename="../drawtools.cpp" line="334"/>
|
||||
<source>Dash-Dot-Dot</source>
|
||||
<translation>ШтрихПунктирПунктирная</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="267"/>
|
||||
<location filename="../drawtools.cpp" line="336"/>
|
||||
<source>Edit text</source>
|
||||
<translation>Редактировать текст</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="274"/>
|
||||
<location filename="../drawtools.cpp" line="337"/>
|
||||
<source>Bring
|
||||
forward</source>
|
||||
<translation>Переместить
|
||||
выше</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="275"/>
|
||||
<location filename="../drawtools.cpp" line="338"/>
|
||||
<source>Bring
|
||||
to front</source>
|
||||
<translation>На передний
|
||||
фон</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="276"/>
|
||||
<location filename="../drawtools.cpp" line="339"/>
|
||||
<source>Send
|
||||
backward</source>
|
||||
<translation>Переместить
|
||||
ниже</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="277"/>
|
||||
<location filename="../drawtools.cpp" line="340"/>
|
||||
<source>Send
|
||||
to back</source>
|
||||
<translation>На задний
|
||||
фон</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="278"/>
|
||||
<location filename="../drawtools.cpp" line="341"/>
|
||||
<source>Draw
|
||||
Rectangle</source>
|
||||
<translation>Нарисовать
|
||||
прямоугольник</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="279"/>
|
||||
<location filename="../drawtools.cpp" line="342"/>
|
||||
<source>Draw
|
||||
Ellipse</source>
|
||||
<translation>Нарисовать
|
||||
эллипс</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="280"/>
|
||||
<location filename="../drawtools.cpp" line="343"/>
|
||||
<source>Draw
|
||||
Line</source>
|
||||
<translation>Нарисовать
|
||||
линию</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="281"/>
|
||||
<location filename="../drawtools.cpp" line="344"/>
|
||||
<source>Draw
|
||||
Text</source>
|
||||
<translation>Нарисовать
|
||||
текст</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="282"/>
|
||||
<location filename="../drawtools.cpp" line="345"/>
|
||||
<source>Draw
|
||||
Image</source>
|
||||
<translation>Нарисовать
|
||||
картинку</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../drawtools.cpp" line="810"/>
|
||||
<location filename="../drawtools.cpp" line="824"/>
|
||||
<source>Select image</source>
|
||||
<translation>Выбрать картинку</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>PinAlignDelegate</name>
|
||||
<message>
|
||||
<location filename="../blockeditor.cpp" line="356"/>
|
||||
<source>Left</source>
|
||||
<translation>Лево</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.cpp" line="357"/>
|
||||
<source>Right</source>
|
||||
<translation>Право</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.cpp" line="358"/>
|
||||
<source>Top</source>
|
||||
<translation>Верх</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.cpp" line="359"/>
|
||||
<source>Bottom</source>
|
||||
<translation>Низ</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../blockeditor.cpp" line="361"/>
|
||||
<source>unknown</source>
|
||||
<translation>неизвестно</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
lupdate ../ -ts qad_blockview_ru.ts
|
||||
lupdate ../ -ts qad_blockview_en.ts
|
||||
|
||||
Reference in New Issue
Block a user