Use fmt for string formatting (GTK client) (#3967)

This commit is contained in:
Mike Gelfand
2022-10-15 09:13:50 -07:00
committed by GitHub
parent 79068c512a
commit ae2dd5eba9
11 changed files with 70 additions and 79 deletions

View File

@@ -10,6 +10,8 @@
#include <giomm.h>
#include <glibmm/i18n.h>
#include <fmt/core.h>
#include "Notify.h"
#include "Prefs.h"
#include "PrefsDialog.h"
@@ -123,7 +125,7 @@ void dbus_proxy_ready_callback(Glib::RefPtr<Gio::AsyncResult>& res)
if (proxy == nullptr)
{
g_warning("Failed to create proxy for %s", NotificationsDbusName.c_str());
g_warning("%s", fmt::format(_("Couldn't create proxy for '{bus}'"), fmt::arg("bus", NotificationsDbusName)).c_str());
return;
}