Description:
This plugin is a fork of
original plugin because the original plugin hasn't been maintained for a long time. I have rewritten a portion of the code.
Translate chat messages into your language.
Players who join your server and don't have the official server language will have their sent messages translated. Additionally, messages from other players will be translated for them. You can define the official server language in addons/sourcemod/configs/core.cfg ("ServerLang").
However, you need to apply for the
Baidu Translate API or
Deepl Free/Pro API beforehand.
In a sense, this is my first publicly released plugin, so there might be some logic that's hard to understand. Oh, and my English isn't very good, so these contents are all machine-translated
Commands:
- sm_translator (!translator) - Open the menu to disable/enable the translator plugin for you.
ConVars:
PHP Code:
- sm_translator_version: SM Translator Version
- sm_translator_api: The translation source used by SM Translator. 0 = disabled, 1 = Baidu, 2 = Deepl Free, 3 = Deepl Pro (untested)
- sm_translator_apikey: The key value used by the translation source, used for Baidu.
- sm_translator_apiauth: The auth value used by the translation source, used for Baidu and Deepl.
Requirements:
-
SteamWorks
-
ripext
-
logger.inc (for compile)
Todo:
- Add more translation sources.
- Translate the commented parts of the code.
- Fix bugs (if anyone notifies me about them
)
Note:
- Baidu Translator can support almost all languages, but there may be network problems outside of China. DeepL Some languages are not supported.
Download: https://github.com/PencilMario/SM-Translator
Update Log:
PHP Code:
Version 1.0.0:
officially released~