Translate chat message via Google API
-
Video | 影片展示
None -
How does it work?
- Display menu when new player joins server -> Choose "Yes, translate my words to other player" -> Your chat messages will be translated into other player depends on their steam language
- You can define the official server language on
addons/sourcemod/configs/core.cfg
-> "ServerLang" keyvalue. - The translation is using Google Translation API
- May not working if Google is blocked in your Country/Region
-
Require | 必要安裝
-
ConVar | 指令
- cfg/sourcemod/sm_translator.cfg
// 0=Plugin off, 1=Plugin on. sm_translator_enable "1" // When new player connects, 0=Display menu to ask if player 'yes' or 'no', 1=Auto enable translator for player + Don't display menu sm_translator_default "0"
- cfg/sourcemod/sm_translator.cfg
-
Command | 命令
- Open translator menu
sm_translator
- Open translator menu
-
Apply to | 適用於
L4D1 L4D2
-
Translation Support | 支援翻譯
English 繁體中文 简体中文
-
Changelog | 版本日誌
-
v1.4h (2024-9-22)
- Block chat translation if different team
- Update translation
-
v1.3h (2024-9-21)
-
v1.2h (2024-9-20)
- Update cvars
-
v1.1h (2024-9-9)
- Fixed memory leak
-
v1.0h (2024-6-16)
- Use Google Translation API
- Add json inc
- Update translation
-
v1.0
-
翻譯你的句子給其他玩家 (玩家對應的語言)
-
原理
- 進入伺服器之後顯示選單 -> 選擇"好..." -> 你打字聊天的內容會自動翻譯給其他玩家 (根據他們的steam平台設置的語言)
- 伺服器語言預設是英文,可於
addons/sourcemod/configs/core.cfg
設置 -> "ServerLang" 參數
-
注意事項
- 使用的是Google提供的API翻譯,所以可能翻譯得不正確
- 如果你所在的地區無法上Google網站,可能無法使用此插件
-
指令中文介紹 (點我展開)
- cfg/sourcemod/sm_translator.cfg
// 1=開啟插件. 0=關閉插件 sm_translator_enable "1" // 當玩家近來伺服器時, 0=彈出選單詢問玩家是否自動翻譯, 1=自動幫玩家翻譯 + 不彈出選單 sm_translator_default "0"
- cfg/sourcemod/sm_translator.cfg
-
命令中文介紹 (點我展開)
- 打開選單
sm_translator
- 打開選單