UI strings: durationNA and moderater's finish message
This commit is contained in:
parent
f8c01646c7
commit
2dfb107c57
|
@ -674,8 +674,9 @@
|
||||||
"start": "Start",
|
"start": "Start",
|
||||||
"stop": "Stop",
|
"stop": "Stop",
|
||||||
"moderator": "Moderator",
|
"moderator": "Moderator",
|
||||||
"localUser": "Local user",
|
"me": "Me",
|
||||||
"duration": "Duration",
|
"duration": "Duration",
|
||||||
|
"durationNA": "N/A",
|
||||||
"encoding": "Encoding",
|
"encoding": "Encoding",
|
||||||
"participantStats": "Participant Stats",
|
"participantStats": "Participant Stats",
|
||||||
"clientState": {
|
"clientState": {
|
||||||
|
@ -686,6 +687,7 @@
|
||||||
"messages": {
|
"messages": {
|
||||||
"engaged": "Local recording engaged.",
|
"engaged": "Local recording engaged.",
|
||||||
"finished": "Recording session __token__ finished. Please send the recorded file to the moderator.",
|
"finished": "Recording session __token__ finished. Please send the recorded file to the moderator.",
|
||||||
|
"finishedModerator": "Recording session __token__ finished. The recording of the local track has been saved. Please ask the other participants to submit their recordings.",
|
||||||
"notModerator": "You are not the moderator. You cannot start or stop local recording."
|
"notModerator": "You are not the moderator. You cannot start or stop local recording."
|
||||||
},
|
},
|
||||||
"yes": "Yes",
|
"yes": "Yes",
|
||||||
|
|
|
@ -90,7 +90,7 @@ class LocalRecordingInfoDialog extends Component<Props, State> {
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
this.state = {
|
this.state = {
|
||||||
durationString: 'N/A'
|
durationString: ''
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -211,7 +211,9 @@ class LocalRecordingInfoDialog extends Component<Props, State> {
|
||||||
</span>
|
</span>
|
||||||
<span className = 'spacer'> </span>
|
<span className = 'spacer'> </span>
|
||||||
<span className = 'info-value'>
|
<span className = 'info-value'>
|
||||||
{ durationString }
|
{ durationString === ''
|
||||||
|
? t('localRecording.durationNA')
|
||||||
|
: durationString }
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
@ -267,6 +269,10 @@ class LocalRecordingInfoDialog extends Component<Props, State> {
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
_getDuration(now, prev) {
|
_getDuration(now, prev) {
|
||||||
|
if (prev === null || prev === undefined) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
// Still a hack, as moment.js does not support formatting of duration
|
// Still a hack, as moment.js does not support formatting of duration
|
||||||
// (i.e. TimeDelta). Only works if total duration < 24 hours.
|
// (i.e. TimeDelta). Only works if total duration < 24 hours.
|
||||||
// But who is going to have a 24-hour long conference?
|
// But who is going to have a 24-hour long conference?
|
||||||
|
|
|
@ -336,7 +336,7 @@ class RecordingController {
|
||||||
|
|
||||||
result[localId] = {
|
result[localId] = {
|
||||||
id: localId,
|
id: localId,
|
||||||
displayName: i18next.t('localRecording.localUser'),
|
displayName: i18next.t('localRecording.me'),
|
||||||
recordingStats: this.getLocalStats(),
|
recordingStats: this.getLocalStats(),
|
||||||
isSelf: true
|
isSelf: true
|
||||||
};
|
};
|
||||||
|
@ -507,7 +507,9 @@ class RecordingController {
|
||||||
this.downloadRecordedData(token);
|
this.downloadRecordedData(token);
|
||||||
|
|
||||||
const message
|
const message
|
||||||
= i18next.t('localRecording.messages.finished',
|
= i18next.t(this._conference.isModerator()
|
||||||
|
? 'localRecording.messages.finishedModerator'
|
||||||
|
: 'localRecording.messages.finished',
|
||||||
{
|
{
|
||||||
token
|
token
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue