$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 {
// 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), '', '');
}
}
}
$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';
$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)) {
$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';
$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>';
$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';
$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';
$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';
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 {
*/
$string['googledocs:view'] = 'View google docs repository';
-$string['repositoryname'] = 'Google Docs';
+$string['pluginname'] = 'Google Docs';
}
public function get_name(){
- return get_string('repositoryname', 'repository_googledocs');
+ return get_string('pluginname', 'repository_googledocs');
}
public function get_file($url, $file) {
* @return string user-friendly type name
*/
public function get_readablename() {
- return get_string('repositoryname','repository_'.$this->_typename);
+ return get_string('pluginname','repository_'.$this->_typename);
}
/**
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++;
}
$string['notitle'] = 'notitle';
$string['remember'] = 'Remember me';
$string['repositorydesc'] = 'Files previously uploaded to the Moodle server';
-$string['repositoryname'] = 'Server files';
+$string['pluginname'] = 'Server files';
* @return string repository name
*/
public function get_name(){
- return get_string('repositoryname', 'repository_local');;
+ return get_string('pluginname', 'repository_local');;
}
/**
$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';
*/
$string['picasa:view'] = 'View picasa repository';
-$string['repositoryname'] = 'Picasa web album';
+$string['pluginname'] = 'Picasa web album';
}
public function get_name(){
- return get_string('repositoryname', 'repository_picasa');
+ return get_string('pluginname', 'repository_picasa');
}
public function supported_filetypes() {
return array('web_image');
$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';
* @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() {
$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';
$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';
* @return string
*/
public function get_name(){
- return get_string('repositoryname', 'repository_upload');
+ return get_string('pluginname', 'repository_upload');
}
/**
$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';
}
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);
$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';
$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';
*/
$string['keyword'] = 'Full text';
-$string['repositoryname'] = 'Wikimedia';
+$string['pluginname'] = 'Wikimedia';
$string['wikimedia:view'] = 'View wikimedia repository';
* @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';