Skocz do zawartości

[RSS] [Any] SM Translator (fork)


GameNation

Rekomendowane odpowiedzi

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 :P

Commands:
- sm_translator (!translator) - Open the menu to disable/enable the translator plugin for you.

ConVars:
PHP Code:

sm_translator_versionSM Translator Version
sm_translator_apiThe translation source used by SM TranslatordisabledBaiduDeepl FreeDeepl Pro (untested)
sm_translator_apikeyThe key value used by the translation sourceused for Baidu.
sm_translator_apiauthThe auth value used by the translation sourceused 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

Przeczytaj cały wpis na stronie AlliedModders

Odnośnik do komentarza
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Gość
Dodaj odpowiedź do tematu...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.