<div><b><u>Description:</u></b><br /><br />This plugin is a fork of <a href="https://forums.allie....php?p=2584395"target="_blank" rel="noopener">original plugin</a> because the original plugin hasn't been maintained for a long time. I have rewritten a portion of the code.<br /><br />Translate chat messages into your language.<br /><br />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").<br /><br />However, you need to apply for the <a href="https://api.fanyi.baidu.com/" target="_blank" rel="nofollow noopener">Baidu Translate API</a> or <a href="https://www.deepl.com/pro-api?cta=header-pro-api" target="_blank" rel="nofollow noopener">Deepl Free/Pro API</a> beforehand.<br /><br />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 :P<br /><br /><b><u>Commands:</u></b><br />- sm_translator (!translator) - Open the menu to disable/enable the translator plugin for you.<br /><br /><b><u>ConVars:</u></b><br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2">
<hr />
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">- </span><span style="color: #0000BB">sm_translator_version</span><span style="color: #007700">: </span><span style="color: #0000BB">SM Translator Version
<br /></span><span style="color: #007700">- </span><span style="color: #0000BB">sm_translator_api</span><span style="color: #007700">: </span><span style="color: #0000BB">The translation source used by SM Translator</span><span style="color: #007700">. </span><span style="color: #0000BB">0 </span><span style="color: #007700">= </span><span style="color: #0000BB">disabled</span><span style="color: #007700">, </span><span style="color: #0000BB">1 </span><span style="color: #007700">= </span><span style="color: #0000BB">Baidu</span><span style="color: #007700">, </span><span style="color: #0000BB">2 </span><span style="color: #007700">= </span><span style="color: #0000BB">Deepl Free</span><span style="color: #007700">, </span><span style="color: #0000BB">3 </span><span style="color: #007700">= </span><span style="color: #0000BB">Deepl Pro </span><span style="color: #007700">(</span><span style="color: #0000BB">untested</span><span style="color: #007700">)
<br />- </span><span style="color: #0000BB">sm_translator_apikey</span><span style="color: #007700">: </span><span style="color: #0000BB">The key value used by the translation source</span><span style="color: #007700">, </span><span style="color: #0000BB">used </span><span style="color: #007700">for </span><span style="color: #0000BB">Baidu</span><span style="color: #007700">.
<br />- </span><span style="color: #0000BB">sm_translator_apiauth</span><span style="color: #007700">: </span><span style="color: #0000BB">The auth value used by the translation source</span><span style="color: #007700">, </span><span style="color: #0000BB">used </span><span style="color: #007700">for </span><span style="color: #0000BB">Baidu </span><span style="color: #007700">and </span><span style="color: #0000BB">Deepl</span><span style="color: #007700">.
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div><b><u>Requirements:</u></b><br />- <a href="https://forums.allie...d.php?t=229556"target="_blank" rel="noopener">SteamWorks</a><br />- <a href="https://github.com/ErikMinekus/sm-ripext" target="_blank" rel="nofollow noopener">ripext</a><br />- <a href="https://github.com/PencilMario/SM-Translator/blob/master/scripting/include/logger.inc" target="_blank" rel="nofollow noopener">logger.inc</a> (for compile)<br /><br /><b><u>Todo:</u></b><br />- Add more translation sources.<br />- Translate the commented parts of the code.<br />- Fix bugs (if anyone notifies me about them :))<br /><br /><b><u>Note:</u></b><br />- Baidu Translator can support almost all languages, but there may be network problems outside of China. DeepL Some languages are not supported.<br /><br /><b><u>Download: </u></b><a href="https://github.com/PencilMario/SM-Translator" target="_blank" rel="nofollow noopener">https://github.com/P...anslator</a><br /><br /><b><u>Update Log:</u></b><br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2">
<hr />
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB">Version 1.0.0</span><span style="color: #007700">:
<br /> </span><span style="color: #0000BB">officially released</span><span style="color: #007700">~
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div></div>
Wyświetl pełny artykuł
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse

[Any] SM Translator (fork)
Temat rozp. Adminek AMXX.PL, 30.08.2023 12:47
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych