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()