i18n of video calls

This commit is contained in:
or-else
2022-05-28 16:54:43 -07:00
parent 535d276665
commit 43e3395350
16 changed files with 182 additions and 215 deletions
+20 -26
View File
@@ -1368,59 +1368,53 @@
"missing": false,
"obsolete": false
},
"preview_unavailable": {
"translation": "nicht verfügbar",
"defaultMessage": "unavailable",
"description": "Message shown when media preview is not available",
"missing": false,
"obsolete": true
},
"calls_incoming": {
"translation": "",
"translation": "Eingehender Anruf",
"defaultMessage": "Incoming call",
"description": "Incoming call label",
"missing": true,
"missing": false,
"obsolete": false
},
"calls_incoming_title": {
"translation": "",
"defaultMessage": "Incoming Call",
"description": "Incoming call title (Incoming call view)",
"missing": true,
"obsolete": true
},
"calls_outgoing": {
"translation": "",
"translation": "Ausgehender Anruf",
"defaultMessage": "Outgoing call",
"description": "Outgoing call label",
"missing": true,
"missing": false,
"obsolete": false
},
"calls_you_label": {
"translation": "",
"translation": "Du",
"defaultMessage": "You",
"description": "Shown over the local video screen",
"missing": true,
"missing": false,
"obsolete": false
},
"menu_item_video_call": {
"translation": "",
"translation": "Videoanruf",
"defaultMessage": "Video call",
"description": "Start video call",
"missing": true,
"missing": false,
"obsolete": false
},
"already_in_call": {
"translation": "",
"translation": "Du redest schon!",
"defaultMessage": "You already in an ongoing call!",
"description": "Error message when the user tried to accept a new call without finishing pervious one",
"missing": true,
"missing": false,
"obsolete": false
},
"call_cancelled": {
"translation": "",
"translation": "abgebrochen",
"defaultMessage": "cancelled",
"missing": true,
"description": "Label for cancelled outgoing call",
"missing": false,
"obsolete": false
},
"call_missed": {
"translation": "verpasster",
"defaultMessage": "missed",
"description": "Label for cancelled incoming call",
"missing": false,
"obsolete": false
}
}
+9 -15
View File
@@ -1368,27 +1368,13 @@
"missing": false,
"obsolete": false
},
"preview_unavailable": {
"translation": "unavailable",
"defaultMessage": "unavailable",
"description": "Message shown when media preview is not available",
"missing": false,
"obsolete": true
},
"calls_incoming": {
"translation": "Incoming Call",
"translation": "Incoming call",
"defaultMessage": "Incoming call",
"description": "Incoming call label",
"missing": false,
"obsolete": false
},
"calls_incoming_title": {
"translation": "Incoming call",
"defaultMessage": "Incoming call",
"description": "Incoming call title (Incoming call view)",
"missing": false,
"obsolete": true
},
"calls_outgoing": {
"translation": "Outgoing call",
"defaultMessage": "Outgoing call",
@@ -1420,6 +1406,14 @@
"call_cancelled": {
"translation": "cancelled",
"defaultMessage": "cancelled",
"description": "Label for cancelled outgoing call",
"missing": false,
"obsolete": false
},
"call_missed": {
"translation": "missed",
"defaultMessage": "missed",
"description": "Label for cancelled incoming call",
"missing": false,
"obsolete": false
}
+20 -26
View File
@@ -1368,59 +1368,53 @@
"missing": false,
"obsolete": false
},
"preview_unavailable": {
"translation": "indisponible",
"defaultMessage": "unavailable",
"description": "Message shown when media preview is not available",
"missing": false,
"obsolete": true
},
"calls_incoming": {
"translation": "",
"translation": "Llamada entrante",
"defaultMessage": "Incoming call",
"description": "Incoming call label",
"missing": true,
"missing": false,
"obsolete": false
},
"calls_incoming_title": {
"translation": "",
"defaultMessage": "Incoming Call",
"description": "Incoming call title (Incoming call view)",
"missing": true,
"obsolete": true
},
"calls_outgoing": {
"translation": "",
"translation": "Llamada saliente",
"defaultMessage": "Outgoing call",
"description": "Outgoing call label",
"missing": true,
"missing": false,
"obsolete": false
},
"calls_you_label": {
"translation": "",
"translation": "Tú",
"defaultMessage": "You",
"description": "Shown over the local video screen",
"missing": true,
"missing": false,
"obsolete": false
},
"menu_item_video_call": {
"translation": "",
"translation": "Videollamada",
"defaultMessage": "Video call",
"description": "Start video call",
"missing": true,
"missing": false,
"obsolete": false
},
"already_in_call": {
"translation": "",
"translation": "¡Ya estás hablando!",
"defaultMessage": "You already in an ongoing call!",
"description": "Error message when the user tried to accept a new call without finishing pervious one",
"missing": true,
"missing": false,
"obsolete": false
},
"call_cancelled": {
"translation": "",
"translation": "cancelada",
"defaultMessage": "cancelled",
"missing": true,
"description": "Label for cancelled outgoing call",
"missing": false,
"obsolete": false
},
"call_missed": {
"translation": "perdida",
"defaultMessage": "missed",
"description": "Label for cancelled incoming call",
"missing": false,
"obsolete": false
}
}
+6 -1
View File
@@ -124,7 +124,12 @@
"description": "Button [Update]"
},
"call_cancelled": {
"defaultMessage": "cancelled"
"defaultMessage": "cancelled",
"description": "Label for cancelled outgoing call"
},
"call_missed": {
"defaultMessage": "missed",
"description": "Label for cancelled incoming call"
},
"calls_incoming": {
"defaultMessage": "Incoming call",
+20 -26
View File
@@ -1368,59 +1368,53 @@
"missing": false,
"obsolete": false
},
"preview_unavailable": {
"translation": "없는",
"defaultMessage": "unavailable",
"description": "Message shown when media preview is not available",
"missing": false,
"obsolete": true
},
"calls_incoming": {
"translation": "",
"translation": "수신 전화",
"defaultMessage": "Incoming call",
"description": "Incoming call label",
"missing": true,
"missing": false,
"obsolete": false
},
"calls_incoming_title": {
"translation": "",
"defaultMessage": "Incoming Call",
"description": "Incoming call title (Incoming call view)",
"missing": true,
"obsolete": true
},
"calls_outgoing": {
"translation": "",
"translation": "발신 전화",
"defaultMessage": "Outgoing call",
"description": "Outgoing call label",
"missing": true,
"missing": false,
"obsolete": false
},
"calls_you_label": {
"translation": "",
"translation": "너",
"defaultMessage": "You",
"description": "Shown over the local video screen",
"missing": true,
"missing": false,
"obsolete": false
},
"menu_item_video_call": {
"translation": "",
"translation": "영상 통화",
"defaultMessage": "Video call",
"description": "Start video call",
"missing": true,
"missing": false,
"obsolete": false
},
"already_in_call": {
"translation": "",
"translation": "당신은 이미 말하고 있습니다!",
"defaultMessage": "You already in an ongoing call!",
"description": "Error message when the user tried to accept a new call without finishing pervious one",
"missing": true,
"missing": false,
"obsolete": false
},
"call_cancelled": {
"translation": "",
"translation": "취소 된",
"defaultMessage": "cancelled",
"missing": true,
"description": "Label for cancelled outgoing call",
"missing": false,
"obsolete": false
},
"call_missed": {
"translation": "부재중",
"defaultMessage": "missed",
"description": "Label for cancelled incoming call",
"missing": false,
"obsolete": false
}
}
+20 -26
View File
@@ -1368,59 +1368,53 @@
"missing": false,
"obsolete": false
},
"preview_unavailable": {
"translation": "indisponibil",
"defaultMessage": "unavailable",
"description": "Message shown when media preview is not available",
"missing": false,
"obsolete": true
},
"calls_incoming": {
"translation": "",
"translation": "Apel primit",
"defaultMessage": "Incoming call",
"description": "Incoming call label",
"missing": true,
"missing": false,
"obsolete": false
},
"calls_incoming_title": {
"translation": "",
"defaultMessage": "Incoming Call",
"description": "Incoming call title (Incoming call view)",
"missing": true,
"obsolete": true
},
"calls_outgoing": {
"translation": "",
"translation": "Apel efectuat",
"defaultMessage": "Outgoing call",
"description": "Outgoing call label",
"missing": true,
"missing": false,
"obsolete": false
},
"calls_you_label": {
"translation": "",
"translation": "Tu",
"defaultMessage": "You",
"description": "Shown over the local video screen",
"missing": true,
"missing": false,
"obsolete": false
},
"menu_item_video_call": {
"translation": "",
"translation": "Apel video",
"defaultMessage": "Video call",
"description": "Start video call",
"missing": true,
"missing": false,
"obsolete": false
},
"already_in_call": {
"translation": "",
"translation": "Deja vorbesti!",
"defaultMessage": "You already in an ongoing call!",
"description": "Error message when the user tried to accept a new call without finishing pervious one",
"missing": true,
"missing": false,
"obsolete": false
},
"call_cancelled": {
"translation": "",
"translation": "anulat",
"defaultMessage": "cancelled",
"missing": true,
"description": "Label for cancelled outgoing call",
"missing": false,
"obsolete": false
},
"call_missed": {
"translation": "pierdut",
"defaultMessage": "missed",
"description": "Label for cancelled incoming call",
"missing": false,
"obsolete": false
}
}
+20 -26
View File
@@ -1368,59 +1368,53 @@
"missing": false,
"obsolete": false
},
"preview_unavailable": {
"translation": "недоступно",
"defaultMessage": "unavailable",
"description": "Message shown when media preview is not available",
"missing": false,
"obsolete": true
},
"calls_incoming": {
"translation": "",
"translation": "Входящий звонок",
"defaultMessage": "Incoming call",
"description": "Incoming call label",
"missing": true,
"missing": false,
"obsolete": false
},
"calls_incoming_title": {
"translation": "",
"defaultMessage": "Incoming Call",
"description": "Incoming call title (Incoming call view)",
"missing": true,
"obsolete": true
},
"calls_outgoing": {
"translation": "",
"translation": "Исходящий звонок",
"defaultMessage": "Outgoing call",
"description": "Outgoing call label",
"missing": true,
"missing": false,
"obsolete": false
},
"calls_you_label": {
"translation": "",
"translation": "Вы",
"defaultMessage": "You",
"description": "Shown over the local video screen",
"missing": true,
"missing": false,
"obsolete": false
},
"menu_item_video_call": {
"translation": "",
"translation": "Видеозвонок",
"defaultMessage": "Video call",
"description": "Start video call",
"missing": true,
"missing": false,
"obsolete": false
},
"already_in_call": {
"translation": "",
"translation": "Вы уже звоните кому-то!",
"defaultMessage": "You already in an ongoing call!",
"description": "Error message when the user tried to accept a new call without finishing pervious one",
"missing": true,
"missing": false,
"obsolete": false
},
"call_cancelled": {
"translation": "",
"translation": "отменен",
"defaultMessage": "cancelled",
"missing": true,
"description": "Label for cancelled outgoing call",
"missing": false,
"obsolete": false
},
"call_missed": {
"translation": "пропущен",
"defaultMessage": "missed",
"description": "Label for cancelled incoming call",
"missing": false,
"obsolete": false
}
}
+20 -26
View File
@@ -1368,59 +1368,53 @@
"missing": false,
"obsolete": false
},
"preview_unavailable": {
"translation": "不可用",
"defaultMessage": "unavailable",
"description": "Message shown when media preview is not available",
"missing": false,
"obsolete": true
},
"calls_incoming": {
"translation": "",
"translation": "來電",
"defaultMessage": "Incoming call",
"description": "Incoming call label",
"missing": true,
"missing": false,
"obsolete": false
},
"calls_incoming_title": {
"translation": "",
"defaultMessage": "Incoming Call",
"description": "Incoming call title (Incoming call view)",
"missing": true,
"obsolete": true
},
"calls_outgoing": {
"translation": "",
"translation": "撥出電話",
"defaultMessage": "Outgoing call",
"description": "Outgoing call label",
"missing": true,
"missing": false,
"obsolete": false
},
"calls_you_label": {
"translation": "",
"translation": "你",
"defaultMessage": "You",
"description": "Shown over the local video screen",
"missing": true,
"missing": false,
"obsolete": false
},
"menu_item_video_call": {
"translation": "",
"translation": "視頻電話",
"defaultMessage": "Video call",
"description": "Start video call",
"missing": true,
"missing": false,
"obsolete": false
},
"already_in_call": {
"translation": "",
"translation": "你已經在說話了!",
"defaultMessage": "You already in an ongoing call!",
"description": "Error message when the user tried to accept a new call without finishing pervious one",
"missing": true,
"missing": false,
"obsolete": false
},
"call_cancelled": {
"translation": "",
"translation": "取消",
"defaultMessage": "cancelled",
"missing": true,
"description": "Label for cancelled outgoing call",
"missing": false,
"obsolete": false
},
"call_missed": {
"translation": "未接",
"defaultMessage": "missed",
"description": "Label for cancelled incoming call",
"missing": false,
"obsolete": false
}
}
+20 -26
View File
@@ -1368,59 +1368,53 @@
"missing": false,
"obsolete": false
},
"preview_unavailable": {
"translation": "不可用",
"defaultMessage": "unavailable",
"description": "Message shown when media preview is not available",
"missing": false,
"obsolete": true
},
"calls_incoming": {
"translation": "",
"translation": "来电",
"defaultMessage": "Incoming call",
"description": "Incoming call label",
"missing": true,
"missing": false,
"obsolete": false
},
"calls_incoming_title": {
"translation": "",
"defaultMessage": "Incoming Call",
"description": "Incoming call title (Incoming call view)",
"missing": true,
"obsolete": true
},
"calls_outgoing": {
"translation": "",
"translation": "拨出电话",
"defaultMessage": "Outgoing call",
"description": "Outgoing call label",
"missing": true,
"missing": false,
"obsolete": false
},
"calls_you_label": {
"translation": "",
"translation": "你",
"defaultMessage": "You",
"description": "Shown over the local video screen",
"missing": true,
"missing": false,
"obsolete": false
},
"menu_item_video_call": {
"translation": "",
"translation": "视频电话",
"defaultMessage": "Video call",
"description": "Start video call",
"missing": true,
"missing": false,
"obsolete": false
},
"already_in_call": {
"translation": "",
"translation": "你已经在说话了!",
"defaultMessage": "You already in an ongoing call!",
"description": "Error message when the user tried to accept a new call without finishing pervious one",
"missing": true,
"missing": false,
"obsolete": false
},
"call_cancelled": {
"translation": "",
"translation": "取消",
"defaultMessage": "cancelled",
"missing": true,
"description": "Label for cancelled outgoing call",
"missing": false,
"obsolete": false
},
"call_missed": {
"translation": "未接",
"defaultMessage": "missed",
"description": "Label for cancelled incoming call",
"missing": false,
"obsolete": false
}
}
+1 -1
View File
File diff suppressed because one or more lines are too long
+6 -3
View File
@@ -8,12 +8,15 @@ import { secondsToTime } from '../lib/strformat.js';
export default class CallMessage extends React.PureComponent {
render() {
const isCallDropped = this.props.content == 'disconnected';
const successClass = 'material-icons medium ' + (isCallDropped ? 'red' : 'green');
const callIcon = this.props.response ?
(isCallDropped ? 'call_missed' : 'call_received') :
(isCallDropped ? 'call_missed_outgoing' : 'call_made');
const successClass = 'material-icons medium ' + (isCallDropped ? 'red' : 'green');
const duration = isCallDropped ?
<FormattedMessage id="call_cancelled" defaultMessage="cancelled" dexcription="Label for cancelled call, incoming or outgoing" /> :
const duration = isCallDropped ? (
this.props.response ?
<FormattedMessage id="call_missed" defaultMessage="missed" description="Label for cancelled incoming call" /> :
<FormattedMessage id="call_cancelled" defaultMessage="cancelled" description="Label for cancelled outgoing call" />
) :
<span>{secondsToTime(this.props.duration / 1000)}</span>;
return <div className="call-message">
<div><i className="material-icons big gray">call</i></div>
+4 -2
View File
@@ -71,8 +71,10 @@ class Contact extends React.Component {
// The this.props.preview contains alreay shortened Drafty or string.
let preview;
if (this.props.previewIsVideoCall) {
preview = <><i className="material-icons">{this.props.previewIsResponse ? 'call_received' : 'call_made'}</i>
<i className="material-icons">video_call</i></>;
preview = <>
<i className="material-icons">call</i>
<i className="material-icons medium">{this.props.previewIsResponse ? 'call_received' : 'call_made'}</i>
</>;
} else if (typeof this.props.preview == 'string') {
preview = this.props.preview;
} else if (Drafty.isValid(this.props.preview)) {
+13 -8
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long