更多翻译
This commit is contained in:
parent
96d67f0b6a
commit
fbc14e854a
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "wewechat",
|
"name": "wewechat",
|
||||||
"version": "1.2.1",
|
"version": "1.2.1.1",
|
||||||
"description": "make weweChat great again!!!",
|
"description": "make weweChat great again!!!",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -78,7 +78,7 @@ export default class Forward extends Component {
|
|||||||
onCancel={e => this.close()}
|
onCancel={e => this.close()}
|
||||||
show={this.props.show}>
|
show={this.props.show}>
|
||||||
<ModalBody className={classes.container}>
|
<ModalBody className={classes.container}>
|
||||||
Forward Message
|
转发消息
|
||||||
|
|
||||||
<div className={classes.avatars}>
|
<div className={classes.avatars}>
|
||||||
{
|
{
|
||||||
@ -100,7 +100,7 @@ export default class Forward extends Component {
|
|||||||
<button
|
<button
|
||||||
disabled={!this.state.selected.length}
|
disabled={!this.state.selected.length}
|
||||||
onClick={e => this.send(this.state.selected)}>
|
onClick={e => this.send(this.state.selected)}>
|
||||||
Send Message
|
发送消息
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button onClick={e => this.close()}>Cancel</button>
|
<button onClick={e => this.close()}>Cancel</button>
|
||||||
|
@ -448,7 +448,7 @@ export default class ChatContent extends Component {
|
|||||||
var caniforward = [1, 3, 47, 43, 49 + 6].includes(message.MsgType);
|
var caniforward = [1, 3, 47, 43, 49 + 6].includes(message.MsgType);
|
||||||
var templates = [
|
var templates = [
|
||||||
{
|
{
|
||||||
label: 'Delete',
|
label: '删除',
|
||||||
click: () => {
|
click: () => {
|
||||||
this.props.deleteMessage(message.MsgId);
|
this.props.deleteMessage(message.MsgId);
|
||||||
}
|
}
|
||||||
@ -458,7 +458,7 @@ export default class ChatContent extends Component {
|
|||||||
|
|
||||||
if (caniforward) {
|
if (caniforward) {
|
||||||
templates.unshift({
|
templates.unshift({
|
||||||
label: 'Forward',
|
label: '转发',
|
||||||
click: () => {
|
click: () => {
|
||||||
this.props.showForward(message);
|
this.props.showForward(message);
|
||||||
}
|
}
|
||||||
@ -468,7 +468,7 @@ export default class ChatContent extends Component {
|
|||||||
if (message.isme
|
if (message.isme
|
||||||
&& message.CreateTime - new Date() < 2 * 60 * 1000) {
|
&& message.CreateTime - new Date() < 2 * 60 * 1000) {
|
||||||
templates.unshift({
|
templates.unshift({
|
||||||
label: 'Recall',
|
label: '撤回',
|
||||||
click: () => {
|
click: () => {
|
||||||
this.props.recallMessage(message);
|
this.props.recallMessage(message);
|
||||||
}
|
}
|
||||||
@ -494,7 +494,7 @@ export default class ChatContent extends Component {
|
|||||||
type: 'separator',
|
type: 'separator',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Empty Content',
|
label: '清空聊天内容',
|
||||||
click: () => {
|
click: () => {
|
||||||
this.props.empty(user);
|
this.props.empty(user);
|
||||||
}
|
}
|
||||||
@ -503,13 +503,13 @@ export default class ChatContent extends Component {
|
|||||||
type: 'separator'
|
type: 'separator'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: helper.isTop(user) ? 'Unsticky' : 'Sticky on Top',
|
label: helper.isTop(user) ? '取消置顶' : '聊天置顶',
|
||||||
click: () => {
|
click: () => {
|
||||||
this.props.sticky(user);
|
this.props.sticky(user);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Delete',
|
label: '删除',
|
||||||
click: () => {
|
click: () => {
|
||||||
this.props.removeChat(user);
|
this.props.removeChat(user);
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ export default class Chats extends Component {
|
|||||||
showContextMenu(user) {
|
showContextMenu(user) {
|
||||||
var menu = new remote.Menu.buildFromTemplate([
|
var menu = new remote.Menu.buildFromTemplate([
|
||||||
{
|
{
|
||||||
label: 'Send Message',
|
label: '发送消息',
|
||||||
click: () => {
|
click: () => {
|
||||||
this.props.chatTo(user);
|
this.props.chatTo(user);
|
||||||
}
|
}
|
||||||
@ -65,19 +65,19 @@ export default class Chats extends Component {
|
|||||||
type: 'separator'
|
type: 'separator'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: helper.isTop(user) ? 'Unsticky' : 'Sticky on Top',
|
label: helper.isTop(user) ? '取消置顶' : '聊天置顶',
|
||||||
click: () => {
|
click: () => {
|
||||||
this.props.sticky(user);
|
this.props.sticky(user);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Delete',
|
label: '删除',
|
||||||
click: () => {
|
click: () => {
|
||||||
this.props.removeChat(user);
|
this.props.removeChat(user);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Mark as Read',
|
label: '标为已读',
|
||||||
click: () => {
|
click: () => {
|
||||||
this.props.markedRead(user.UserName);
|
this.props.markedRead(user.UserName);
|
||||||
}
|
}
|
||||||
|
@ -210,7 +210,7 @@ class UserInfo extends Component {
|
|||||||
color: buttonColor,
|
color: buttonColor,
|
||||||
opacity: .6,
|
opacity: .6,
|
||||||
}}>
|
}}>
|
||||||
{helper.isChatRoom(UserName) || isFriend ? 'Send Message' : 'Add Friend'}
|
{helper.isChatRoom(UserName) || isFriend ? '发送消息' : '添加好友'}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user