Skocz do zawartości

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.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

[Any] SM Translator (fork)


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 530
  • Lokalizacja:AMXX.PL
Offline

Napisano 30.08.2023 12:47

<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 (&quot;ServerLang&quot;).<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">-&nbsp;</span><span style="color: #0000BB">sm_translator_version</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">SM&nbsp;Translator&nbsp;Version
<br /></span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">sm_translator_api</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">The&nbsp;translation&nbsp;source&nbsp;used&nbsp;by&nbsp;SM&nbsp;Translator</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">0&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">disabled</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Baidu</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">2&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Deepl&nbsp;Free</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">3&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Deepl&nbsp;Pro&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">untested</span><span style="color: #007700">)
<br />-&nbsp;</span><span style="color: #0000BB">sm_translator_apikey</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">The&nbsp;key&nbsp;value&nbsp;used&nbsp;by&nbsp;the&nbsp;translation&nbsp;source</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">used&nbsp;</span><span style="color: #007700">for&nbsp;</span><span style="color: #0000BB">Baidu</span><span style="color: #007700">.
<br />-&nbsp;</span><span style="color: #0000BB">sm_translator_apiauth</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">The&nbsp;auth&nbsp;value&nbsp;used&nbsp;by&nbsp;the&nbsp;translation&nbsp;source</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">used&nbsp;</span><span style="color: #007700">for&nbsp;</span><span style="color: #0000BB">Baidu&nbsp;</span><span style="color: #007700">and&nbsp;</span><span style="color: #0000BB">Deepl</span><span style="color: #007700">.&nbsp;
<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&nbsp;1.0.0</span><span style="color: #007700">:
<br />&nbsp;&nbsp;</span><span style="color: #0000BB">officially&nbsp;released</span><span style="color: #007700">~&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div></div>

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych