adding chinese language (zh)
authorAndrew Engelbrecht <andrew@fsf.org>
Wed, 7 Aug 2019 18:35:59 +0000 (14:35 -0400)
committerAndrew Engelbrecht <andrew@fsf.org>
Wed, 7 Aug 2019 18:35:59 +0000 (14:35 -0400)
edward
lang/zh.py [new file with mode: 0644]

diff --git a/edward b/edward
index fc099d82ccfa605f3d2f49e9746b8d99a666aecd..d7443927cabc24fa373c66b8019015be5d981dd2 100755 (executable)
--- a/edward
+++ b/edward
@@ -51,7 +51,7 @@ from email.mime.nonmultipart    import MIMENonMultipart
 
 import edward_config
 
-langs = ["de", "el", "en", "es", "fr", "it", "ja", "pt-br", "ro", "ru", "tr"]
+langs = ["de", "el", "en", "es", "fr", "it", "ja", "pt-br", "ro", "ru", "tr", "zh"]
 
 """This list contains the abbreviated names of reply languages available to
 edward."""
diff --git a/lang/zh.py b/lang/zh.py
new file mode 100644 (file)
index 0000000..a578ac9
--- /dev/null
@@ -0,0 +1,37 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+"""*********************************************************************
+* This file is part of Edward the GPG Bot.                             *
+*                                                                      *
+* Edward is free software: you can redistribute it and/or modify       *
+* it under the terms of the GNU Affero Public License as published by  *
+* the Free Software Foundation, either version 3 of the License, or    *
+* (at your option) any later version.                                  *
+*                                                                      *
+* Edward is distributed in the hope that it will be useful,            *
+* but WITHOUT ANY WARRANTY; without even the implied warranty of       *
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
+* GNU Affero Public License for more details.                          *
+*                                                                      *
+* You should have received a copy of the GNU Affero Public License     *
+* along with Edward.  If not, see <http://www.gnu.org/licenses/>.      *
+*                                                                      *
+* Josh Drake, Copyright (c) 2014                                       *
+* Lisa Marie Maginnis, Copyright (c) 2014                              *
+*********************************************************************"""
+
+replies = {
+    'greeting' : "你好,我是爱德华,一个友好的 GnuPG 机器人。",
+    'success_decrypt' : "我收到你的消息并解密了它。",
+    'quote_follows' : "以下是原始消息的副本:",
+    'public_key_received' : '我收到了你的公钥。谢谢。',
+    'failed_decrypt' : "抱歉,我无法解密你的消息。你确定加密消息时使用的是我的公钥吗?",
+    'no_public_key' : "抱歉,我无法找到你的公钥。你忘记附件里发送公钥了吗?",
+    'sig_failure' : '签名无法验证。',
+    'sig_success' : '签名已验证。',
+    'signature' : '- 爱德华,一个友好的 GnuPG 机器人\n自由软件基金会创造了我。\n\n你能捐款支持他们的工作吗?\nhttps://www.fsf.org/donate',
+    'space' : " "
+}
+
+
+