Skip to content
This repository was archived by the owner on Dec 23, 2020. It is now read-only.

Commit e4d3372

Browse files
authored
Merge pull request #7 from BlueskyClouds/master
add chinese translate
2 parents f380063 + a369a8b commit e4d3372

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ This discord bot can edit multiple messages for multiple source servers containi
2323
## Languages
2424
- English (Default) - ``SourceQueryBot.translations.English``
2525
- Russian - ``SourceQueryBot.translations.Russian``
26+
- Chinese - ``SourceQueryBot.translations.Chinese``
2627

2728
## API
2829
- ``from SourceQueryBot import SourceQueryBot``

SourceQueryBot/translations.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,16 @@ class Russian(TranslationBase):
3333
smart_presence = "{}/{} на {}"
3434
invalid_py_version = "Python 3.7 или выше требуется для" + \
3535
" smart presence, у вас запущен {}"
36+
37+
38+
class Chinese(TranslationBase):
39+
shutdown = "机器人正在关闭,请不要按 ctrl + C"
40+
on_ready = "登录为 {}"
41+
server = """**地图名:** {}\n**玩家:** {}/{}
42+
**连接:**\nsteam://connect/{}"""
43+
offline_title = "未知"
44+
offline_msg = "**此服务器离线.**"
45+
normal_presence = "{}/{} 在我们的服务器上."
46+
smart_presence = "{}/{} 在 {}"
47+
invalid_py_version = "需要 Python 3.7或更高版本" + \
48+
" smart presence, 您正在运行 {}"

0 commit comments

Comments
 (0)