From 7466f987ac55ecec87c36ce7da02c1589eebce28 Mon Sep 17 00:00:00 2001 From: SantaSpeen Date: Wed, 26 Jul 2023 01:52:08 +0300 Subject: [PATCH] hotfix --- src/modules/i18n/i18n.py | 129 +++++++++++++++++++++------------------ 1 file changed, 70 insertions(+), 59 deletions(-) diff --git a/src/modules/i18n/i18n.py b/src/modules/i18n/i18n.py index 1894fe8..9377993 100644 --- a/src/modules/i18n/i18n.py +++ b/src/modules/i18n/i18n.py @@ -48,75 +48,86 @@ class MultiLanguage: else: # noinspection PyDictDuplicateKeys self.__data = { - "": "Basic phases", - "hello": "Hello from KuiToi-Server!", - "config_path": "Use {} for configuration.", - "init_ok": "Initialization completed.", - "start": "Server started!", - "stop": "Server stopped!", + "": "Basic phases", + "hello": "Hello from KuiToi-Server!", + "config_path": "Use {} to configure.", + "init_ok": "Initialization completed.", + "start": "Server started!", + "stop": "Server stopped!", - "": "Server auth", - "auth_need_key": "A BeamMP key is required to start!", - "auth_empty_key": "BeamMP key is empty!", - "auth_cannot_open_browser": "Failed to open browser: {}", - "auth_use_link": "Use this link: {}", + "": "Server auth", + "auth_need_key": "BeamMP key is required to run!", + "auth_empty_key": "BeamMP key is empty!", + "auth_cannot_open_browser": "Failed to open browser: {}", + "auth_use_link": "Use this link: {}", - "": "GUI phases", - "GUI_yes": "Yes", - "GUI_no": "No", - "GUI_ok": "OK", - "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_enter_key_message": "Please enter the key:", - "GUI_cannot_open_browser": "Failed to open browser.\nUse this link: {}", + "": "GUI phases", + "GUI_yes": "Yes", + "GUI_no": "No", + "GUI_ok": "OK", + "GUI_cancel": "Cancel", + "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_cannot_open_browser": "Failed to open browser.\nUse this link: {}", - "": "Web phases", - "web_start": "WebAPI started on {} (CTRL+C to stop)", + "": "Web phases", + "web_start": "WebAPI started on {} (CTRL+C to stop)", - "": "Core phrases", - "core_direct_mode": "Server started in direct connection mode.", - "core_auth_server_error": "Incorrect response received from BeamMP authentication server.", - "core_auth_server_refused": "BeamMP authentication server rejected your key. Reason: {}", - "core_auth_server_refused_no_reason": "BeamMP authentication server did not provide a reason.", - "core_auth_server_refused_direct_node": "Server is still running, but in direct connection mode.", - "core_auth_server_no_response": "Failed to authenticate the server.", - "core_mods_loaded": "{} mods loaded. {}Mb", + "": "Core phrases", + "core_bind_failed": "Failed to bind port. Error: {}", + "core_direct_mode": "Server started in direct connection mode.", + "core_auth_server_error": "Received invalid response from BeamMP authentication server.", + "core_auth_server_refused": "The BeamMP authentication server refused your key. Reason: {}", + "core_auth_server_refused_no_reason": "The BeamMP authentication server did not provide a reason.", + "core_auth_server_refused_direct_node": "The server is still running, but in direct connection mode.", + "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", - "game_player_kicked": "Kicked for reason: \"{}\"", - "game_welcome_message": "Welcome {}!", + "": "In-game phrases", + "game_welcome_message": "Welcome {}!", - "": "Client class phrases", - "client_mod_request": "Mod requested: {}", - "client_mod_sent": "Mod sent: Size: {}mb, Speed: {}Mb/s ({}sec)", - "client_mod_sent_limit": " (limit {}Mb/s)", - "client_mod_sent_error": "Error sending mod: {}", - "client_sync_time": "Sync time {}sec.", - "client_event_invalid_data": "Invalid data returned from event: {}", - "client_player_disconnected": "Disconnected from the server. Game time: {} min.", + "": "Client class phrases", + "client_mod_request": "Requested mod: {}", + "client_mod_sent": "Mod sent: Size: {}mb, Speed: {}Mb/s ({}sec)", + "client_mod_sent_limit": " (limit {}Mb/s)", + "client_mod_sent_error": "Error sending mod: {}", + "client_sync_time": "Sync time {}sec.", + "client_kicked": "Kicked for reason: \"{}\"", + "client_event_invalid_data": "Invalid data returned from event: {}", + "client_player_disconnected": "Left the server. Playtime: {} min", - "": "Command: man", - "man_message_man": "man - Shows help page for COMMAND.\nUsage: man COMMAND", - "help_message_man": "Shows help page for COMMAND.", - "man_for": "Help page for", - "man_message_not_found": "man: No help page found.", - "man_command_not_found": "man: Command \"{}\" not found!", + "": "Command: man", + "man_message_man": "man - Shows the help page for COMMAND.\nUsage: man COMMAND", + "help_message_man": "Shows the help page for COMMAND.", + "man_for": "Help page for", + "man_message_not_found": "man: Help page not found.", + "man_command_not_found": "man: Command \"{}\" not found!", - "": "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.", - "help_message_help": "Shows the names and brief descriptions of commands.", - "help_command": "Command", - "help_message": "Text", - "help_message_not_found": "No text found.", + "": "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, with a brief description for each command.", + "help_message_help": "Shows the names and brief descriptions of commands", + "help_command": "Command", + "help_message": "Text", + "help_message_not_found": "No text found", - "": "Command: stop", - "man_message_stop": "stop - Stops the server.\nUsage: stop", - "help_message_stop": "Stops the server.", + "": "Command: stop", + "man_message_stop": "stop - Stops the server.\nUsage: stop", + "help_message_stop": "Stops the server.", - "": "Command: exit", - "man_message_exit": "exit - Stops the server.\nUsage: exit", - "help_message_exit": "Stops the server." -} + "": "Command: exit", + "man_message_exit": "exit - Stops the server.\nUsage: exit", + "help_message_exit": "Stops the server." + } self.__i18n = i18n(self.__data) def open_file(self):