mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-51935 wiki: Add missing strings in wiki
This commit is contained in:
parent
1533fca4b5
commit
487f6471a0
@ -46,20 +46,20 @@ if (!empty($swid)) {
|
||||
$subwiki = wiki_get_subwiki($swid);
|
||||
|
||||
if (!$wiki = wiki_get_wiki($subwiki->wikiid)) {
|
||||
print_error('invalidwikiid', 'wiki');
|
||||
print_error('incorrectwikiid', 'wiki');
|
||||
}
|
||||
|
||||
} else {
|
||||
$subwiki = wiki_get_subwiki_by_group($wid, $group, $uid);
|
||||
|
||||
if (!$wiki = wiki_get_wiki($wid)) {
|
||||
print_error('invalidwikiid', 'wiki');
|
||||
print_error('incorrectwikiid', 'wiki');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (!$cm = get_coursemodule_from_instance('wiki', $wiki->id)) {
|
||||
print_error('invalidcoursemoduleid', 'wiki');
|
||||
print_error('invalidcoursemodule');
|
||||
}
|
||||
|
||||
$groups = new stdClass();
|
||||
|
@ -63,7 +63,7 @@ if (!$cm = get_coursemodule_from_instance('wiki', $wiki->id)) {
|
||||
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
|
||||
|
||||
if ($compare >= $comparewith) {
|
||||
print_error("A page version can only be compared with an older version.");
|
||||
print_error('cannotcomparenewerversion', 'wiki');
|
||||
}
|
||||
|
||||
require_login($course, true, $cm);
|
||||
|
@ -22,6 +22,7 @@ $string['backoldversion'] = 'Back to old version';
|
||||
$string['backpage'] = 'Back to page';
|
||||
$string['backtomapmenu'] = 'Back to map menu';
|
||||
$string['changerate'] = 'Do you wish to change it?';
|
||||
$string['cannotcomparenewerversion'] = 'A page version can only be compared with an older version.';
|
||||
$string['cannoteditpage'] = 'You can not edit this page.';
|
||||
$string['cannotmanagefiles'] = 'You don\'t have permission to manage the wiki files.';
|
||||
$string['cannotviewfiles'] = 'You don\'t have permission to view the wiki files.';
|
||||
@ -103,6 +104,9 @@ $string['history'] = 'History';
|
||||
$string['history_help'] = 'The history lists links to previous versions of the page.';
|
||||
$string['html'] = 'HTML';
|
||||
$string['incorrectdeleteversions'] = "Page versions provided for deletion are incorrect.";
|
||||
$string['incorrectpageid'] = 'Page ID is incorrect.';
|
||||
$string['incorrectsubwikiid'] = 'Subwiki ID is incorrect.';
|
||||
$string['incorrectwikiid'] = 'Wiki ID is incorrect.';
|
||||
$string['insertcomment'] = 'Insert comment';
|
||||
$string['insertimage'] = 'Insert an image...';
|
||||
$string['insertimage_help'] = 'This drop-down list will insert an image to the wiki editor. If you need to add more images to the wiki, please use "Files" tab.';
|
||||
|
@ -268,7 +268,7 @@ if ($id) {
|
||||
// * Error. No more options
|
||||
// */
|
||||
} else {
|
||||
print_error('incorrectparameters');
|
||||
print_error('invalidparameters', 'wiki');
|
||||
}
|
||||
|
||||
if (!wiki_user_can_view($subwiki, $wiki)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user