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:
Petr Skoda 2010-07-04 12:52:10 +00:00
parent 1c5f926de9
commit 614d18d26c
29 changed files with 30 additions and 30 deletions

View File

@ -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 {

View File

@ -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), '', '');
}
}
}

View File

@ -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';

View File

@ -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)) {

View File

@ -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';

View File

@ -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>';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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 {

View File

@ -24,4 +24,4 @@
*/
$string['googledocs:view'] = 'View google docs repository';
$string['repositoryname'] = 'Google Docs';
$string['pluginname'] = 'Google Docs';

View File

@ -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) {

View 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.'&amp;new='.$type->get_typename().'">'.get_string('createxxinstance', 'repository', get_string('repositoryname', 'repository_'.$type->get_typename()))
$instancehtml .= '<li><a href="'.$baseurl.'&amp;new='.$type->get_typename().'">'.get_string('createxxinstance', 'repository', get_string('pluginname', 'repository_'.$type->get_typename()))
.'</a></li>';
$addable++;
}

View File

@ -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';

View File

@ -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');;
}
/**

View File

@ -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';

View File

@ -24,4 +24,4 @@
*/
$string['picasa:view'] = 'View picasa repository';
$string['repositoryname'] = 'Picasa web album';
$string['pluginname'] = 'Picasa web album';

View File

@ -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');

View File

@ -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';

View File

@ -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() {

View File

@ -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';

View File

@ -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';

View File

@ -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');
}
/**

View File

@ -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';

View File

@ -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);

View File

@ -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';

View File

@ -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';

View File

@ -24,5 +24,5 @@
*/
$string['keyword'] = 'Full text';
$string['repositoryname'] = 'Wikimedia';
$string['pluginname'] = 'Wikimedia';
$string['wikimedia:view'] = 'View wikimedia repository';

View File

@ -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';