From e47d80f8df799c0635f6a317f956c9f244efcac4 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Sat, 1 May 2021 00:21:00 +0200 Subject: [PATCH] Fix in-correct c-format in pot Detected as c-format because of % presence but are used as regular strcpy checked that clang-format will not break it --- Source/items.cpp | 12 ++++++------ Translations/devilutionx.pot | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Source/items.cpp b/Source/items.cpp index 9880ddbc4..96d4e9633 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -3615,7 +3615,7 @@ void PrintItemPower(char plidx, ItemStruct *x) strcpy(tempstr, _("knocks target back")); break; case IPL_3XDAMVDEM: - strcpy(tempstr, _("+200% damage vs. demons")); + /*xgettext:no-c-format*/ strcpy(tempstr, _("+200% damage vs. demons")); break; case IPL_ALLRESZERO: strcpy(tempstr, _("All Resistance equals 0")); @@ -3625,15 +3625,15 @@ void PrintItemPower(char plidx, ItemStruct *x) break; case IPL_STEALMANA: if ((x->_iFlags & ISPL_STEALMANA_3) != 0) - strcpy(tempstr, _("hit steals 3% mana")); + /*xgettext:no-c-format*/ strcpy(tempstr, _("hit steals 3% mana")); if ((x->_iFlags & ISPL_STEALMANA_5) != 0) - strcpy(tempstr, _("hit steals 5% mana")); + /*xgettext:no-c-format*/ strcpy(tempstr, _("hit steals 5% mana")); break; case IPL_STEALLIFE: if ((x->_iFlags & ISPL_STEALLIFE_3) != 0) - strcpy(tempstr, _("hit steals 3% life")); + /*xgettext:no-c-format*/ strcpy(tempstr, _("hit steals 3% life")); if ((x->_iFlags & ISPL_STEALLIFE_5) != 0) - strcpy(tempstr, _("hit steals 5% life")); + /*xgettext:no-c-format*/ strcpy(tempstr, _("hit steals 5% life")); break; case IPL_TARGAC: strcpy(tempstr, _("penetrates target's armor")); @@ -3717,7 +3717,7 @@ void PrintItemPower(char plidx, ItemStruct *x) strcpy(tempstr, _("2x dmg to monst, 1x to you")); break; case IPL_JESTERS: - strcpy(tempstr, _("Random 0 - 500% damage")); + /*xgettext:no-c-format*/ strcpy(tempstr, _("Random 0 - 500% damage")); break; case IPL_CRYSTALLINE: sprintf(tempstr, _("low dur, %+i%% damage"), x->_iPLDam); diff --git a/Translations/devilutionx.pot b/Translations/devilutionx.pot index 8e2ba2fee..bd6519938 100644 --- a/Translations/devilutionx.pot +++ b/Translations/devilutionx.pot @@ -3665,22 +3665,22 @@ msgid "hit monster doesn't heal" msgstr "" #: Source/items.cpp:3629 -#, c-format +#, no-c-format msgid "hit steals 3% mana" msgstr "" #: Source/items.cpp:3631 -#, c-format +#, no-c-format msgid "hit steals 5% mana" msgstr "" #: Source/items.cpp:3635 -#, c-format +#, no-c-format msgid "hit steals 3% life" msgstr "" #: Source/items.cpp:3637 -#, c-format +#, no-c-format msgid "hit steals 5% life" msgstr "" @@ -3794,7 +3794,7 @@ msgid "2x dmg to monst, 1x to you" msgstr "" #: Source/items.cpp:3721 -#, c-format +#, no-c-format msgid "Random 0 - 500% damage" msgstr ""