From 5bb6dc928ae572387fae1ac64f8c1f1ea13f7254 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sat, 1 May 2021 22:40:19 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=8D=20Add=20some=20missing=20/*xgettex?= =?UTF-8?q?t:no-c-format*/=20annotations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/items.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/items.cpp b/Source/items.cpp index de86020f9..fd4e0b3fa 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -3338,7 +3338,7 @@ void PrintItemOil(char IDidx) AddPanelString(tempstr, true); break; case IMISC_OILBSMTH: - strcpy(tempstr, _("restores 20% of an")); + /*xgettext:no-c-format*/ strcpy(tempstr, _("restores 20% of an")); AddPanelString(tempstr, true); strcpy(tempstr, _("item's durability")); AddPanelString(tempstr, true); @@ -3482,28 +3482,28 @@ void PrintItemPower(char plidx, ItemStruct *x) if (x->_iPLFR < 75) sprintf(tempstr, _("Resist Fire: %+i%%"), x->_iPLFR); else - strcpy(tempstr, _("Resist Fire: 75% MAX")); + /*xgettext:no-c-format*/ strcpy(tempstr, _("Resist Fire: 75% MAX")); break; case IPL_LIGHTRES: case IPL_LIGHTRES_CURSE: if (x->_iPLLR < 75) sprintf(tempstr, _("Resist Lightning: %+i%%"), x->_iPLLR); else - strcpy(tempstr, _("Resist Lightning: 75% MAX")); + /*xgettext:no-c-format*/ strcpy(tempstr, _("Resist Lightning: 75% MAX")); break; case IPL_MAGICRES: case IPL_MAGICRES_CURSE: if (x->_iPLMR < 75) sprintf(tempstr, _("Resist Magic: %+i%%"), x->_iPLMR); else - strcpy(tempstr, _("Resist Magic: 75% MAX")); + /*xgettext:no-c-format*/ strcpy(tempstr, _("Resist Magic: 75% MAX")); break; case IPL_ALLRES: case IPL_ALLRES_CURSE: if (x->_iPLFR < 75) sprintf(tempstr, _("Resist All: %+i%%"), x->_iPLFR); if (x->_iPLFR >= 75) - strcpy(tempstr, _("Resist All: 75% MAX")); + /*xgettext:no-c-format*/ strcpy(tempstr, _("Resist All: 75% MAX")); break; case IPL_SPLLVLADD: if (x->_iSplLvlAdd == 1) @@ -3736,10 +3736,10 @@ void PrintItemPower(char plidx, ItemStruct *x) strcpy(tempstr, _("extra AC vs undead")); break; case IPL_MANATOLIFE: - strcpy(tempstr, _("50% Mana moved to Health")); + /*xgettext:no-c-format*/ strcpy(tempstr, _("50% Mana moved to Health")); break; case IPL_LIFETOMANA: - strcpy(tempstr, _("40% Health moved to Mana")); + /*xgettext:no-c-format*/ strcpy(tempstr, _("40% Health moved to Mana")); break; default: strcpy(tempstr, _("Another ability (NW)"));