Browse Source

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
pull/1799/head
Mathieu Maret 5 years ago committed by Anders Jenbo
parent
commit
e47d80f8df
  1. 12
      Source/items.cpp
  2. 10
      Translations/devilutionx.pot

12
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);

10
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 ""

Loading…
Cancel
Save