rust/hedgewars-server/src/handlers/strings.rs
author Wuzzy <Wuzzy2@mail.ru>
Mon, 06 Jul 2020 12:46:22 +0200
changeset 15687 326b024a24e3
parent 15534 bb93e9642b5b
child 15697 25371cae9fd7
permissions -rw-r--r--
Fix typo
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
15534
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
     1
pub const ACCESS_DENIED: &str = "Access denied.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
     2
pub const AUTHENTICATION_FAILED: &str = "Authentication failed";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
     3
pub const BAD_NUMBER: &str = "Bad number.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
     4
pub const ILLEGAL_CLIENT_NAME: &str = "Illegal nickname! Nicknames must be between 1-40 characters long, must not have a trailing or leading space and must not have any of these characters: $()*+?[]^{|}";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
     5
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: $()*+?[]^{|}";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
     6
pub const NICKNAME_PROVIDED: &str = "Nickname already provided.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
     7
pub const NO_CHECKER_RIGHTS: &str = "No checker rights";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
     8
pub const NO_ROOM: &str = "No such room.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
     9
pub const NO_TEAM: &str = "No such team.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    10
pub const NO_TEAM_TO_REMOVE: &str = "Error: The team you tried to remove does not exist.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    11
pub const NO_USER: &str = "No such user.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    12
pub const NOT_MASTER: &str = "You're not the room master!";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    13
pub const PROTOCOL_PROVIDED: &str = "Protocol already known.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    14
pub const PROTOCOL_TOO_OLD: &str = "Protocol version is too old";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    15
pub const REPLAY_LOAD_FAILED: &str = "Could't load the replay";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    16
pub const REPLAY_NOT_SUPPORTED: &str = "This server does not support replays!";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    17
pub const REGISTRATION_REQUIRED: &str = "This server only allows registered users to join.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    18
pub const REGISTERED_ONLY_ENABLED: &str =
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    19
    "This server no longer allows unregistered players to join.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    20
pub const REGISTERED_ONLY_DISABLED: &str = "This server now allows unregistered players to join.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    21
pub const ROOM_CONFIG_SAVE_FAILED: &str = "Unable to save the room configs.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    22
pub const ROOM_CONFIG_LOAD_FAILED: &str = "Unable to load the room configs.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    23
pub const ROOM_CONFIG_DESERIALIZE_FAILED: &str = "Unable to deserialize the room configs.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    24
pub const ROOM_CONFIG_LOADED: &str = "Room configs loaded successfully.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    25
pub const ROOM_CONFIG_SAVED: &str = "Room configs saved successfully.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    26
pub const ROOM_EXISTS: &str = "A room with the same name already exists.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    27
pub const ROOM_FULL: &str = "This room is already full.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    28
pub const ROOM_JOIN_RESTRICTED: &str = "Access denied. This room currently doesn't allow joining.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    29
pub const ROUND_IN_PROGRESS: &str = "Joining not possible: Round is in progress.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    30
pub const ROOM_REGISTRATION_REQUIRED: &str =
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    31
    "Access denied. This room is for registered users only.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    32
pub const SUPER_POWER: &str = "Super power activated.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    33
pub const TEAM_EXISTS: &str = "There's already a team with same name in the list.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    34
pub const TEAM_NOT_OWNED: &str = "You can't remove a team you don't own.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    35
pub const TEAM_ADD_RESTRICTED: &str = "This room currently does not allow adding new teams.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    36
pub const TOO_MANY_HEDGEHOGS: &str = "Too many hedgehogs!";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    37
pub const TOO_MANY_TEAMS: &str = "Too many teams!";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    38
pub const USER_OFFLINE: &str = "Player is not online.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    39
pub const VARIABLE_UPDATED: &str = "Server variable has been updated.";
bb93e9642b5b send cleared flags on room join
alfadur <mail@none>
parents: 15532
diff changeset
    40
pub const INCOMPATIBLE_ROOM_PROTOCOL: &str = "Room version incompatible to your Hedgewars version!";