diff --git a/admin/blocks.php b/admin/blocks.php index 368299a8298..9a54e791a3a 100644 --- a/admin/blocks.php +++ b/admin/blocks.php @@ -188,10 +188,10 @@ if ($blocks[$blockid]->visible) { $visible = ''. - ''; + ''.$strhide.''; } else { $visible = ''. - ''; + ''.$strshow.''; $class = ' class="dimmed_text"'; // Leading space required! } if ($blockobject->instance_allow_multiple()) { diff --git a/admin/filters.php b/admin/filters.php index 9d7832e9b67..8af7797229f 100644 --- a/admin/filters.php +++ b/admin/filters.php @@ -201,13 +201,13 @@ // get hide/show link if (in_array($path, $activefilters)) { $hideshow = ""; - $hideshow .= "pixpath}/i/hide.gif\" height=\"16\" width=\"16\" alt=\"hide\" />"; + $hideshow .= "pixpath}/i/hide.gif\" height=\"16\" width=\"16\" alt=\"$txt->hide\" />"; $hidden = false; $displayname = "$name"; } else { $hideshow = ""; - $hideshow .= "pixpath}/i/show.gif\" height=\"16\" width=\"16\" alt=\"show\" />"; + $hideshow .= "pixpath}/i/show.gif\" height=\"16\" width=\"16\" alt=\"$txt->show\" />"; $hidden = true; $displayname = "$name"; } @@ -217,14 +217,14 @@ if (!$hidden) { if ($updowncount>1) { $updown .= ""; - $updown .= "\"up\" "; + $updown .= "\"$txt-up\" /> "; } else { $updown .= "pixpath/spacer.gif\" height=\"16\" width=\"16\" alt=\"\" /> "; } if ($updowncount<$activefilterscount) { $updown .= ""; - $updown .= "\"down\""; + $updown .= "\"$txt-down\" />"; } else { $updown .= "pixpath/spacer.gif\" height=\"16\" width=\"16\" alt=\"\" />"; diff --git a/admin/lang.php b/admin/lang.php index fbc97848e30..adb5ca4e64d 100644 --- a/admin/lang.php +++ b/admin/lang.php @@ -74,6 +74,8 @@ $strchoosefiletoedit = get_string('langchoosefile', 'admin'); $streditennotallowed = get_string('langnoeditenglish', 'admin'); $strfilecreated = get_string('langfilecreated', 'admin'); + $strprev = get_string('previous'); + $strnext = get_string('next'); // FIXME / TODO // remove following lines after adding string into proper english lang pack @@ -448,9 +450,9 @@ if (LANG_DISPLAY_MISSING_LINKS) { $missingtarget = ''; $missingnext = ''. - ''; + ''.$strnext.''; $missingprev = ''. - ''; + ''.$strprev.''; } else { $missingtarget = ''; $missingnext = ''; diff --git a/admin/modules.php b/admin/modules.php index 6ddeae7d7dc..7dd7e73c68d 100644 --- a/admin/modules.php +++ b/admin/modules.php @@ -172,11 +172,11 @@ if ($module->visible) { $visible = "name&sesskey=$USER->sesskey\" title=\"$strhide\">". - "pixpath/i/hide.gif\" align=\"middle\" height=\"16\" width=\"16\" border=\"0\" alt=\"\" />"; + "pixpath/i/hide.gif\" align=\"middle\" height=\"16\" width=\"16\" border=\"0\" alt=\"$strhide\" />"; $class = ""; } else { $visible = "name&sesskey=$USER->sesskey\" title=\"$strshow\">". - "pixpath/i/show.gif\" align=\"middle\" height=\"16\" width=\"16\" border=\"0\" alt=\"\" />"; + "pixpath/i/show.gif\" align=\"middle\" height=\"16\" width=\"16\" border=\"0\" alt=\"$strshow\" />"; $class = "class=\"dimmed_text\""; } if ($module->name == "forum") { diff --git a/admin/report/courseoverview/index.php b/admin/report/courseoverview/index.php index 11819849bf9..c32e3b0928a 100644 --- a/admin/report/courseoverview/index.php +++ b/admin/report/courseoverview/index.php @@ -85,7 +85,7 @@ if (empty($CFG->gdversion)) { echo '
(' . get_string("gdneed") .')
'; } else { - echo '
'; + echo '
'.get_string('courseoverviewgraph').'
'; } $table = new StdClass; diff --git a/blocks/admin_bookmarks/block_admin_bookmarks.php b/blocks/admin_bookmarks/block_admin_bookmarks.php index e332ca0edea..7cb5d87a74a 100644 --- a/blocks/admin_bookmarks/block_admin_bookmarks.php +++ b/blocks/admin_bookmarks/block_admin_bookmarks.php @@ -20,7 +20,7 @@ class block_admin_bookmarks extends block_base { } function create_item($visiblename,$link,$icon) { - $this->tempcontent .= '[item] ' . $visiblename . '
' . "\n"; + $this->tempcontent .= ' ' . $visiblename . '
' . "\n"; } function get_content() { diff --git a/blocks/admin_tree/block_admin_tree.php b/blocks/admin_tree/block_admin_tree.php index dc495715c86..cad0945e997 100644 --- a/blocks/admin_tree/block_admin_tree.php +++ b/blocks/admin_tree/block_admin_tree.php @@ -31,11 +31,13 @@ class block_admin_tree extends block_base { function open_folder($visiblename) { global $CFG; + $strfolderopened = s(get_string('folderopened')); + for ($i = 0; $i < $this->currentdepth; $i++) { $this->tempcontent .= "   "; } $this->tempcontent .= ''; - $this->tempcontent .= '[open folder] '; + $this->tempcontent .= ''.$strfolderopened.' '; $this->tempcontent .= $visiblename . '
' . "\n"; $this->currentdepth++; $this->spancounter++; @@ -51,7 +53,7 @@ class block_admin_tree extends block_base { for ($i = 0; $i < $this->currentdepth; $i++) { $this->tempcontent .= "   "; } - $this->tempcontent .= '[item]'. + $this->tempcontent .= ''. $visiblename.'
'."\n"; } diff --git a/blocks/course_summary/block_course_summary.php b/blocks/course_summary/block_course_summary.php index 98ee2501599..c5a29678cdb 100644 --- a/blocks/course_summary/block_course_summary.php +++ b/blocks/course_summary/block_course_summary.php @@ -33,7 +33,7 @@ class block_course_summary extends block_base { } else { $editpage = $CFG->wwwroot.'/course/edit.php?id='.$COURSE->id; } - $this->content->text .= "
pixpath/t/edit.gif\" alt=\"\" />
"; + $this->content->text .= "
pixpath/t/edit.gif\" alt=\"".get_string('edit')."\" />
"; } $this->content->footer = ''; diff --git a/blocks/social_activities/block_social_activities.php b/blocks/social_activities/block_social_activities.php index 6bb508b7cb3..f715c038d18 100644 --- a/blocks/social_activities/block_social_activities.php +++ b/blocks/social_activities/block_social_activities.php @@ -51,7 +51,7 @@ class block_social_activities extends block_list { $editbuttons = ''; if ($ismoving) { - $this->content->icons[] = ' \"\"'; + $this->content->icons[] = ' '; $this->content->items[] = $USER->activitycopyname.' ('.$strcancel.')'; } diff --git a/course/category.php b/course/category.php index 1094f78e615..a87c13dac17 100644 --- a/course/category.php +++ b/course/category.php @@ -344,13 +344,13 @@ if (has_capability('moodle/site:backup', $coursecontext)) { echo ''. - ' '; + ''.$strbackup.' '; } if (has_capability('moodle/site:restore', $coursecontext)) { echo ''. - ' '; + ''.$strrestore.' '; } if (has_capability('moodle/category:update', $context)) { @@ -381,16 +381,16 @@ if (!empty($acourse->guest)) { echo ''; + $CFG->pixpath.'/i/user.gif" alt="'.$strallowguests.'" />'; } if (!empty($acourse->password)) { echo ''; + $CFG->pixpath.'/i/key.gif" alt="'.$strrequireskey.'" />'; } if (!empty($acourse->summary)) { link_to_popup_window ("/course/info.php?id=$acourse->id", "courseinfo", - 'info', + ''.get_string('info').'', 400, 500, $strsummary); } echo ""; diff --git a/course/format/lams/format.php b/course/format/lams/format.php index de01892fe14..89a875bbc7d 100644 --- a/course/format/lams/format.php +++ b/course/format/lams/format.php @@ -260,7 +260,7 @@ while ($section <= $course->numsections) { if (isediting($course->id)) { echo ' '. - '

'; + ''.$streditsummary.'

'; } echo ''; @@ -275,11 +275,11 @@ while ($section <= $course->numsections) { echo ''; if ($displaysection == $section) { // Show the zoom boxes echo ''. - '
'; + ''.$strshowalltopics.'
'; } else { $strshowonlytopic = get_string('showonlytopic', '', $section); echo ''. - '
'; + ''.$strshowonlytopic.'
'; } if (isediting($course->id)) { diff --git a/course/index.php b/course/index.php index aee1fd34a75..93291cf398d 100644 --- a/course/index.php +++ b/course/index.php @@ -363,16 +363,16 @@ function print_category_edit($category, $displaylist, $parentslist, $depth=-1, $ if (has_capability('moodle/category:delete', $context)) { echo "delete\" href=\"index.php?delete=$category->id&sesskey=$USER->sesskey\">pixpath/t/delete.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /> "; + " src=\"$CFG->pixpath/t/delete.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"$str->delete\" /> "; } if (has_capability('moodle/category:visibility', $context)) { if (!empty($category->visible)) { echo "hide\" href=\"index.php?hide=$category->id&sesskey=$USER->sesskey\">pixpath/t/hide.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /> "; + " src=\"$CFG->pixpath/t/hide.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"$str->hide\" /> "; } else { echo "show\" href=\"index.php?show=$category->id&sesskey=$USER->sesskey\">pixpath/t/show.gif\" height=\"11\" width=\"11\" border=\"0\"alt=\"\" /> "; + " src=\"$CFG->pixpath/t/show.gif\" height=\"11\" width=\"11\" border=\"0\"alt=\"$str->show\" /> "; } } diff --git a/course/report/stats/report.php b/course/report/stats/report.php index 747449e5fb8..32ee6d0e7f9 100644 --- a/course/report/stats/report.php +++ b/course/report/stats/report.php @@ -108,9 +108,9 @@ echo "(".get_string("gdneed").")"; } else { if ($mode == STATS_MODE_DETAILED) { - echo '
'; + echo '
'.get_string('statisticsgraph').'
'; } else { - echo '
'; + echo '
'.get_string('statisticsgraph').'
'; } } diff --git a/course/search.php b/course/search.php index 4c087753e6f..15fd9636d5b 100644 --- a/course/search.php +++ b/course/search.php @@ -193,7 +193,7 @@ // checks whether user can update course settings if (has_capability('moodle/course:update', $coursecontext)) { echo "wwwroot/course/edit.php?id=$course->id\"> "; + " src=\"$pixpath/t/edit.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"".get_string("settings")."\"> "; } // checks whether user can do role assignment @@ -205,30 +205,30 @@ // checks whether user can delete course if (has_capability('moodle/course:delete', $coursecontext)) { echo "id\"> "; + " src=\"$pixpath/t/delete.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"".get_string("delete")."\"> "; } // checks whether user can change visibility if (has_capability('moodle/course:visibility', $coursecontext)) { if (!empty($course->visible)) { echo "id&sesskey=$USER->sesskey\"> "; + " src=\"$pixpath/t/hide.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"".get_string("hide")."\"> "; } else { echo "id&sesskey=$USER->sesskey\"> "; + " src=\"$pixpath/t/show.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"".get_string("show")."\"> "; } } // checks whether user can do site backup if (has_capability('moodle/site:backup', $coursecontext)) { echo "id\"> "; + " src=\"$pixpath/t/backup.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"".get_string("backup")."\"> "; } // checks whether user can do restore if (has_capability('moodle/site:restore', $coursecontext)) { echo "id&wdir=/backupdata\"> "; + " src=\"$pixpath/t/restore.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"".get_string("restore")."\"> "; } echo ""; diff --git a/course/user.php b/course/user.php index 8023768be51..2c7cc13c43a 100644 --- a/course/user.php +++ b/course/user.php @@ -140,7 +140,7 @@ error(get_string('nostatstodisplay'), $CFG->wwwroot.'/course/user.php?id='.$course->id.'&user='.$user->id.'&mode=outline'); } - echo '
'; + echo '
'.get_string('statisticsgraph').'
'; // What the heck is this about? -- MD $stats = stats_fix_zeros($stats,$param->timeafter,$param->table,(!empty($param->line2)),(!empty($param->line3))); diff --git a/lang/en_utf8/moodle.php b/lang/en_utf8/moodle.php index 92288d1134c..b7a70f6b7b4 100644 --- a/lang/en_utf8/moodle.php +++ b/lang/en_utf8/moodle.php @@ -260,6 +260,7 @@ $string['courseinfo'] = 'Course info'; $string['coursemessage'] = 'Message course users'; $string['coursenotaccessible'] = 'This course does not allow public access'; $string['courseoverview'] = 'Course overview'; +$string['courseoverviewgraph'] = 'Course overview graph'; $string['coursereject'] = 'Reject a course request'; $string['courserejected'] = 'Course has been rejected and the requester has been notified.'; $string['courserejectemail'] = 'Sorry, but the course you requested has been rejected. Here is the reason provided: @@ -1239,6 +1240,7 @@ $string['startdate'] = 'Course start date'; $string['startsignup'] = 'Create new account'; $string['state'] = 'State/Province'; $string['statistics'] = 'Statistics'; +$string['statisticsgraph'] = 'Statistics graph'; $string['stats'] = 'Statistics'; $string['statslogins'] = 'Logins'; $string['statsmodedetailed'] = 'Detailed (user) view';