From 0831fd784111f914f9ea5bb3ca619d538b0226dc Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Tue, 20 Apr 2010 17:57:12 +0000 Subject: [PATCH] MDL-22054 Fixed 'Edit' string in core strings AMOS BEGIN CPY [edit,core],[edita,core] REM do not forget to drop placeholder from [edit,core] in all languages AMOS END --- course/editsection.php | 6 +++--- lang/en/moodle.php | 3 ++- mod/lesson/tabs.php | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/course/editsection.php b/course/editsection.php index d8a99b6b0d3..092a3016ddd 100644 --- a/course/editsection.php +++ b/course/editsection.php @@ -66,11 +66,11 @@ if ($mform->is_cancelled()){ /// 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"); } @@ -82,4 +82,4 @@ echo $OUTPUT->header(); echo $OUTPUT->heading_with_help($strsummaryof, 'summaries'); $mform->display(); -echo $OUTPUT->footer(); \ No newline at end of file +echo $OUTPUT->footer(); diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 1fae7288340..289e14ba755 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -475,7 +475,8 @@ $string['edhelpenablespelling'] = 'Enable or disable spell-checking. When enable $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.
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'; diff --git a/mod/lesson/tabs.php b/mod/lesson/tabs.php index b7865411472..2b1744657b3 100644 --- a/mod/lesson/tabs.php +++ b/mod/lesson/tabs.php @@ -47,7 +47,7 @@ $tabs = $row = $inactive = $activated = array(); $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'));