Skip to content

Commit

Permalink
Sort lang strings some basic codestyle fixes and remove duplicated he…
Browse files Browse the repository at this point in the history
…ading (#50)

Co-authored-by: Thomas Niedermaier <[email protected]>
  • Loading branch information
NinaHerrmann and bluetom authored Nov 27, 2024
1 parent 0b3b975 commit cf7e231
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 37 deletions.
3 changes: 0 additions & 3 deletions classes/local/output_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,6 @@ public static function output_episode($ocinstanceid, $episodeid, $modinstanceid,
$configurl = new \moodle_url(get_config('mod_opencast', 'configurl_' . $ocinstanceid));
$themeurl = new \moodle_url(get_config('mod_opencast', 'themeurl_' . $ocinstanceid));
echo \html_writer::script('window.episode = ' . json_encode($data));

echo $OUTPUT->heading($title);

echo '<br>';

// Show error if there are no streams.
Expand Down
2 changes: 1 addition & 1 deletion db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* @package mod_opencast
* @copyright 2020 Tobias Reischmann WWU
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or late
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();
Expand Down
3 changes: 1 addition & 2 deletions downloadvideo.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

require_once('../../config.php');

use block_opencast\local\apibridge;
require_once('../../config.php');

global $PAGE, $OUTPUT, $CFG, $DB;

Expand Down
59 changes: 28 additions & 31 deletions lang/en/opencast.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,79 +29,76 @@

defined('MOODLE_INTERNAL') || die();

$string['allvideos'] = 'All videos';
$string['advancedsettings'] = 'Advanced settings';
$string['allowdownload'] = 'Allow students to download the video(s)';
$string['allvideos'] = 'All videos';

$string['date'] = 'Date';
$string['defaultuploadedvideotitle'] = 'Uploaded video';
$string['dnduploadvideofile'] = 'Upload video file to Opencast';
$string['downloadvideo'] = 'Download video';
$string['duration'] = 'Duration';

$string['episode'] = 'Opencast episode';
$string['errorfetchingvideo'] = 'There was a problem fetching the video.';
$string['erroremptystreamsources'] = 'There is no video source available. Please contact your system administrator.';
$string['errorfetchingvideo'] = 'There was a problem fetching the video.';

$string['gridview'] = 'View as grid';

$string['listview'] = 'View as list';

$string['manualocid'] = 'Directly enter the Opencast ID of the series/episode';
$string['modulename'] = 'Video (Opencast)';
$string['modulenameplural'] = 'Videos (Opencast)';
$string['modulename_help'] = '<p>The Video (Opencast) module is used to display videos or series from a connected Opencast platform.</p><p>In most cases, it is easier not to create the activity directly but to do it via the block "Opencast Videos" instead.</p>';
$string['modulenameplural'] = 'Videos (Opencast)';

$string['ocinstance'] = 'Opencast instance';
$string['opencastname'] = 'Opencast Video Provider: {$a}';
$string['opencast:addinstance'] = 'Add a new Video (Opencast) instance';
$string['opencastid'] = 'Opencast ID';
$string['opencastidnotrecognized'] = 'This ID is neither recognized as a series nor a video.';
$string['opencastname'] = 'Opencast Video Provider: {$a}';

$string['pluginname'] = 'Opencast Video Provider';
$string['pluginadministration'] = 'Opencast Video Provider administration';
$string['pluginname'] = 'Opencast Video Provider';
$string['privacy:metadata'] = 'Opencast Activities are just a way to show Opencast videos inside moodle. They do not store any user related data.';

$string['series'] = 'Opencast series';
$string['seriesisempty'] = 'This series is currently empty.';
$string['settings:api-channel'] = 'Opencast Channel';
$string['settings:download_header'] = 'Student Download Configuration';
$string['settings:configurl'] = 'URL to Paella config.json';
$string['settings:configurl_desc'] = 'URL of the config.json used by Paella Player. Can either be a absolute URL or a URL relative to the wwwroot.';
$string['settings:download-channel'] = 'Opencast Download Channel';
$string['settings:download-channel_desc'] = 'Opencast publication channel from which the videos are served when downloading them.';
$string['settings:download-default'] = 'Allow download by default';
$string['settings:download-default_desc'] = 'If activated, the checkbox for allowing downloads in activity forms is checked by default.';
$string['settings:configurl'] = 'URL to Paella config.json';
$string['settings:configurl_desc'] = 'URL of the config.json used by Paella Player. Can either be a absolute URL or a URL relative to the wwwroot.';
$string['settings:download_header'] = 'Student Download Configuration';
$string['settings:global_download'] = 'Force student download';
$string['settings:global_download_desc'] = 'Allow globally that students can download videos. Teachers cannot overwrite this setting.';
$string['settings:themeurl'] = 'URL to Paella theme.json';
$string['settings:themeurl_desc'] = 'URL of the theme.json used by Paella Player. Can either be a absolute URL or a URL relative to the wwwroot.';

$string['series'] = 'Opencast series';
$string['seriesisempty'] = 'This series is currently empty.';

$string['sortseriesby'] = 'Order videos by';
$string['sortseriesby_help'] = 'Only affects series';
$string['title'] = 'Title';
// Strings for upload feature.
$string['dnduploadvideofile'] = 'Upload video file to Opencast';
$string['uploadtitledisplay'] = 'Upload video:';
$string['uploaddate'] = 'Upload date';
$string['uploaddefaultintrodisplay'] = 'This is an opencast activity module for uploading a video.';
$string['uploadlandinginfo'] = 'You are about to upload video to Opencast, please make sure the required information are entered.';
$string['uploadnotallowed'] = 'Performing this action is not allowed';
$string['uploadformtitle'] = 'Upload the video to Opencast';
$string['uploadedvideoisbeingprocesses'] = 'This video ({$a}) is already uploaded and is being processed by Opencast, please wait!';
$string['uploadform_flavor_label'] = 'Use the video for the flavor of:';
$string['uploadform_flavor_presentation'] = 'Presentation Video';
$string['uploadform_flavor_presenter'] = 'Presenter Video';
$string['uploadform_general_header'] = 'General Settings';
$string['uploadform_metadata_header'] = 'Required Event Metadata';
$string['uploadform_ocinstancesselect'] = 'Opencast Instanance';
$string['uploadform_requirednotice'] = '<b>{$a}Required</b>: all inputs in this form are mandetory to fill out.';
$string['uploadform_seriessselect'] = 'Series';
$string['uploadform_metadata_header'] = 'Required Event Metadata';
$string['uploadform_flavor_label'] = 'Use the video for the flavor of:';
$string['uploadform_flavor_presenter'] = 'Presenter Video';
$string['uploadform_flavor_presentation'] = 'Presentation Video';
$string['uploadform_uploadexplaination'] = 'This is a partial and short form to upload video, in order to add more metadata and other informations please use the Opencast Video plugin.';
$string['uploadform_requirednotice'] = '<b>{$a}Required</b>: all inputs in this form are mandetory to fill out.';
$string['uploadmissingfile'] = 'Because of missing file, this module is no longer valid and is now deleted, please try adding another one.';
$string['uploadsaved'] = 'Video upload successful. The video is scheduled to be transferred to Opencast now, for more info please go to <a target="_blank" href="{$a}">Opencast Videos</a>';
$string['defaultuploadedvideotitle'] = 'Uploaded video';
$string['uploadformtitle'] = 'Upload the video to Opencast';
$string['uploadinprogress'] = 'Uploading video ({$a}) is in progress, please try again later.';
$string['uploadedvideoisbeingprocesses'] = 'This video ({$a}) is already uploaded and is being processed by Opencast, please wait!';
$string['uploadjobmissing'] = 'There was an error fetching upload data for this video, please try uploading a new one. Due to insufficient data this module is deleted.';

// Strings for mod form.
$string['sortseriesby'] = 'Order videos by';
$string['sortseriesby_help'] = 'Only affects series';
$string['uploaddate'] = 'Upload date';
$string['uploadlandinginfo'] = 'You are about to upload video to Opencast, please make sure the required information are entered.';
$string['uploadmissingfile'] = 'Because of missing file, this module is no longer valid and is now deleted, please try adding another one.';
$string['uploadnotallowed'] = 'Performing this action is not allowed';
$string['uploadsaved'] = 'Video upload successful. The video is scheduled to be transferred to Opencast now, for more info please go to <a target="_blank" href="{$a}">Opencast Videos</a>';
$string['uploadtitledisplay'] = 'Upload video:';
$string['videotitle'] = 'Video title';
$string['advancedsettings'] = 'Advanced settings';

0 comments on commit cf7e231

Please sign in to comment.