Browse Source

UI strings: durationNA and moderater's finish message

j8
Radium Zheng 7 years ago
parent
commit
2dfb107c57

+ 3
- 1
lang/main.json View File

@@ -674,8 +674,9 @@
674 674
         "start": "Start",
675 675
         "stop": "Stop",
676 676
         "moderator": "Moderator",
677
-        "localUser": "Local user",
677
+        "me": "Me",
678 678
         "duration": "Duration",
679
+        "durationNA": "N/A",
679 680
         "encoding": "Encoding",
680 681
         "participantStats": "Participant Stats",
681 682
         "clientState": {
@@ -686,6 +687,7 @@
686 687
         "messages": {
687 688
             "engaged": "Local recording engaged.",
688 689
             "finished": "Recording session __token__ finished. Please send the recorded file to the moderator.",
690
+            "finishedModerator": "Recording session __token__ finished. The recording of the local track has been saved. Please ask the other participants to submit their recordings.",
689 691
             "notModerator": "You are not the moderator. You cannot start or stop local recording."
690 692
         },
691 693
         "yes": "Yes",

+ 8
- 2
react/features/local-recording/components/LocalRecordingInfoDialog.js View File

@@ -90,7 +90,7 @@ class LocalRecordingInfoDialog extends Component<Props, State> {
90 90
     constructor() {
91 91
         super();
92 92
         this.state = {
93
-            durationString: 'N/A'
93
+            durationString: ''
94 94
         };
95 95
     }
96 96
 
@@ -211,7 +211,9 @@ class LocalRecordingInfoDialog extends Component<Props, State> {
211 211
                         </span>
212 212
                         <span className = 'spacer'>&nbsp;</span>
213 213
                         <span className = 'info-value'>
214
-                            { durationString }
214
+                            { durationString === ''
215
+                                ? t('localRecording.durationNA')
216
+                                : durationString }
215 217
                         </span>
216 218
                     </div>
217 219
                     }
@@ -267,6 +269,10 @@ class LocalRecordingInfoDialog extends Component<Props, State> {
267 269
      * @returns {string}
268 270
      */
269 271
     _getDuration(now, prev) {
272
+        if (prev === null || prev === undefined) {
273
+            return '';
274
+        }
275
+
270 276
         // Still a hack, as moment.js does not support formatting of duration
271 277
         // (i.e. TimeDelta). Only works if total duration < 24 hours.
272 278
         // But who is going to have a 24-hour long conference?

+ 4
- 2
react/features/local-recording/controller/RecordingController.js View File

@@ -336,7 +336,7 @@ class RecordingController {
336 336
 
337 337
         result[localId] = {
338 338
             id: localId,
339
-            displayName: i18next.t('localRecording.localUser'),
339
+            displayName: i18next.t('localRecording.me'),
340 340
             recordingStats: this.getLocalStats(),
341 341
             isSelf: true
342 342
         };
@@ -507,7 +507,9 @@ class RecordingController {
507 507
                     this.downloadRecordedData(token);
508 508
 
509 509
                     const message
510
-                        = i18next.t('localRecording.messages.finished',
510
+                        = i18next.t(this._conference.isModerator()
511
+                            ? 'localRecording.messages.finishedModerator'
512
+                            : 'localRecording.messages.finished',
511 513
                             {
512 514
                                 token
513 515
                             });

Loading…
Cancel
Save