From 68249d07e3e2bc6d490077c0d9e32a38fc8b8fbf Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Tue, 25 May 2021 01:28:07 +0200 Subject: [PATCH] Correct false positives translation warnings Fixes #2053 --- Source/items.cpp | 4 ++-- Source/textdat.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/items.cpp b/Source/items.cpp index 185f9a01b..27ce3f89b 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -3529,10 +3529,10 @@ void PrintItemPower(char plidx, ItemStruct *x) strcpy(tempstr, _("indestructible")); break; case IPL_LIGHT: - strcpy(tempstr, fmt::format(_("+{:d}% light radius"), 10 * x->_iPLLight).c_str()); + /*xgettext:no-c-format*/ strcpy(tempstr, fmt::format(_("+{:d}% light radius"), 10 * x->_iPLLight).c_str()); break; case IPL_LIGHT_CURSE: - strcpy(tempstr, fmt::format(_("-{:d}% light radius"), -10 * x->_iPLLight).c_str()); + /*xgettext:no-c-format*/ strcpy(tempstr, fmt::format(_("-{:d}% light radius"), -10 * x->_iPLLight).c_str()); break; case IPL_MULT_ARROWS: strcpy(tempstr, _("multiple arrows per shot")); diff --git a/Source/textdat.cpp b/Source/textdat.cpp index cceee78bc..0e4f6733d 100644 --- a/Source/textdat.cpp +++ b/Source/textdat.cpp @@ -606,7 +606,7 @@ const TextDataStruct alltext[] = { true, TSFX_COWSUT8 }, { N_(/* TRANSLATORS: Quest text spoken by Complete Nut */ "Look. I'm a cow. And you, you're monster bait. Get some experience under your belt! We'll talk..."), true, TSFX_COWSUT9 }, - { N_(""), true, TSFX_TRADER1 }, + { "", true, TSFX_TRADER1 }, { N_(/* TRANSLATORS: Quest text spoken by Farmer */ "It must truly be a fearsome task I've set before you. If there was just some way that I could... would a flagon of some nice, fresh milk help?"), true, TSFX_FARMER2A }, { N_(/* TRANSLATORS: Quest text spoken by Farmer */ "Oh, I could use your help, but perhaps after you've saved the catacombs from the desecration of those beasts."),