Fix 9 messages always shown in French; add missing English

Nine messages were never passed through tr(), so every user saw them in
French: the undo entries for grouping and ungrouping terminals, for
editing an arc (3), an ellipse, a rectangle and a PLC table in the
element editor, and the error box when integrating a title block
template fails. They are now wrapped, text unchanged.

qet_en.ts also lacked English for 63 messages added since the last
translations update (Customize dialog, mouse gestures, toolbar contents,
mirror, element scale, paste element information, paper format).
update_translations was run on qet_en.ts with lupdate's guessing
heuristics off, then the 72 new entries were translated. Most of the
diff is lupdate refreshing line numbers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ispyisail
2026-10-08 12:29:08 +13:00
parent ef795a21e5
commit d0657f36db
7 changed files with 1316 additions and 907 deletions
@@ -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()
+3 -3
View File
@@ -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);
}
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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"),