rust/hedgewars-server/src/handlers/strings.rs
changeset 15519 b3157d218ae2
parent 15482 4cc9ec732392
child 15532 f1205f33bf5b
equal deleted inserted replaced
15518:e705d30e0f10 15519:b3157d218ae2
     1 pub const ACCESS_DENIED: &str = "Access denied.";
     1 pub const ACCESS_DENIED: &str = "Access denied.";
     2 pub const AUTHENTICATION_FAILED: &str = "Authentication failed.";
     2 pub const AUTHENTICATION_FAILED: &str = "Authentication failed.";
     3 pub const ILLEGAL_ROOM_NAME: &str = "Illegal room name! A room name must be between 1-40 characters long, must not have a trailing or leading space and must not have any of these characters: $()*+?[]^{|}";
     3 pub const ILLEGAL_ROOM_NAME: &str = "Illegal room name! A room name must be between 1-40 characters long, must not have a trailing or leading space and must not have any of these characters: $()*+?[]^{|}";
     4 pub const NO_ROOM: &str = "No such room.";
     4 pub const NO_ROOM: &str = "No such room.";
     5 pub const NO_TEAM: &str = "No such team.";
     5 pub const NO_TEAM: &str = "No such team.";
       
     6 pub const NO_TEAM_TO_REMOVE: &str = "Error: The team you tried to remove does not exist.";
     6 pub const NO_USER: &str = "No such user.";
     7 pub const NO_USER: &str = "No such user.";
     7 pub const NOT_MASTER: &str = "You're not the room master!";
     8 pub const NOT_MASTER: &str = "You're not the room master!";
     8 pub const REPLAY_LOAD_FAILED: &str = "Could't load the replay";
     9 pub const REPLAY_LOAD_FAILED: &str = "Could't load the replay";
     9 pub const REPLAY_NOT_SUPPORTED: &str = "This server does not support replays!";
    10 pub const REPLAY_NOT_SUPPORTED: &str = "This server does not support replays!";
    10 pub const REGISTRATION_REQUIRED: &str = "This server only allows registered users to join.";
    11 pub const REGISTRATION_REQUIRED: &str = "This server only allows registered users to join.";
    17 pub const ROOM_CONFIG_LOADED: &str = "Room configs loaded successfully.";
    18 pub const ROOM_CONFIG_LOADED: &str = "Room configs loaded successfully.";
    18 pub const ROOM_CONFIG_SAVED: &str = "Room configs saved successfully.";
    19 pub const ROOM_CONFIG_SAVED: &str = "Room configs saved successfully.";
    19 pub const ROOM_EXISTS: &str = "A room with the same name already exists.";
    20 pub const ROOM_EXISTS: &str = "A room with the same name already exists.";
    20 pub const ROOM_FULL: &str = "This room is already full.";
    21 pub const ROOM_FULL: &str = "This room is already full.";
    21 pub const ROOM_JOIN_RESTRICTED: &str = "Access denied. This room currently doesn't allow joining.";
    22 pub const ROOM_JOIN_RESTRICTED: &str = "Access denied. This room currently doesn't allow joining.";
       
    23 pub const ROUND_IN_PROGRESS: &str = "Joining not possible: Round is in progress.";
    22 pub const SUPER_POWER: &str = "Super power activated.";
    24 pub const SUPER_POWER: &str = "Super power activated.";
       
    25 pub const TEAM_EXISTS: &str = "There's already a team with same name in the list.";
       
    26 pub const TEAM_NOT_OWNED: &str = "You can't remove a team you don't own.";
       
    27 pub const TEAM_ADD_RESTRICTED: &str = "This room currently does not allow adding new teams.";
       
    28 pub const TOO_MANY_HEDGEHOGS: &str = "Too many hedgehogs!";
       
    29 pub const TOO_MANY_TEAMS: &str = "Too many teams!";
    23 pub const USER_OFFLINE: &str = "Player is not online.";
    30 pub const USER_OFFLINE: &str = "Player is not online.";
    24 pub const VARIABLE_UPDATED: &str = "Server variable has been updated.";
    31 pub const VARIABLE_UPDATED: &str = "Server variable has been updated.";
    25 pub const WRONG_PROTOCOL: &str = "Room version incompatible to your Hedgewars version!";
    32 pub const WRONG_PROTOCOL: &str = "Room version incompatible to your Hedgewars version!";