From fbc14e854a4236b2db0e909e871caf6ef4b383b2 Mon Sep 17 00:00:00 2001 From: shenmo Date: Fri, 2 Sep 2022 13:11:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E5=A4=9A=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/js/pages/Forward/index.js | 4 ++-- src/js/pages/Home/ChatContent/index.js | 12 ++++++------ src/js/pages/Home/Chats/index.js | 8 ++++---- src/js/pages/UserInfo/index.js | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 55d8ac1..36ec953 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wewechat", - "version": "1.2.1", + "version": "1.2.1.1", "description": "make weweChat great again!!!", "main": "main.js", "scripts": { diff --git a/src/js/pages/Forward/index.js b/src/js/pages/Forward/index.js index 691ba08..ffef11d 100644 --- a/src/js/pages/Forward/index.js +++ b/src/js/pages/Forward/index.js @@ -78,7 +78,7 @@ export default class Forward extends Component { onCancel={e => this.close()} show={this.props.show}> - Forward Message + 转发消息
{ @@ -100,7 +100,7 @@ export default class Forward extends Component { diff --git a/src/js/pages/Home/ChatContent/index.js b/src/js/pages/Home/ChatContent/index.js index 7f07064..a64159f 100644 --- a/src/js/pages/Home/ChatContent/index.js +++ b/src/js/pages/Home/ChatContent/index.js @@ -448,7 +448,7 @@ export default class ChatContent extends Component { var caniforward = [1, 3, 47, 43, 49 + 6].includes(message.MsgType); var templates = [ { - label: 'Delete', + label: '删除', click: () => { this.props.deleteMessage(message.MsgId); } @@ -458,7 +458,7 @@ export default class ChatContent extends Component { if (caniforward) { templates.unshift({ - label: 'Forward', + label: '转发', click: () => { this.props.showForward(message); } @@ -468,7 +468,7 @@ export default class ChatContent extends Component { if (message.isme && message.CreateTime - new Date() < 2 * 60 * 1000) { templates.unshift({ - label: 'Recall', + label: '撤回', click: () => { this.props.recallMessage(message); } @@ -494,7 +494,7 @@ export default class ChatContent extends Component { type: 'separator', }, { - label: 'Empty Content', + label: '清空聊天内容', click: () => { this.props.empty(user); } @@ -503,13 +503,13 @@ export default class ChatContent extends Component { type: 'separator' }, { - label: helper.isTop(user) ? 'Unsticky' : 'Sticky on Top', + label: helper.isTop(user) ? '取消置顶' : '聊天置顶', click: () => { this.props.sticky(user); } }, { - label: 'Delete', + label: '删除', click: () => { this.props.removeChat(user); } diff --git a/src/js/pages/Home/Chats/index.js b/src/js/pages/Home/Chats/index.js index a706ecc..5d2e466 100644 --- a/src/js/pages/Home/Chats/index.js +++ b/src/js/pages/Home/Chats/index.js @@ -56,7 +56,7 @@ export default class Chats extends Component { showContextMenu(user) { var menu = new remote.Menu.buildFromTemplate([ { - label: 'Send Message', + label: '发送消息', click: () => { this.props.chatTo(user); } @@ -65,19 +65,19 @@ export default class Chats extends Component { type: 'separator' }, { - label: helper.isTop(user) ? 'Unsticky' : 'Sticky on Top', + label: helper.isTop(user) ? '取消置顶' : '聊天置顶', click: () => { this.props.sticky(user); } }, { - label: 'Delete', + label: '删除', click: () => { this.props.removeChat(user); } }, { - label: 'Mark as Read', + label: '标为已读', click: () => { this.props.markedRead(user.UserName); } diff --git a/src/js/pages/UserInfo/index.js b/src/js/pages/UserInfo/index.js index 3a0d520..387747d 100644 --- a/src/js/pages/UserInfo/index.js +++ b/src/js/pages/UserInfo/index.js @@ -210,7 +210,7 @@ class UserInfo extends Component { color: buttonColor, opacity: .6, }}> - {helper.isChatRoom(UserName) || isFriend ? 'Send Message' : 'Add Friend'} + {helper.isChatRoom(UserName) || isFriend ? '发送消息' : '添加好友'}