Skip to content

Commit

Permalink
MDL-22054 Fixed 'Edit' string in core strings
Browse files Browse the repository at this point in the history
AMOS BEGIN
 CPY [edit,core],[edita,core]
 REM do not forget to drop placeholder from [edit,core] in all languages
AMOS END
  • Loading branch information
mudrd8mz committed Apr 20, 2010
1 parent 6c2e200 commit 0831fd7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions course/editsection.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@
/// Inelegant hack for bug 3408
if ($course->format == 'site') {
$sectionname = get_string('site');
$stredit = get_string('edit', '', " $sectionname");
$stredit = get_string('edita', '', " $sectionname");
$strsummaryof = get_string('summaryof', '', " $sectionname");
} else {
$sectionname = get_section_name($course->format);
$stredit = get_string('edit', '', " $sectionname $section->section");
$stredit = get_string('edita', '', " $sectionname $section->section");
$strsummaryof = get_string('summaryof', '', " $sectionname $section->section");
}

Expand All @@ -82,4 +82,4 @@
echo $OUTPUT->heading_with_help($strsummaryof, 'summaries');

$mform->display();
echo $OUTPUT->footer();
echo $OUTPUT->footer();
3 changes: 2 additions & 1 deletion lang/en/moodle.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,8 @@
$string['edhelpfontfamily'] = 'The font-family property is a list of font family names and/or generic family names. Family names must be separated with comma.';
$string['edhelpfontlist'] = 'Define the fonts used on editors dropdown menu.';
$string['edhelpfontsize'] = 'The default font-size sets the size of a font. <br />Valid values are for example: medium, large, smaller, larger, 10pt, 11px.';
$string['edit'] = 'Edit {$a}';
$string['edit'] = 'Edit';
$string['edita'] = 'Edit {$a}';
$string['editcategorysettings'] = 'Edit category settings';
$string['editcategorythis'] = 'Edit this category';
$string['editcoursesettings'] = 'Edit course settings';
Expand Down
2 changes: 1 addition & 1 deletion mod/lesson/tabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
$attemptscount = $DB->count_records('lesson_grades', array('lessonid'=>$lesson->id));

$row[] = new tabobject('view', "$CFG->wwwroot/mod/lesson/view.php?id=$cm->id", get_string('preview', 'lesson'), get_string('previewlesson', 'lesson', format_string($lesson->name)));
$row[] = new tabobject('edit', "$CFG->wwwroot/mod/lesson/edit.php?id=$cm->id", get_string('edit', 'lesson'), get_string('edit', 'moodle', format_string($lesson->name)));
$row[] = new tabobject('edit', "$CFG->wwwroot/mod/lesson/edit.php?id=$cm->id", get_string('edit', 'lesson'), get_string('edita', 'moodle', format_string($lesson->name)));
$row[] = new tabobject('reports', "$CFG->wwwroot/mod/lesson/report.php?id=$cm->id", get_string('reports', 'lesson'), get_string('viewreports2', 'lesson', $attemptscount));
if (has_capability('mod/lesson:edit', $context)) {
$row[] = new tabobject('essay', "$CFG->wwwroot/mod/lesson/essay.php?id=$cm->id", get_string('manualgrading', 'lesson'));
Expand Down

0 comments on commit 0831fd7

Please sign in to comment.