diff --git a/lang/en_utf8/repository.php b/lang/en_utf8/repository.php
index eae8f43e63b..28c7d8010c0 100644
--- a/lang/en_utf8/repository.php
+++ b/lang/en_utf8/repository.php
@@ -12,11 +12,13 @@ $string['areauserdraft'] = 'Drafts';
$string['areauserpersonal'] = 'Personal';
$string['areauserprofile'] = 'Profile';
$string['attachment'] = 'Attachment';
+$string['attachedfiles'] = 'Attached files';
$string['back'] = '< Back';
$string['cacheexpire'] = 'Cache expire';
$string['cachecleared'] = 'Cached files are removed';
-$string['cannotinitplugin'] = 'Call plugin_init failed';
+$string['cannotdelete'] = 'Cannot delete this file.';
$string['cannotdownload'] = 'Cannot download this file';
+$string['cannotinitplugin'] = 'Call plugin_init failed';
$string['clicktohide'] = 'Click here to hide';
$string['clicktoshow'] = 'Click here to show';
$string['close'] = 'Close';
@@ -40,6 +42,7 @@ $string['editrepositoryinstance'] = 'Edit repository instance';
$string['emptytype'] = 'Cannot create repository type: type name is empty';
$string['enablecourseinstances'] = 'Allow teachers to add a repository instance into the file picker';
$string['enableuserinstances'] = 'Allow users to add a repository instance into the file picker';
+$string['enter'] = 'Enter';
$string['error'] = 'An unknown error occurred!';
$string['existingrepository'] = 'This repository already exists';
$string['filename'] = 'Filename';
@@ -64,14 +67,16 @@ $string['loading'] = 'Loading...';
$string['manage'] = 'Manage repositories';
$string['manageurl'] = 'Manage';
$string['manageuserrepository'] = 'Manage individual repository';
-$string['nopermissiontoaccess'] = 'No permission to access this repository';
$string['noenter'] = 'Nothing entered';
+$string['nofilesattached'] = 'No files attached';
+$string['nopermissiontoaccess'] = 'No permission to access this repository';
$string['notyourinstances'] = 'You can not view/edit repository instances of another user';
$string['noresult'] = 'No search result';
$string['operation'] = 'Operation';
$string['openpicker'] = 'Choose a file...';
$string['personalrepositories'] = 'Personal repositories';
$string['plugin'] = 'Repository plug-ins';
+$string['pluginerror'] = 'Errors in repository plugin.';
$string['preview'] = 'Preview';
$string['popup'] = 'Click "Login" button to login';
$string['readonlyinstance'] = 'You cannot edit/delete a read-only instance';
@@ -88,6 +93,7 @@ $string['settings'] = 'Settings';
$string['setupdefaultplugins'] = 'Setting up default repository plugins';
$string['search'] = 'Search ';
$string['searching'] = 'Search in ';
+$string['select'] = 'Select';
$string['siteinstances'] = 'Repositories instances of the site';
$string['size'] = 'Size';
$string['submit'] = 'Submit';
diff --git a/lib/form/filemanager.php b/lib/form/filemanager.php
index a85a93358a3..93283a34e20 100644
--- a/lib/form/filemanager.php
+++ b/lib/form/filemanager.php
@@ -173,9 +173,7 @@ class MoodleQuickForm_filemanager extends HTML_QuickForm_element {
$str .= $repo_info['js'];
$str .= <<
