From 597566636adf75e115d3e8d38b0f3a06265d06dd Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Tue, 17 Jan 2023 03:31:53 +0200 Subject: [PATCH 29/29] svgflag: Add logging See osdn #46431 Signed-off-by: Marko Lindqvist --- client/svgflag.c | 6 ++++++ translations/core/POTFILES.in | 1 + 2 files changed, 7 insertions(+) diff --git a/client/svgflag.c b/client/svgflag.c index 4f8593e2c7..81f8aa5b38 100644 --- a/client/svgflag.c +++ b/client/svgflag.c @@ -16,6 +16,7 @@ #endif /* utility */ +#include "fcintl.h" #include "mem.h" #include "support.h" @@ -68,7 +69,12 @@ const char **ordered_gfx_fextensions(void) /* No svg, disable svg flag features */ _prefer_svg = FALSE; + log_warn(_("Client has no required support for svg. " + "Disabled use of svg flags.")); + ordered_extensions = incoming; + } else { + log_verbose(_("Client is capable of using svg flags.")); } ordered_extensions = fc_malloc((count + 1) * sizeof(char *)); diff --git a/translations/core/POTFILES.in b/translations/core/POTFILES.in index 70ac97ad81..b1a9f5e88f 100644 --- a/translations/core/POTFILES.in +++ b/translations/core/POTFILES.in @@ -168,6 +168,7 @@ client/packhand.c client/plrdlg_common.c client/repodlgs_common.c client/servers.c +client/svgflag.c client/text.c client/tilespec.c client/tilespec.h -- 2.39.0