mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
formatting fixes; add string for attempt to undo tile assignment.
This commit is contained in:
parent
dc629a2706
commit
dca1e27fa5
1 changed files with 28 additions and 21 deletions
|
@ -129,37 +129,44 @@ linux_getErrString( UtilErrID id )
|
||||||
|
|
||||||
switch( id ) {
|
switch( id ) {
|
||||||
case ERR_TILES_NOT_IN_LINE:
|
case ERR_TILES_NOT_IN_LINE:
|
||||||
message = "All tiles played must be in a line.";
|
message = "All tiles played must be in a line.";
|
||||||
break;
|
break;
|
||||||
case ERR_NO_EMPTIES_IN_TURN:
|
case ERR_NO_EMPTIES_IN_TURN:
|
||||||
message = "Empty squares cannot separate tiles played.";
|
message = "Empty squares cannot separate tiles played.";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case ERR_TOO_FEW_TILES_LEFT_TO_TRADE:
|
||||||
|
message = "Too few tiles left to trade.";
|
||||||
|
break;
|
||||||
|
|
||||||
case ERR_TWO_TILES_FIRST_MOVE:
|
case ERR_TWO_TILES_FIRST_MOVE:
|
||||||
message = "Must play two or more pieces on the first move.";
|
message = "Must play two or more pieces on the first move.";
|
||||||
break;
|
break;
|
||||||
case ERR_TILES_MUST_CONTACT:
|
case ERR_TILES_MUST_CONTACT:
|
||||||
message = "New pieces must contact others already in place (or "
|
message = "New pieces must contact others already in place (or "
|
||||||
"the middle square on the first move).";
|
"the middle square on the first move).";
|
||||||
break;
|
break;
|
||||||
case ERR_NOT_YOUR_TURN:
|
case ERR_NOT_YOUR_TURN:
|
||||||
message = "You can't do that; it's not your turn!";
|
message = "You can't do that; it's not your turn!";
|
||||||
break;
|
break;
|
||||||
case ERR_NO_PEEK_ROBOT_TILES:
|
case ERR_NO_PEEK_ROBOT_TILES:
|
||||||
message = "No peeking at the robot's tiles!";
|
message = "No peeking at the robot's tiles!";
|
||||||
break;
|
break;
|
||||||
case ERR_NO_PEEK_REMOTE_TILES:
|
case ERR_NO_PEEK_REMOTE_TILES:
|
||||||
message = "No peeking at remote players' tiles!";
|
message = "No peeking at remote players' tiles!";
|
||||||
break;
|
break;
|
||||||
case ERR_REG_UNEXPECTED_USER:
|
case ERR_REG_UNEXPECTED_USER:
|
||||||
message = "Refused attempt to register unexpected user[s].";
|
message = "Refused attempt to register unexpected user[s].";
|
||||||
break;
|
break;
|
||||||
case ERR_SERVER_DICT_WINS:
|
case ERR_SERVER_DICT_WINS:
|
||||||
message = "Conflict between Host and Guest dictionaries; Host wins.";
|
message = "Conflict between Host and Guest dictionaries; Host wins.";
|
||||||
XP_WARNF( "GTK may have problems here." );
|
XP_WARNF( "GTK may have problems here." );
|
||||||
break;
|
break;
|
||||||
|
case ERR_CANT_UNDO_TILEASSIGN:
|
||||||
|
message = "Tile assignment can't be undone.";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
message = "<unrecognized error code reported>";
|
message = "<unrecognized error code reported>";
|
||||||
}
|
}
|
||||||
|
|
||||||
return message;
|
return message;
|
||||||
|
|
Loading…
Add table
Reference in a new issue