From b0d4c7740431b439089e7877897ebde25496b6b9 Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 9 Aug 2001 22:12:44 +0000 Subject: [PATCH] --- data/translations/text.dat | 4 +++- source/shop/shop.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/data/translations/text.dat b/data/translations/text.dat index 57b589b00..dd505bcb8 100644 --- a/data/translations/text.dat +++ b/data/translations/text.dat @@ -155,7 +155,7 @@ eng=Load Error!\nPress the X button to continue [STR__MEMCARD__NOSPACEONCARD] eng=Insufficient free blocks available on MEMORY CARD in MEMORY CARD SLOT 1. One free block required [STR__MEMCARD__DUPLICATESAVENAME] -eng=Are you sure you want to overwrite the existing file on the MEMORY CARD in MEMORY CARD slot 1? +eng=Are you sure you want to\noverwrite the existing file on the MEMORY CARD in MEMORY CARD slot 1? [STR__MEMCARD__DOYOUWANTTOFORMATCARD] eng=MEMORY CARD in MEMORY CARD slot 1 is not formatted. Do you wish to format? [STR__MEMCARD__FORMATTINGPLEASEWIAT] @@ -533,6 +533,8 @@ eng=Item already purchased eng=This item costs %d tokens, you currently have %d tokens. Are you sure that you want to purchase it? [STR__SHOP_SCREEN__CANNOT_AFFORD_PURCHASE] eng=This item costs %d tokens, you currently have %d tokens. You cannot afford to purchase it. +[STR__SHOP_SCREEN__CANNOT_AFFORD_PURCHASE_SINGULAR] +eng=This item costs %d tokens, you currently have %d token. You cannot afford to purchase it. diff --git a/source/shop/shop.cpp b/source/shop/shop.cpp index ebf08f9b8..252284363 100644 --- a/source/shop/shop.cpp +++ b/source/shop/shop.cpp @@ -506,7 +506,7 @@ void CShopScene::renderUi() char buf[100]; cost=s_shopItems[m_currentlySelectedItem].m_cost; available=CGameSlotManager::getSlotData()->getNumberOfKelpTokensHeld(); - sprintf(buf,TranslationDatabase::getString(STR__SHOP_SCREEN__CANNOT_AFFORD_PURCHASE),cost,available); + sprintf(buf,TranslationDatabase::getString(available!=1?STR__SHOP_SCREEN__CANNOT_AFFORD_PURCHASE:STR__SHOP_SCREEN__CANNOT_AFFORD_PURCHASE_SINGULAR),cost,available); m_font->print((SHOP_QUERY_UI_W-20)/2,0,buf); m_guiCannotAffordFrame->render(); }