mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-08 21:14:14 +02:00
Merge pull request #1389 from ispyisail/fix/english-missing-strings
Fix 9 messages always shown in French; add missing English
This commit is contained in:
+1307
-898
File diff suppressed because it is too large
Load Diff
@@ -34,7 +34,7 @@ GroupTerminalsCommand::GroupTerminalsCommand(TerminalStrip *strip,
|
||||
m_receiver(receiver_),
|
||||
m_to_group(to_group)
|
||||
{
|
||||
setText("Grouper un ensemble de bornes");
|
||||
setText(QObject::tr("Grouper un ensemble de bornes"));
|
||||
}
|
||||
|
||||
void GroupTerminalsCommand::undo() {
|
||||
@@ -56,7 +56,7 @@ UnGroupTerminalsCommand::UnGroupTerminalsCommand(TerminalStrip *strip,
|
||||
m_terminal_strip(strip)
|
||||
{
|
||||
setUp(to_ungroup);
|
||||
setText("Dégrouper un ensemble de bornes");
|
||||
setText(QObject::tr("Dégrouper un ensemble de bornes"));
|
||||
}
|
||||
|
||||
void UnGroupTerminalsCommand::undo()
|
||||
|
||||
@@ -172,7 +172,7 @@ void ArcEditor::updateArcS()
|
||||
if (value != arc->property("startAngle"))
|
||||
{
|
||||
QPropertyUndoCommand *undo= new QPropertyUndoCommand(arc, "startAngle", arc->property("startAngle"), value);
|
||||
undo->setText("Modifier l'angle de depart d'un arc");
|
||||
undo->setText(tr("Modifier l'angle de depart d'un arc"));
|
||||
undo->enableAnimation();
|
||||
elementScene()->undoStack().push(undo);
|
||||
}
|
||||
@@ -197,7 +197,7 @@ void ArcEditor::updateArcA()
|
||||
if (value != arc->property("spanAngle"))
|
||||
{
|
||||
QPropertyUndoCommand *undo= new QPropertyUndoCommand(arc, "spanAngle", arc->property("spanAngle"), value);
|
||||
undo->setText("Modifier l'angle d'un arc");
|
||||
undo->setText(tr("Modifier l'angle d'un arc"));
|
||||
undo->enableAnimation();
|
||||
elementScene()->undoStack().push(undo);
|
||||
}
|
||||
@@ -240,7 +240,7 @@ void ArcEditor::updateRect()
|
||||
if (rect != part->property("rect"))
|
||||
{
|
||||
auto undo= new QPropertyUndoCommand(ellipse, "rect", ellipse->property("rect"), rect);
|
||||
undo->setText("Modifier un arc");
|
||||
undo->setText(tr("Modifier un arc"));
|
||||
undo->enableAnimation();
|
||||
elementScene()->undoStack().push(undo);
|
||||
}
|
||||
|
||||
@@ -668,7 +668,7 @@ void PartPlcTable::handlerMouseReleaseEvent(QetGraphicsHandlerItem *qghi, QGraph
|
||||
Q_UNUSED(qghi)
|
||||
Q_UNUSED(event)
|
||||
|
||||
QUndoCommand *undo = new QUndoCommand("Modifier une table PLC");
|
||||
QUndoCommand *undo = new QUndoCommand(tr("Modifier une table PLC"));
|
||||
if (m_old_rect != m_rect) {
|
||||
QPropertyUndoCommand *u = new QPropertyUndoCommand(this, "rect", QVariant(m_old_rect.normalized()), QVariant(m_rect.normalized()), undo);
|
||||
u->setAnimated(true, false);
|
||||
|
||||
@@ -516,7 +516,7 @@ void PartRectangle::handlerMouseReleaseEvent(QetGraphicsHandlerItem *qghi, QGrap
|
||||
|
||||
m_modifie_radius_equaly = false;
|
||||
|
||||
QUndoCommand *undo = new QUndoCommand("Modifier un rectangle");
|
||||
QUndoCommand *undo = new QUndoCommand(tr("Modifier un rectangle"));
|
||||
if (m_old_rect != m_rect) {
|
||||
QPropertyUndoCommand *u = new QPropertyUndoCommand(this, "rect", QVariant(m_old_rect.normalized()), QVariant(m_rect.normalized()), undo);
|
||||
u->setAnimated(true, false);
|
||||
|
||||
@@ -149,7 +149,7 @@ void EllipseEditor::updateRect()
|
||||
if (rect != part->property("rect"))
|
||||
{
|
||||
auto undo= new QPropertyUndoCommand(ellipse, "rect", ellipse->property("rect"), rect);
|
||||
undo->setText("Modifier une ellipse");
|
||||
undo->setText(tr("Modifier une ellipse"));
|
||||
undo->enableAnimation();
|
||||
elementScene()->undoStack().push(undo);
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ QET::Action IntegrationMoveTitleBlockTemplatesHandler::templateAlreadyExists(con
|
||||
@param message Error message.
|
||||
*/
|
||||
QET::Action IntegrationMoveTitleBlockTemplatesHandler::errorWithATemplate(const TitleBlockTemplateLocation &tbt, const QString &message) {
|
||||
QString error_message = QString("Une erreur s'est produite avec le modèle %1 : %2").arg(tbt.toString()).arg(message);
|
||||
QString error_message = tr("Une erreur s'est produite avec le modèle %1 : %2").arg(tbt.toString()).arg(message);
|
||||
QET::QetMessageBox::critical(
|
||||
parent_widget_,
|
||||
tr("Erreur", "message box title"),
|
||||
|
||||
Reference in New Issue
Block a user