mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
MDL-22984 using standard plugin name string for repositories
AMOS BEGIN MOV [repositoryname,repository_alfresco],[pluginname,repository_alfresco] MOV [repositoryname,repository_boxnet],[pluginname,repository_boxnet] MOV [repositoryname,repository_dropbox],[pluginname,repository_dropbox] MOV [repositoryname,repository_filesystem],[pluginname,repository_filesystem] MOV [repositoryname,repository_flickr],[pluginname,repository_flickr] MOV [repositoryname,repository_flickr_public],[pluginname,repository_flickr_public] MOV [repositoryname,repository_googledocs],[pluginname,repository_googledocs] MOV [repositoryname,repository_local],[pluginname,repository_local] MOV [repositoryname,repository_merlot],[pluginname,repository_merlot] MOV [repositoryname,repository_picasa],[pluginname,repository_picasa] MOV [repositoryname,repository_recent],[pluginname,repository_recent] MOV [repositoryname,repository_s3],[pluginname,repository_s3] MOV [repositoryname,repository_upload],[pluginname,repository_upload] MOV [repositoryname,repository_url],[pluginname,repository_url] MOV [repositoryname,repository_user],[pluginname,repository_user] MOV [repositoryname,repository_webdav],[pluginname,repository_webdav] MOV [repositoryname,repository_wikimedia],[pluginname,repository_wikimedia] MOV [repositoryname,repository_youtube],[pluginname,repository_youtube] AMOS END
This commit is contained in:
parent
1c5f926de9
commit
614d18d26c
@ -4053,7 +4053,7 @@ function get_component_string($component, $contextlevel) {
|
||||
$langname = str_replace('/', '_', $component);
|
||||
$string = get_string('local');
|
||||
} else if (preg_match('|^repository|', $component)) {
|
||||
$string = get_string('repository', 'repository').': '.get_string('repositoryname', $component);
|
||||
$string = get_string('repository', 'repository').': '.get_string('pluginname', $component);
|
||||
} else if (preg_match('|^report|', $component)) {
|
||||
$string = get_string('reports');
|
||||
} else {
|
||||
|
@ -6541,7 +6541,7 @@ class admin_setting_managerepository extends admin_setting {
|
||||
// Check that it has not already been listed
|
||||
if (!in_array($plugin, $alreadyplugins)) {
|
||||
$select = new single_select($this->repository_action_url($plugin, 'repos'), 'action', $actionchoicesfornew, 'delete', null, 'applyto' . basename($plugin));
|
||||
$table->data[] = array(get_string('repositoryname', 'repository_'.$plugin), $OUTPUT->render($select), '', '');
|
||||
$table->data[] = array(get_string('pluginname', 'repository_'.$plugin), $OUTPUT->render($select), '', '');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -30,6 +30,6 @@ $string['configplugin'] = 'Alfresco configuration';
|
||||
$string['notitle'] = 'notitle';
|
||||
$string['password'] = 'Password';
|
||||
$string['repositorydesc'] = 'A plug-in for Alfresco CMS';
|
||||
$string['repositoryname'] = 'Alfresco repository';
|
||||
$string['pluginname'] = 'Alfresco repository';
|
||||
$string['soapmustbeenabled'] = 'SOAP extension must be enabled for alfresco plugin';
|
||||
$string['username'] = 'User name';
|
||||
|
@ -144,7 +144,7 @@ class repository_alfresco extends repository {
|
||||
$ret['manage'] = $matches[1].'faces/jsp/dashboards/container.jsp';
|
||||
}
|
||||
|
||||
$ret['path'] = array(array('name'=>get_string('repositoryname', 'repository_alfresco'), 'path'=>''));
|
||||
$ret['path'] = array(array('name'=>get_string('pluginname', 'repository_alfresco'), 'path'=>''));
|
||||
|
||||
try {
|
||||
if (empty($uuid)) {
|
||||
|
@ -31,7 +31,7 @@ $string['invalidpassword'] = 'Invalid password';
|
||||
$string['nullfilelist'] = 'There are no files in this repository';
|
||||
$string['password'] = 'Password';
|
||||
$string['repositorydesc'] = 'Repository on Box.net';
|
||||
$string['repositoryname'] = 'Box.net';
|
||||
$string['pluginname'] = 'Box.net';
|
||||
$string['saved'] = 'Box.net data saved';
|
||||
$string['shareurl'] = 'Share URL';
|
||||
$string['username'] = 'Username for Box.net';
|
||||
|
@ -27,7 +27,7 @@ $string['configplugin'] = 'Dropbox configuration';
|
||||
$string['notitle'] = 'notitle';
|
||||
$string['remember'] = 'Remember me';
|
||||
$string['repositorydesc'] = '';
|
||||
$string['repositoryname'] = 'Dropbox';
|
||||
$string['pluginname'] = 'Dropbox';
|
||||
$string['apikey'] = 'Dropbox API Key';
|
||||
$string['secret'] = 'Dropbox Secret';
|
||||
$string['instruction'] = 'You can get your API Key and secret from <a href="http://www.dropbox.com/developers/apps">Dropbox developers</a>';
|
||||
|
@ -32,4 +32,4 @@ $string['invalidpath'] = 'Invalid root path';
|
||||
$string['path'] = 'Select a subdirectory';
|
||||
$string['nosubdir'] = 'You need to create at least one folder inside the <b>{$a}</b> directory so you can select it here.';
|
||||
$string['repositorydesc'] = 'Create repository from local directory';
|
||||
$string['repositoryname'] = 'File system';
|
||||
$string['pluginname'] = 'File system';
|
||||
|
@ -40,6 +40,6 @@ $string['notitle'] = 'notitle';
|
||||
$string['nullphotolist'] = 'There are no photos in this account';
|
||||
$string['remember'] = 'Remember me';
|
||||
$string['repositorydesc'] = 'Repository on flickr.com';
|
||||
$string['repositoryname'] = 'Flickr';
|
||||
$string['pluginname'] = 'Flickr';
|
||||
$string['secret'] = 'Secret';
|
||||
$string['username'] = 'Flickr account email';
|
||||
|
@ -46,7 +46,7 @@ $string['notitle'] = 'notitle';
|
||||
$string['nullphotolist'] = 'There are no photos in this account';
|
||||
$string['remember'] = 'Remember me';
|
||||
$string['repositorydesc'] = 'Repository on flickr.com';
|
||||
$string['repositoryname'] = 'Flickr public';
|
||||
$string['pluginname'] = 'Flickr public';
|
||||
$string['secret'] = 'Secret';
|
||||
$string['sharealike'] = 'Yes, as long as others share alike';
|
||||
$string['tag'] = 'Tag';
|
||||
|
@ -481,7 +481,7 @@ class repository_flickr_public extends repository {
|
||||
public static function plugin_init() {
|
||||
//here we create a default instance for this type
|
||||
|
||||
$id = repository::static_function('flickr_public','create', 'flickr_public', 0, get_system_context(), array('name' => get_string('repositoryname', 'repository_flickr_public'),'email_address' => null), 1);
|
||||
$id = repository::static_function('flickr_public','create', 'flickr_public', 0, get_system_context(), array('name' => get_string('pluginname', 'repository_flickr_public'),'email_address' => null), 1);
|
||||
if (empty($id)) {
|
||||
return false;
|
||||
} else {
|
||||
|
@ -24,4 +24,4 @@
|
||||
*/
|
||||
|
||||
$string['googledocs:view'] = 'View google docs repository';
|
||||
$string['repositoryname'] = 'Google Docs';
|
||||
$string['pluginname'] = 'Google Docs';
|
||||
|
@ -109,7 +109,7 @@ class repository_googledocs extends repository {
|
||||
}
|
||||
|
||||
public function get_name(){
|
||||
return get_string('repositoryname', 'repository_googledocs');
|
||||
return get_string('pluginname', 'repository_googledocs');
|
||||
}
|
||||
|
||||
public function get_file($url, $file) {
|
||||
|
@ -173,7 +173,7 @@ class repository_type {
|
||||
* @return string user-friendly type name
|
||||
*/
|
||||
public function get_readablename() {
|
||||
return get_string('repositoryname','repository_'.$this->_typename);
|
||||
return get_string('pluginname','repository_'.$this->_typename);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1044,7 +1044,7 @@ abstract class repository {
|
||||
if (!empty($type) && $type->get_visible()) {
|
||||
$instanceoptionnames = repository::static_function($type->get_typename(), 'get_instance_option_names');
|
||||
if (!empty($instanceoptionnames)) {
|
||||
$instancehtml .= '<li><a href="'.$baseurl.'&new='.$type->get_typename().'">'.get_string('createxxinstance', 'repository', get_string('repositoryname', 'repository_'.$type->get_typename()))
|
||||
$instancehtml .= '<li><a href="'.$baseurl.'&new='.$type->get_typename().'">'.get_string('createxxinstance', 'repository', get_string('pluginname', 'repository_'.$type->get_typename()))
|
||||
.'</a></li>';
|
||||
$addable++;
|
||||
}
|
||||
|
@ -30,4 +30,4 @@ $string['local:view'] = 'View server repository';
|
||||
$string['notitle'] = 'notitle';
|
||||
$string['remember'] = 'Remember me';
|
||||
$string['repositorydesc'] = 'Files previously uploaded to the Moodle server';
|
||||
$string['repositoryname'] = 'Server files';
|
||||
$string['pluginname'] = 'Server files';
|
||||
|
@ -161,7 +161,7 @@ class repository_local extends repository {
|
||||
* @return string repository name
|
||||
*/
|
||||
public function get_name(){
|
||||
return get_string('repositoryname', 'repository_local');;
|
||||
return get_string('pluginname', 'repository_local');;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -26,5 +26,5 @@
|
||||
$string['configplugin'] = 'Merlot.org configuration';
|
||||
$string['licensekey'] = 'License Key';
|
||||
$string['repositorydesc'] = 'Merlot.org';
|
||||
$string['repositoryname'] = 'Merlot.org';
|
||||
$string['pluginname'] = 'Merlot.org';
|
||||
$string['merlot:view'] = 'View the Merlot repository';
|
||||
|
@ -24,4 +24,4 @@
|
||||
*/
|
||||
|
||||
$string['picasa:view'] = 'View picasa repository';
|
||||
$string['repositoryname'] = 'Picasa web album';
|
||||
$string['pluginname'] = 'Picasa web album';
|
||||
|
@ -112,7 +112,7 @@ class repository_picasa extends repository {
|
||||
}
|
||||
|
||||
public function get_name(){
|
||||
return get_string('repositoryname', 'repository_picasa');
|
||||
return get_string('pluginname', 'repository_picasa');
|
||||
}
|
||||
public function supported_filetypes() {
|
||||
return array('web_image');
|
||||
|
@ -29,4 +29,4 @@ $string['emptyfilelist'] = 'There are no files to show';
|
||||
$string['notitle'] = 'notitle';
|
||||
$string['recent:view'] = 'View recent files repsitory plugin';
|
||||
$string['repositorydesc'] = 'Files recently used by current user';
|
||||
$string['repositoryname'] = 'Recent files';
|
||||
$string['pluginname'] = 'Recent files';
|
||||
|
@ -136,7 +136,7 @@ class repository_recent extends repository {
|
||||
* @return string repository name
|
||||
*/
|
||||
public function get_name(){
|
||||
return get_string('repositoryname', 'repository_recent');;
|
||||
return get_string('pluginname', 'repository_recent');;
|
||||
}
|
||||
|
||||
public static function get_type_option_names() {
|
||||
|
@ -26,6 +26,6 @@
|
||||
$string['access_key'] = 'Access key';
|
||||
$string['configplugin'] = 'Amazon S3 settings';
|
||||
$string['needaccesskey'] = 'Access key must be provided';
|
||||
$string['repositoryname'] = 'Amazon S3';
|
||||
$string['pluginname'] = 'Amazon S3';
|
||||
$string['secret_key'] = 'Secret key';
|
||||
$string['s3:view'] = 'View amazon s3 repository';
|
||||
|
@ -25,5 +25,5 @@
|
||||
|
||||
$string['configplugin'] = 'Configuration for upload plugin';
|
||||
$string['repositorydesc'] = 'Upload a file to Moodle';
|
||||
$string['repositoryname'] = 'Upload a file';
|
||||
$string['pluginname'] = 'Upload a file';
|
||||
$string['upload:view'] = 'Use uploading in file picker';
|
||||
|
@ -96,7 +96,7 @@ class repository_upload extends repository {
|
||||
* @return string
|
||||
*/
|
||||
public function get_name(){
|
||||
return get_string('repositoryname', 'repository_upload');
|
||||
return get_string('pluginname', 'repository_upload');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
$string['download'] = 'Download';
|
||||
$string['rename'] = 'Name';
|
||||
$string['repositoryname'] = 'URL Downloader';
|
||||
$string['pluginname'] = 'URL Downloader';
|
||||
$string['url'] = 'URL';
|
||||
$string['url:view'] = 'Use url downloader in file picker';
|
||||
$string['validname'] = 'You must provide a valid file name';
|
||||
|
@ -156,7 +156,7 @@ EOD;
|
||||
}
|
||||
|
||||
public function get_name(){
|
||||
return get_string('repositoryname', 'repository_url');;
|
||||
return get_string('pluginname', 'repository_url');;
|
||||
}
|
||||
public function supported_returntypes() {
|
||||
return (FILE_INTERNAL | FILE_EXTERNAL);
|
||||
|
@ -26,6 +26,6 @@
|
||||
|
||||
$string['configplugin'] = 'Configuration for user private files repository';
|
||||
$string['repositorydesc'] = 'Files in user private area';
|
||||
$string['repositoryname'] = 'Private files';
|
||||
$string['pluginname'] = 'Private files';
|
||||
$string['emptyfilelist'] = 'There are no files to show';
|
||||
$string['user:view'] = 'View user private files';
|
||||
|
@ -26,7 +26,7 @@
|
||||
$string['configplugin'] = 'WebDav configuration';
|
||||
$string['http'] = 'HTTP';
|
||||
$string['https'] = 'HTTPS';
|
||||
$string['repositoryname'] = 'WebDAV repository';
|
||||
$string['pluginname'] = 'WebDAV repository';
|
||||
$string['webdav_password'] = 'WebDAV server password';
|
||||
$string['webdav_port'] = 'WebDAV server port';
|
||||
$string['webdav_server'] = 'WebDAV server';
|
||||
|
@ -24,5 +24,5 @@
|
||||
*/
|
||||
|
||||
$string['keyword'] = 'Full text';
|
||||
$string['repositoryname'] = 'Wikimedia';
|
||||
$string['pluginname'] = 'Wikimedia';
|
||||
$string['wikimedia:view'] = 'View wikimedia repository';
|
||||
|
@ -23,6 +23,6 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
$string['repositoryname'] = 'Youtube videos';
|
||||
$string['pluginname'] = 'Youtube videos';
|
||||
$string['search'] = 'Search videos';
|
||||
$string['youtube:view'] = 'Use youtube in file picker';
|
||||
|
Loading…
x
Reference in New Issue
Block a user