From c68461f1d6c20adcfd3a9acece871b2d9af928fb Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Wed, 7 Aug 2019 14:35:59 -0400 Subject: [PATCH] adding chinese language (zh) --- edward | 2 +- lang/zh.py | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 lang/zh.py diff --git a/edward b/edward index fc099d8..d744392 100755 --- 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 index 0000000..a578ac9 --- /dev/null +++ b/lang/zh.py @@ -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 . * +* * +* 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' : " " +} + + + -- 2.25.1