From ed518f5c4454df867547c9ad171a6ca3aa11a61e Mon Sep 17 00:00:00 2001
From: Furgo <148809153+furgo16@users.noreply.github.com>
Date: Thu, 10 Apr 2025 14:50:58 +0200
Subject: [PATCH] Assembly: BOM, internationalize strings
---
src/Mod/Assembly/App/BomObject.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/Mod/Assembly/App/BomObject.cpp b/src/Mod/Assembly/App/BomObject.cpp
index d6aaf051e2..0353cee2e1 100644
--- a/src/Mod/Assembly/App/BomObject.cpp
+++ b/src/Mod/Assembly/App/BomObject.cpp
@@ -39,6 +39,7 @@
#include
#include
#include
+#include
#include
#include
@@ -268,7 +269,7 @@ std::string BomObject::getBomPropertyValue(App::DocumentObject* obj, std::string
if (!prop) {
Base::Console().Warning("Property not found: %s\n", baseName.c_str());
- return "N/A";
+ return QObject::tr("N/A").toStdString();
}
// Only support a subset of property types for BOM
@@ -301,7 +302,7 @@ std::string BomObject::getBomPropertyValue(App::DocumentObject* obj, std::string
}
Base::Console().Warning("Property type not supported for: %s\n", prop->getName());
- return "Not supported";
+ return QObject::tr("Not supported").toStdString();
}
AssemblyObject* BomObject::getAssembly()