1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-12-04 14:46:45 -05:00

Add calls to ngettext() where appropriate

This commit is contained in:
John Zaitseff 2011-08-17 13:18:41 +10:00
parent 9b11599354
commit 197de2804f
2 changed files with 12 additions and 5 deletions

View File

@ -599,7 +599,9 @@ void trade_shares (int num, bool *bid_used)
box(curwin, 0, 0);
center(curwin, 2, 0, attr_normal, attr_highlight, 0, 1,
_("You can purchase up to ^{%'ld^} shares."), maxshares);
ngettext("You can purchase ^{one^} share.",
"You can purchase up to ^{%'ld^} shares.",
maxshares), maxshares);
mkchstr(chbuf, BUFSIZE, attr_normal, 0, 0, 1,
getmaxx(curwin) - TRADE_INPUT_COLS - 4, &width, 1,
@ -632,7 +634,9 @@ void trade_shares (int num, bool *bid_used)
box(curwin, 0, 0);
center(curwin, 2, 0, attr_normal, attr_highlight, 0, 1,
_("You can sell up to ^{%'ld^} shares."), maxshares);
ngettext("You can sell ^{one^} share.",
"You can sell up to ^{%'ld^} shares.",
maxshares), maxshares);
mkchstr(chbuf, BUFSIZE, attr_normal, 0, 0, 1,
getmaxx(curwin) - TRADE_INPUT_COLS - 4, &width, 1,
@ -671,8 +675,9 @@ void trade_shares (int num, bool *bid_used)
txdlgbox(MAX_DLG_LINES, 50, 8, WCENTER, attr_normal_window,
attr_title, attr_normal, attr_highlight, 0,
attr_waitforkey, _(" Shares Issued "),
_("%s has issued\n^{%'ld^} more shares."),
company[num].name, maxshares);
ngettext("%s has issued\none more share.",
"%s has issued\n^{%'ld^} more shares.",
maxshares), company[num].name, maxshares);
}
break;

View File

@ -523,7 +523,9 @@ void end_game (void)
txdlgbox(MAX_DLG_LINES, 50, 9, WCENTER, attr_error_window,
attr_error_title, attr_error_highlight, 0, 0,
attr_error_waitforkey, _(" Game Over "),
_("The game is over after %d turns."), turn_number - 1);
ngettext("The game is over after one turn.",
"The game is over after %d turns.",
turn_number - 1), turn_number - 1);
for (int i = 0; i < number_players; i++) {
show_status(i);