MDL-15534 Wiki 1.x: Allow to display "Site map for" using i18n Moodle strings. Merged from 19_STABLE

This commit is contained in:
stronk7
2008-11-19 02:09:06 +00:00
parent bbd546247a
commit 2f64da2209
+2 -2
View File
@@ -8,7 +8,7 @@
define("EWIKI_PAGE_SITEMAP", "SiteMap");
define("EWIKI_SITEMAP_DEPTH", 10);
$ewiki_t["en"]["INVALIDROOT"] = "You are not authorized to access the current root page so no sitemap can be created.";
$ewiki_t["en"]["SITEMAPFOR"] = "Site map for ";
$ewiki_t["en"]["SMFOR"] = "Site map for ";
$ewiki_t["en"]["VIEWSMFOR"] = "View site map for ";
$ewiki_plugins["page"][EWIKI_PAGE_SITEMAP]="ewiki_page_sitemap";
$ewiki_plugins["action"]['sitemap']="ewiki_page_sitemap";
@@ -47,7 +47,7 @@ function ewiki_page_sitemap($id=0, $data=0, $action=0){
}
}else{
$o = ewiki_make_title($id, ewiki_t("SITEMAPFOR")." ".$id, 2);
$o = ewiki_make_title($id, ewiki_t("SMFOR")." ".$id, 2);
if(isset($a_validpages[$id])){
$valid_root=TRUE;
$str_rootid=$id;