From: Michael R Sweet Date: Thu, 18 Apr 2024 19:57:57 +0000 (-0400) Subject: Add some debug logging to the message localization stuff. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43592ad16afa6403484428623a1c4af236b0c5db;p=thirdparty%2Fcups.git Add some debug logging to the message localization stuff. --- diff --git a/cups/language.c b/cups/language.c index 2a65ea4412..50675f2e1b 100644 --- a/cups/language.c +++ b/cups/language.c @@ -772,7 +772,10 @@ _cupsMessageLoad(cups_array_t *a, /* I - Existing message array */ */ if (m.str && (m.str[0] || (flags & _CUPS_MESSAGE_EMPTY))) + { + DEBUG_printf("5_cupsMessageLoad: Adding \"%s\"=\"%s\"", m.msg, m.str); cupsArrayAdd(a, &m); + } /* * Create a new message with the given msgid string... @@ -809,7 +812,10 @@ _cupsMessageLoad(cups_array_t *a, /* I - Existing message array */ */ if (m.msg && m.str && (m.str[0] || (flags & _CUPS_MESSAGE_EMPTY))) + { + DEBUG_printf("5_cupsMessageLoad: Adding \"%s\"=\"%s\"", m.msg, m.str); cupsArrayAdd(a, &m); + } } /* diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c index 29ba78fa0c..40c5edf92a 100644 --- a/cups/ppd-cache.c +++ b/cups/ppd-cache.c @@ -1495,7 +1495,6 @@ _ppdCacheCreateWithPPD( map->pwg = strdup(pwg_keyword); map->ppd = strdup(choice->choice); - /* * Add localized text for PWG keyword to message catalog... */