"MDL-13766, added more language strings for repository api"

This commit is contained in:
dongsheng 2009-06-22 03:45:24 +00:00
parent 6876783acd
commit 362a728f81
7 changed files with 10 additions and 6 deletions

View File

@ -1,7 +1,8 @@
<?php //$Id$
$string['accessiblefilepicker']='Accessible file picker';
$string['activerepository'] = 'Active repository plugins';
$string['add'] = 'Add...';
$string['add'] = 'Add';
$string['addfile'] = 'Add...';
$string['addplugin'] = 'Add a repository plugin';
$string['activaterep'] = 'Active repositories';
$string['areabackup'] = 'Backups';
@ -16,6 +17,7 @@ $string['attachedfiles'] = 'Attached files';
$string['back'] = '&lt; Back';
$string['cacheexpire'] = 'Cache expire';
$string['cachecleared'] = 'Cached files are removed';
$string['cannotaccessparentwin'] = 'If parent window is on HTTPS, then we are not allowed to access window.opener object, so we cannot refresh the repository for you automatically, but we already got your session, just go back to file picker and select the repository again, it should work now.';
$string['cannotdelete'] = 'Cannot delete this file.';
$string['cannotdownload'] = 'Cannot download this file';
$string['cannotinitplugin'] = 'Call plugin_init failed';
@ -81,6 +83,7 @@ $string['preview'] = 'Preview';
$string['popup'] = 'Click "Login" button to login';
$string['readonlyinstance'] = 'You cannot edit/delete a read-only instance';
$string['refresh'] = 'Refresh';
$string['refreshnonjsfilepicker'] = 'Please clos this window and refresh non-javascript file picker';
$string['removed'] = 'Repository removed';
$string['repository'] = 'Repository';
$string['repositorycourse'] = 'Course repositories';

View File

@ -1,5 +1,6 @@
<?php // $Id$
$string['configplugin'] = 'Configuration for local file repository';
$string['currentusefiles'] = 'Current use files';
$string['repositoryname'] = 'Local files';
$string['repositorydesc'] = 'Repository on the local Moodle server';
$string['notitle'] = 'notitle';

View File

@ -216,7 +216,7 @@ class repository_boxnet extends repository {
echo '<td><input type="password" name="boxpassword" /></td></tr>';
echo '<input type="hidden" name="ticket" value="'.$t['ticket'].'" />';
echo '</table>';
echo '<input type="submit" value="Enter" />';
echo '<input type="submit" value="'.get_string('enter', 'repository').'" />';
}
}

View File

@ -250,7 +250,7 @@ default:
}
echo '</ul>';
}
echo '<div><a href="'.$url.'&amp;action=plugins">'.get_string('add', 'repository').'</a></div>';
echo '<div><a href="'.$url.'&amp;action=plugins">'.get_string('addfile', 'repository').'</a></div>';
print_footer('empty');
break;
}

View File

@ -133,7 +133,7 @@ class repository_flickr extends repository {
$ret['login'] = array($popup_btn);
return $ret;
} else {
echo '<a target="_blank" href="'.$this->flickr->auth().'">Login</a>';
echo '<a target="_blank" href="'.$this->flickr->auth().'">'.get_string('login', 'repository').'</a>';
}
}

View File

@ -182,7 +182,7 @@ class repository_flickr_public extends repository {
echo '</table>';
echo '<input type="hidden" name="action" value="search" />';
echo '<input type="submit" value="Search" />';
echo '<input type="submit" value="'.get_string('search', 'repository').'" />';
}
}

View File

@ -89,7 +89,7 @@ class repository_local extends repository {
$context = get_system_context();
// append draft files directory
$node = array(
'title' => 'Current use files',
'title' => get_string('currentusefiles', 'repository_local'),
'size' => 0,
'date' => '',
'path' => 'draft',