This commit is contained in:
Maxim Khomutov 2023-07-26 01:52:08 +03:00
parent d29bb9de98
commit 7466f987ac

View File

@ -48,75 +48,86 @@ class MultiLanguage:
else: else:
# noinspection PyDictDuplicateKeys # noinspection PyDictDuplicateKeys
self.__data = { self.__data = {
"": "Basic phases", "": "Basic phases",
"hello": "Hello from KuiToi-Server!", "hello": "Hello from KuiToi-Server!",
"config_path": "Use {} for configuration.", "config_path": "Use {} to configure.",
"init_ok": "Initialization completed.", "init_ok": "Initialization completed.",
"start": "Server started!", "start": "Server started!",
"stop": "Server stopped!", "stop": "Server stopped!",
"": "Server auth", "": "Server auth",
"auth_need_key": "A BeamMP key is required to start!", "auth_need_key": "BeamMP key is required to run!",
"auth_empty_key": "BeamMP key is empty!", "auth_empty_key": "BeamMP key is empty!",
"auth_cannot_open_browser": "Failed to open browser: {}", "auth_cannot_open_browser": "Failed to open browser: {}",
"auth_use_link": "Use this link: {}", "auth_use_link": "Use this link: {}",
"": "GUI phases", "": "GUI phases",
"GUI_yes": "Yes", "GUI_yes": "Yes",
"GUI_no": "No", "GUI_no": "No",
"GUI_ok": "OK", "GUI_ok": "OK",
"GUI_cancel": "Cancel", "GUI_cancel": "Cancel",
"GUI_need_key_message": "A BeamMP key is required to start!\nDo you want to open the link in your browser to obtain the key?", "GUI_need_key_message": "BeamMP key is required to run!\nDo you want to open the link in your browser to get the key?",
"GUI_enter_key_message": "Please enter the key:", "GUI_enter_key_message": "Please enter the key:",
"GUI_cannot_open_browser": "Failed to open browser.\nUse this link: {}", "GUI_cannot_open_browser": "Failed to open browser.\nUse this link: {}",
"": "Web phases", "": "Web phases",
"web_start": "WebAPI started on {} (CTRL+C to stop)", "web_start": "WebAPI started on {} (CTRL+C to stop)",
"": "Core phrases", "": "Core phrases",
"core_direct_mode": "Server started in direct connection mode.", "core_bind_failed": "Failed to bind port. Error: {}",
"core_auth_server_error": "Incorrect response received from BeamMP authentication server.", "core_direct_mode": "Server started in direct connection mode.",
"core_auth_server_refused": "BeamMP authentication server rejected your key. Reason: {}", "core_auth_server_error": "Received invalid response from BeamMP authentication server.",
"core_auth_server_refused_no_reason": "BeamMP authentication server did not provide a reason.", "core_auth_server_refused": "The BeamMP authentication server refused your key. Reason: {}",
"core_auth_server_refused_direct_node": "Server is still running, but in direct connection mode.", "core_auth_server_refused_no_reason": "The BeamMP authentication server did not provide a reason.",
"core_auth_server_no_response": "Failed to authenticate the server.", "core_auth_server_refused_direct_node": "The server is still running, but in direct connection mode.",
"core_mods_loaded": "{} mods loaded. {}Mb", "core_auth_server_no_response": "Failed to authenticate the server.",
"core_mods_loaded": "Loaded {} mods. {}Mb",
"core_identifying_connection": "Processing new connection...",
"core_player_kick_outdated": "Incorrect version of BeamMP.",
"core_player_kick_bad_key": "Invalid key passed!",
"core_player_kick_invalid_key": "Invalid key! Please restart your game.",
"core_player_kick_auth_server_fail": "BeamMP authentication server failed! Please try to connect again in 5 minutes.",
"core_player_kick_stale": "Stale client. (Replaced by new connection)",
"core_player_kick_no_allowed_default_reason": "You are not welcome on this server. Access denied.",
"core_player_kick_server_full": "Server is full.",
"core_player_set_id": "Player set ID {}",
"core_identifying_okay": "Successful login.",
"": "In-game phrases", "": "In-game phrases",
"game_player_kicked": "Kicked for reason: \"{}\"", "game_welcome_message": "Welcome {}!",
"game_welcome_message": "Welcome {}!",
"": "Client class phrases", "": "Client class phrases",
"client_mod_request": "Mod requested: {}", "client_mod_request": "Requested mod: {}",
"client_mod_sent": "Mod sent: Size: {}mb, Speed: {}Mb/s ({}sec)", "client_mod_sent": "Mod sent: Size: {}mb, Speed: {}Mb/s ({}sec)",
"client_mod_sent_limit": " (limit {}Mb/s)", "client_mod_sent_limit": " (limit {}Mb/s)",
"client_mod_sent_error": "Error sending mod: {}", "client_mod_sent_error": "Error sending mod: {}",
"client_sync_time": "Sync time {}sec.", "client_sync_time": "Sync time {}sec.",
"client_event_invalid_data": "Invalid data returned from event: {}", "client_kicked": "Kicked for reason: \"{}\"",
"client_player_disconnected": "Disconnected from the server. Game time: {} min.", "client_event_invalid_data": "Invalid data returned from event: {}",
"client_player_disconnected": "Left the server. Playtime: {} min",
"": "Command: man", "": "Command: man",
"man_message_man": "man - Shows help page for COMMAND.\nUsage: man COMMAND", "man_message_man": "man - Shows the help page for COMMAND.\nUsage: man COMMAND",
"help_message_man": "Shows help page for COMMAND.", "help_message_man": "Shows the help page for COMMAND.",
"man_for": "Help page for", "man_for": "Help page for",
"man_message_not_found": "man: No help page found.", "man_message_not_found": "man: Help page not found.",
"man_command_not_found": "man: Command \"{}\" not found!", "man_command_not_found": "man: Command \"{}\" not found!",
"": "Command: help", "": "Command: help",
"man_message_help": "help - Shows the names and brief descriptions of commands.\nUsage: help [--raw]\nThe `help` command displays a list of all available commands and a brief description for each command.", "man_message_help": "help - Shows the names and brief descriptions of commands.\nUsage: help [--raw]\nThe `help` command displays a list of all available commands, with a brief description for each command.",
"help_message_help": "Shows the names and brief descriptions of commands.", "help_message_help": "Shows the names and brief descriptions of commands",
"help_command": "Command", "help_command": "Command",
"help_message": "Text", "help_message": "Text",
"help_message_not_found": "No text found.", "help_message_not_found": "No text found",
"": "Command: stop", "": "Command: stop",
"man_message_stop": "stop - Stops the server.\nUsage: stop", "man_message_stop": "stop - Stops the server.\nUsage: stop",
"help_message_stop": "Stops the server.", "help_message_stop": "Stops the server.",
"": "Command: exit", "": "Command: exit",
"man_message_exit": "exit - Stops the server.\nUsage: exit", "man_message_exit": "exit - Stops the server.\nUsage: exit",
"help_message_exit": "Stops the server." "help_message_exit": "Stops the server."
} }
self.__i18n = i18n(self.__data) self.__i18n = i18n(self.__data)
def open_file(self): def open_file(self):