From 571fc904a069b41c4e627d4a963f39ea8f506a3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Marciniak?= Date: Wed, 20 Nov 2024 18:03:25 +0100 Subject: [PATCH] I18N: Mark message in dnf list --installed output for a translation --- libdnf5/rpm/package.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 _(""); } }