Browse Source

🌐 Fix remaning plural form of gold related texts

pull/1798/head^2
Anders Jenbo 5 years ago
parent
commit
22d7d41615
  1. 4
      Source/control.cpp
  2. 1
      Source/control.h
  3. 2
      Source/inv.cpp
  4. 2
      Source/items.cpp

4
Source/control.cpp

@ -1258,7 +1258,7 @@ void DrawInfoBox(const CelOutputBuffer &out)
} else if (pcurs >= CURSOR_FIRSTITEM) {
if (plr[myplr].HoldItem._itype == ITYPE_GOLD) {
int nGold = plr[myplr].HoldItem._ivalue;
sprintf(infostr, ngettext("%i gold piece", "%i gold pieces", nGold)
sprintf(infostr, ngettext("%i gold piece", "%i gold pieces", nGold), nGold);
} else if (!plr[myplr].HoldItem._iStatFlag) {
ClearPanel();
AddPanelString(_("Requirements not met"), true);
@ -1903,7 +1903,7 @@ void DrawGoldSplit(const CelOutputBuffer &out, int amount)
CelDrawTo(out, 351, 178, *pGBoxBuff, 1);
sprintf(tempstr, _("You have %u gold"), initialDropGoldValue);
ADD_PlrStringXY(out, 366, 87, 600, tempstr, COL_GOLD);
sprintf(tempstr, ngettext("piece. How many do", "pieces. How many do", initialDropGoldValue));
sprintf(tempstr, ngettext("piece. How many do", "pieces. How many do", initialDropGoldValue), initialDropGoldValue);
ADD_PlrStringXY(out, 366, 103, 600, tempstr, COL_GOLD);
ADD_PlrStringXY(out, 366, 121, 600, _("you want to remove?"), COL_GOLD);
if (amount > 0) {

1
Source/control.h

@ -143,7 +143,6 @@ void DrawDurIcon(const CelOutputBuffer &out);
void RedBack(const CelOutputBuffer &out);
void DrawSpellBook(const CelOutputBuffer &out);
void CheckSBook();
const char *get_pieces_str(int nGold);
void DrawGoldSplit(const CelOutputBuffer &out, int amount);
void control_drop_gold(char vkey);
void control_remove_gold(int pnum, int goldIndex);

2
Source/inv.cpp

@ -2114,7 +2114,7 @@ char CheckInvHLight()
if (pi->_itype == ITYPE_GOLD) {
nGold = pi->_ivalue;
sprintf(infostr, _("%i gold %s"), nGold, get_pieces_str(nGold));
sprintf(infostr, ngettext("%i gold piece", "%i gold pieces", nGold), nGold);
} else {
if (pi->_iMagical == ITEM_QUALITY_MAGIC) {
infoclr = COL_BLUE;

2
Source/items.cpp

@ -3076,7 +3076,7 @@ void GetItemStr(int i)
infoclr = COL_GOLD;
} else {
nGold = items[i]._ivalue;
sprintf(infostr, _("%i gold %s"), nGold, get_pieces_str(nGold));
sprintf(infostr, ngettext("%i gold piece", "%i gold pieces", nGold), nGold);
}
}

Loading…
Cancel
Save