Skip to content

Commit

Permalink
MDL-51935 wiki: Add missing strings in wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
dpalou committed Nov 10, 2015
1 parent ae1854f commit 5d2e3c1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions mod/wiki/create.php
Expand Up @@ -46,20 +46,20 @@
$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();
Expand Down
2 changes: 1 addition & 1 deletion mod/wiki/diff.php
Expand Up @@ -63,7 +63,7 @@
$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);
Expand Down
4 changes: 4 additions & 0 deletions mod/wiki/lang/en/wiki.php
Expand Up @@ -22,6 +22,7 @@
$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.';
Expand Down Expand Up @@ -102,6 +103,9 @@
$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.';
Expand Down
2 changes: 1 addition & 1 deletion mod/wiki/view.php
Expand Up @@ -268,7 +268,7 @@
// * Error. No more options
// */
} else {
print_error('incorrectparameters');
print_error('invalidparameters', 'wiki');
}

if (!wiki_user_can_view($subwiki, $wiki)) {
Expand Down

0 comments on commit 5d2e3c1

Please sign in to comment.