rust/hedgewars-server/src/handlers/strings.rs
author alfadur
Sat, 26 Oct 2019 02:36:08 +0300
changeset 15482 4cc9ec732392
parent 15441 61a0bd0bb021
child 15519 b3157d218ae2
permissions -rw-r--r--
refactor some of the room handler
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
15440
96e438b114f0 add missing file
alfadur
parents:
diff changeset
     1
pub const ACCESS_DENIED: &str = "Access denied.";
15441
61a0bd0bb021 refactor root handler
alfadur
parents: 15440
diff changeset
     2
pub const AUTHENTICATION_FAILED: &str = "Authentication failed.";
15440
96e438b114f0 add missing file
alfadur
parents:
diff changeset
     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: $()*+?[]^{|}";
96e438b114f0 add missing file
alfadur
parents:
diff changeset
     4
pub const NO_ROOM: &str = "No such room.";
15482
4cc9ec732392 refactor some of the room handler
alfadur
parents: 15441
diff changeset
     5
pub const NO_TEAM: &str = "No such team.";
15440
96e438b114f0 add missing file
alfadur
parents:
diff changeset
     6
pub const NO_USER: &str = "No such user.";
15482
4cc9ec732392 refactor some of the room handler
alfadur
parents: 15441
diff changeset
     7
pub const NOT_MASTER: &str = "You're not the room master!";
15441
61a0bd0bb021 refactor root handler
alfadur
parents: 15440
diff changeset
     8
pub const REPLAY_LOAD_FAILED: &str = "Could't load the replay";
61a0bd0bb021 refactor root handler
alfadur
parents: 15440
diff changeset
     9
pub const REPLAY_NOT_SUPPORTED: &str = "This server does not support replays!";
61a0bd0bb021 refactor root handler
alfadur
parents: 15440
diff changeset
    10
pub const REGISTRATION_REQUIRED: &str = "This server only allows registered users to join.";
61a0bd0bb021 refactor root handler
alfadur
parents: 15440
diff changeset
    11
pub const REGISTERED_ONLY_ENABLED: &str =
61a0bd0bb021 refactor root handler
alfadur
parents: 15440
diff changeset
    12
    "This server no longer allows unregistered players to join.";
61a0bd0bb021 refactor root handler
alfadur
parents: 15440
diff changeset
    13
pub const REGISTERED_ONLY_DISABLED: &str = "This server now allows unregistered players to join.";
61a0bd0bb021 refactor root handler
alfadur
parents: 15440
diff changeset
    14
pub const ROOM_CONFIG_SAVE_FAILED: &str = "Unable to save the room configs.";
61a0bd0bb021 refactor root handler
alfadur
parents: 15440
diff changeset
    15
pub const ROOM_CONFIG_LOAD_FAILED: &str = "Unable to load the room configs.";
61a0bd0bb021 refactor root handler
alfadur
parents: 15440
diff changeset
    16
pub const ROOM_CONFIG_DESERIALIZE_FAILED: &str = "Unable to deserialize the room configs.";
61a0bd0bb021 refactor root handler
alfadur
parents: 15440
diff changeset
    17
pub const ROOM_CONFIG_LOADED: &str = "Room configs loaded successfully.";
61a0bd0bb021 refactor root handler
alfadur
parents: 15440
diff changeset
    18
pub const ROOM_CONFIG_SAVED: &str = "Room configs saved successfully.";
15440
96e438b114f0 add missing file
alfadur
parents:
diff changeset
    19
pub const ROOM_EXISTS: &str = "A room with the same name already exists.";
96e438b114f0 add missing file
alfadur
parents:
diff changeset
    20
pub const ROOM_FULL: &str = "This room is already full.";
96e438b114f0 add missing file
alfadur
parents:
diff changeset
    21
pub const ROOM_JOIN_RESTRICTED: &str = "Access denied. This room currently doesn't allow joining.";
15441
61a0bd0bb021 refactor root handler
alfadur
parents: 15440
diff changeset
    22
pub const SUPER_POWER: &str = "Super power activated.";
61a0bd0bb021 refactor root handler
alfadur
parents: 15440
diff changeset
    23
pub const USER_OFFLINE: &str = "Player is not online.";
15440
96e438b114f0 add missing file
alfadur
parents:
diff changeset
    24
pub const VARIABLE_UPDATED: &str = "Server variable has been updated.";
96e438b114f0 add missing file
alfadur
parents:
diff changeset
    25
pub const WRONG_PROTOCOL: &str = "Room version incompatible to your Hedgewars version!";