diff --git a/libdnf5/rpm/package.cpp b/libdnf5/rpm/package.cpp
index 94d649212..40103b382 100644
--- a/libdnf5/rpm/package.cpp
+++ b/libdnf5/rpm/package.cpp
@@ -29,6 +29,7 @@ along with libdnf. If not, see .
#include "libdnf5/common/exception.hpp"
#include "libdnf5/rpm/package_query.hpp"
+#include "libdnf5/utils/bgettext/bgettext-lib.h"
#include "libdnf5/utils/bgettext/bgettext-mark-domain.h"
#include
@@ -474,7 +475,7 @@ std::string Package::get_from_repo_id() const {
try {
return p_impl->base->p_impl->get_system_state().get_package_from_repo(get_nevra());
} catch (const std::runtime_error & e) {
- return "";
+ return _("");
}
}