From b5a3388bb1918827857fa58e8c69032c9db818f5 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Mon, 9 Apr 2018 17:27:56 +0800 Subject: [PATCH] MDL-60848 atto_recordrtc: language string changes 1. Ordered alphabetically by index. 2. Uncapitalised words after the first per Moodle standards. 3. Added string used by getUserMedia() on Chrome (possibly others). --- .../recordrtc/lang/en/atto_recordrtc.php | 96 +++++++++---------- lib/editor/atto/plugins/recordrtc/lib.php | 2 + .../atto/plugins/recordrtc/settings.php | 2 +- 3 files changed, 51 insertions(+), 49 deletions(-) diff --git a/lib/editor/atto/plugins/recordrtc/lang/en/atto_recordrtc.php b/lib/editor/atto/plugins/recordrtc/lang/en/atto_recordrtc.php index e00258166e6..c3be94690be 100755 --- a/lib/editor/atto/plugins/recordrtc/lang/en/atto_recordrtc.php +++ b/lib/editor/atto/plugins/recordrtc/lang/en/atto_recordrtc.php @@ -24,56 +24,56 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -$string['pluginname'] = 'RecordRTC'; -$string['settings'] = 'RecordRTC settings'; -$string['audiortc'] = 'Insert audio recording'; -$string['videortc'] = 'Insert video recording'; - -$string['onlyaudio'] = 'Audio only'; -$string['onlyvideo'] = 'Video only'; -$string['both'] = 'Audio and Video'; $string['allowedtypes'] = 'Allowed types'; $string['allowedtypes_desc'] = 'Which recording buttons should appear in Atto'; -$string['audiobitrate'] = 'Audio bitrate'; -$string['audiobitrate_desc'] = 'Quality of audio recording (larger number means higher quality)'; -$string['videobitrate'] = 'Video bitrate'; -$string['videobitrate_desc'] = 'Quality of video recording (larger number means higher quality)'; -$string['timelimit'] = 'Time limit in seconds'; -$string['timelimit_desc'] = 'Maximum recording length allowed for the audio/video clips'; - -$string['nowebrtc_title'] = 'WebRTC not supported'; -$string['nowebrtc'] = 'Your browser offers limited or no support for WebRTC technologies yet, and cannot be used with this plugin. Please switch or upgrade your browser'; -$string['gumabort_title'] = 'Something happened'; -$string['gumabort'] = 'Something strange happened which prevented the webcam/microphone from being used'; -$string['gumnotallowed_title'] = 'Wrong permissions'; -$string['gumnotallowed'] = 'The user must allow the browser access to the webcam/microphone'; -$string['gumnotfound_title'] = 'Device missing'; -$string['gumnotfound'] = 'There is no input device connected or enabled'; -$string['gumnotreadable_title'] = 'Hardware error'; -$string['gumnotreadable'] = 'Something is preventing the browser from accessing the webcam/microphone'; -$string['gumoverconstrained_title'] = 'Problem with constraints'; -$string['gumoverconstrained'] = 'The current webcam/microphone can not produce a stream with the required constraints'; -$string['gumsecurity_title'] = 'No support for insecure connection'; -$string['gumsecurity'] = 'Your browser does not support recording over an insecure connection and must close the plugin'; -$string['gumtype_title'] = 'No constraints specified'; -$string['gumtype'] = 'Tried to get stream from the webcam/microphone, but no constraints were specified'; -$string['insecurealert_title'] = 'Insecure connection!'; -$string['insecurealert'] = 'Your browser might not allow this plugin to work unless it is used either over HTTPS or from localhost'; -$string['browseralert_title'] = 'Warning!'; -$string['browseralert'] = 'Use Firefox >= 29, Chrome >= 49 or Opera >= 36 for best experience'; -$string['startrecording'] = 'Start Recording'; -$string['recordagain'] = 'Record Again'; -$string['stoprecording'] = 'Stop Recording'; -$string['recordingfailed'] = 'Recording failed, try again'; -$string['attachrecording'] = 'Attach Recording as Annotation'; -$string['norecordingfound_title'] = 'No recording found'; -$string['norecordingfound'] = 'Something appears to have gone wrong, it seems nothing has been recorded'; -$string['nearingmaxsize_title'] = 'Recording stopped'; -$string['nearingmaxsize'] = 'You have attained the maximum size limit for file uploads'; -$string['uploadprogress'] = 'completed'; -$string['uploadfailed'] = 'Upload failed:'; -$string['uploadfailed404'] = 'Upload failed: file too large'; -$string['uploadaborted'] = 'Upload aborted:'; $string['annotationprompt'] = 'What should the annotation appear as?'; $string['annotation:audio'] = 'Audio annotation'; $string['annotation:video'] = 'Video annotation'; +$string['attachrecording'] = 'Attach recording'; +$string['audioandvideo'] = 'Audio and video'; +$string['audiobitrate'] = 'Audio bitrate'; +$string['audiobitrate_desc'] = 'Quality of audio recording (larger number means higher quality)'; +$string['audiortc'] = 'Insert audio recording'; +$string['browseralert'] = 'Use Firefox >= 29, Chrome >= 49 or Opera >= 36 for best experience'; +$string['browseralert_title'] = 'Warning!'; +$string['gumabort'] = 'Something strange happened which prevented the webcam/microphone from being used'; +$string['gumabort_title'] = 'Something happened'; +$string['gumnotallowed'] = 'The user must allow the browser access to the webcam/microphone'; +$string['gumnotallowed_title'] = 'Wrong permissions'; +$string['gumnotfound'] = 'There is no input device connected or enabled'; +$string['gumnotfound_title'] = 'Device missing'; +$string['gumnotreadable'] = 'Something is preventing the browser from accessing the webcam/microphone'; +$string['gumnotreadable_title'] = 'Hardware error'; +$string['gumnotsupported'] = 'Your browser does not support recording over an insecure connection and must close the plugin'; +$string['gumnotsupported_title'] = 'No support for insecure connection'; +$string['gumoverconstrained'] = 'The current webcam/microphone can not produce a stream with the required constraints'; +$string['gumoverconstrained_title'] = 'Problem with constraints'; +$string['gumsecurity'] = 'Your browser does not support recording over an insecure connection and must close the plugin'; +$string['gumsecurity_title'] = 'No support for insecure connection'; +$string['gumtype'] = 'Tried to get stream from the webcam/microphone, but no constraints were specified'; +$string['gumtype_title'] = 'No constraints specified'; +$string['insecurealert'] = 'Your browser might not allow this plugin to work unless it is used either over HTTPS or from localhost'; +$string['insecurealert_title'] = 'Insecure connection!'; +$string['nearingmaxsize'] = 'You have attained the maximum size limit for file uploads'; +$string['nearingmaxsize_title'] = 'Recording stopped'; +$string['norecordingfound'] = 'Something appears to have gone wrong, it seems nothing has been recorded'; +$string['norecordingfound_title'] = 'No recording found'; +$string['nowebrtc'] = 'Your browser offers limited or no support for WebRTC technologies yet, and cannot be used with this plugin. Please switch or upgrade your browser'; +$string['nowebrtc_title'] = 'WebRTC not supported'; +$string['onlyaudio'] = 'Audio only'; +$string['onlyvideo'] = 'Video only'; +$string['pluginname'] = 'RecordRTC'; +$string['recordagain'] = 'Record again'; +$string['recordingfailed'] = 'Recording failed, try again'; +$string['settings'] = 'RecordRTC settings'; +$string['startrecording'] = 'Start recording'; +$string['stoprecording'] = 'Stop recording'; +$string['timelimit'] = 'Time limit in seconds'; +$string['timelimit_desc'] = 'Maximum recording length allowed for the audio/video clips'; +$string['uploadaborted'] = 'Upload aborted:'; +$string['uploadfailed'] = 'Upload failed:'; +$string['uploadfailed404'] = 'Upload failed: file too large'; +$string['uploadprogress'] = 'completed'; +$string['videobitrate'] = 'Video bitrate'; +$string['videobitrate_desc'] = 'Quality of video recording (larger number means higher quality)'; +$string['videortc'] = 'Insert video recording'; diff --git a/lib/editor/atto/plugins/recordrtc/lib.php b/lib/editor/atto/plugins/recordrtc/lib.php index e5b326be011..8f238046cb8 100644 --- a/lib/editor/atto/plugins/recordrtc/lib.php +++ b/lib/editor/atto/plugins/recordrtc/lib.php @@ -80,6 +80,8 @@ function atto_recordrtc_strings_for_js() { 'gumnotfound', 'gumnotreadable_title', 'gumnotreadable', + 'gumnotsupported', + 'gumnotsupported_title', 'gumoverconstrained_title', 'gumoverconstrained', 'gumsecurity_title', diff --git a/lib/editor/atto/plugins/recordrtc/settings.php b/lib/editor/atto/plugins/recordrtc/settings.php index f4040e27140..92a84d3bd4c 100644 --- a/lib/editor/atto/plugins/recordrtc/settings.php +++ b/lib/editor/atto/plugins/recordrtc/settings.php @@ -31,7 +31,7 @@ $ADMIN->add('editoratto', new admin_category('atto_recordrtc', new lang_string(' if ($ADMIN->fulltree) { // Types allowed. $options = array( - 'both' => new lang_string('both', 'atto_recordrtc'), + 'both' => new lang_string('audioandvideo', 'atto_recordrtc'), 'audio' => new lang_string('onlyaudio', 'atto_recordrtc'), 'video' => new lang_string('onlyvideo', 'atto_recordrtc') );