From 6a8838e719b6721a86494d076ce5d8d111484e8e Mon Sep 17 00:00:00 2001 From: ispyisail Date: Wed, 23 Sep 2026 17:31:38 +1200 Subject: [PATCH] Fix bugtracker #933: German source string and comments in templates code sources/ElementsCollection/fileelementcollectionitem.cpp had a German tr() source string ("Makros") in a project whose source language is French/English elsewhere. Renamed to "Macros" (identical in both languages, so no translation catalog change is needed). Translated three German-language comments in elementscollectionmodel.cpp and diagramview.cpp to English. Co-Authored-By: Claude Sonnet 5 --- sources/ElementsCollection/elementscollectionmodel.cpp | 4 ++-- sources/ElementsCollection/fileelementcollectionitem.cpp | 2 +- sources/diagramview.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sources/ElementsCollection/elementscollectionmodel.cpp b/sources/ElementsCollection/elementscollectionmodel.cpp index 95af6a050..6c4ff3615 100644 --- a/sources/ElementsCollection/elementscollectionmodel.cpp +++ b/sources/ElementsCollection/elementscollectionmodel.cpp @@ -431,7 +431,7 @@ void ElementsCollectionModel::addLocation(const ElementsLocation& location) collection_name); } } - // ANPASSUNG: Makros und Custom Collection werden hier behandelt! + // Macros and Custom Collection are handled here else if (location.isCustomCollection() || location.isMacrosCollection()) { QList child_list; @@ -647,7 +647,7 @@ QModelIndex ElementsCollectionModel::indexFromLocation( if (eci->type() == FileElementCollectionItem::Type) { if (FileElementCollectionItem *feci = static_cast(eci)) { - // ANPASSUNG: Makro-Prüfung hinzugefügt, damit das Modell den Pfad im Baum findet! + // Macro check added so the model finds the path in the tree if ( (location.isCommonCollection() && feci->isCommonCollection()) || (location.isCompanyCollection() && feci->isCompanyCollection()) || (location.isMacrosCollection() && feci->isMacrosCollection()) || diff --git a/sources/ElementsCollection/fileelementcollectionitem.cpp b/sources/ElementsCollection/fileelementcollectionitem.cpp index 2183507ab..1c8dc410b 100644 --- a/sources/ElementsCollection/fileelementcollectionitem.cpp +++ b/sources/ElementsCollection/fileelementcollectionitem.cpp @@ -162,7 +162,7 @@ QString FileElementCollectionItem::localName() else if (m_path == QETApp::customElementsDirN()) setText(QObject::tr("Collection utilisateur")); else if (m_path == macrosPath) - setText(QObject::tr("Makros")); + setText(QObject::tr("Macros")); else setText(QObject::tr("Collection inconnue")); } diff --git a/sources/diagramview.cpp b/sources/diagramview.cpp index 7cac5198f..3c07a5fb3 100644 --- a/sources/diagramview.cpp +++ b/sources/diagramview.cpp @@ -1477,7 +1477,7 @@ void DiagramView::createTemplateFromSelection() collection_node.appendChild(collection_elmt); } else { - qDebug() << "Warnung: Konnte XML-Definition für" << old_type << "nicht laden."; + qDebug() << "Warning: could not load XML definition for" << old_type; } } }