Commit 069e1bb8 authored by Dries's avatar Dries

- More translation fixes for the menu items.  Patch by Gabor.
parent 179ded04
......@@ -68,10 +68,10 @@ function block_perm() {
function block_link($type) {
if ($type == "system" && user_access("administer blocks")) {
menu("admin/system/block", "blocks", "block_admin", block_help("admin/system/block"), 3);
menu("admin/system/block/add", "new block", "block_admin", block_help("admin/system/block/add"), 2);
menu("admin/system/block/preview", "preview placement", "block_admin", block_help("admin/system/block/preview"), 3);
menu("admin/system/block/help", "help", "block_help", NULL, 9);
menu("admin/system/block", t("blocks"), "block_admin", block_help("admin/system/block"), 3);
menu("admin/system/block/add", t("new block"), "block_admin", block_help("admin/system/block/add"), 2);
menu("admin/system/block/preview", t("preview placement"), "block_admin", block_help("admin/system/block/preview"), 3);
menu("admin/system/block/help", t("help"), "block_help", NULL, 9);
}
}
......
......@@ -68,10 +68,10 @@ function block_perm() {
function block_link($type) {
if ($type == "system" && user_access("administer blocks")) {
menu("admin/system/block", "blocks", "block_admin", block_help("admin/system/block"), 3);
menu("admin/system/block/add", "new block", "block_admin", block_help("admin/system/block/add"), 2);
menu("admin/system/block/preview", "preview placement", "block_admin", block_help("admin/system/block/preview"), 3);
menu("admin/system/block/help", "help", "block_help", NULL, 9);
menu("admin/system/block", t("blocks"), "block_admin", block_help("admin/system/block"), 3);
menu("admin/system/block/add", t("new block"), "block_admin", block_help("admin/system/block/add"), 2);
menu("admin/system/block/preview", t("preview placement"), "block_admin", block_help("admin/system/block/preview"), 3);
menu("admin/system/block/help", t("help"), "block_help", NULL, 9);
}
}
......
......@@ -86,7 +86,7 @@ function book_link($type, $node = 0, $main = 0) {
$result = db_query("SELECT n.nid, n.title FROM {node} n INNER JOIN {book} b ON n.nid = b.nid WHERE b.parent = 0 ORDER BY b.weight, n.title");
while ($book = db_fetch_object($result)) {
menu("admin/node/book/$book->nid", "'$book->title' book", "book_admin");
menu("admin/node/book/$book->nid", t("'%title' book", array("%title" => $book->title)), "book_admin");
}
}
......
......@@ -86,7 +86,7 @@ function book_link($type, $node = 0, $main = 0) {
$result = db_query("SELECT n.nid, n.title FROM {node} n INNER JOIN {book} b ON n.nid = b.nid WHERE b.parent = 0 ORDER BY b.weight, n.title");
while ($book = db_fetch_object($result)) {
menu("admin/node/book/$book->nid", "'$book->title' book", "book_admin");
menu("admin/node/book/$book->nid", t("'%title' book", array("%title" => $book->title)), "book_admin");
}
}
......
......@@ -60,10 +60,10 @@ function cloud_link($type) {
if ($type == "system") {
if (user_access("administer site cloud")) {
menu("admin/syndication", "content syndication", NULL, NULL, 5);
menu("admin/syndication/cloud", "site cloud", "cloud_admin", cloud_help("admin/syndication/cloud"));
menu("admin/syndication/cloud/add", "add new site", "cloud_admin", cloud_help("admin/syndication/cloud/add"));
menu("admin/syndication/cloud/help", "help", "cloud_help", NULL, 9);
menu("admin/syndication", t("content syndication"), NULL, NULL, 5);
menu("admin/syndication/cloud", t("site cloud"), "cloud_admin", cloud_help("admin/syndication/cloud"));
menu("admin/syndication/cloud/add", t("add new site"), "cloud_admin", cloud_help("admin/syndication/cloud/add"));
menu("admin/syndication/cloud/help", t("help"), "cloud_help", NULL, 9);
}
}
......
......@@ -8,8 +8,8 @@ function help_system($field){
function help_link($type) {
if ($type == "system" && user_access("access administration pages")) {
menu("admin/help/glossary", "glossary", "help_glossary", NULL, 8);
menu("admin/help", "help", "help_admin", NULL, 9);
menu("admin/help/glossary", t("glossary"), "help_glossary", NULL, 8);
menu("admin/help", t("help"), "help_admin", NULL, 9);
}
}
......
......@@ -8,8 +8,8 @@ function help_system($field){
function help_link($type) {
if ($type == "system" && user_access("access administration pages")) {
menu("admin/help/glossary", "glossary", "help_glossary", NULL, 8);
menu("admin/help", "help", "help_admin", NULL, 9);
menu("admin/help/glossary", t("glossary"), "help_glossary", NULL, 8);
menu("admin/help", t("help"), "help_admin", NULL, 9);
}
}
......
......@@ -75,7 +75,7 @@ function system_link($type) {
foreach (module_list(1) as $name) {
// NOTE: refresh the list because some modules might have been enabled/disabled.
if (module_hook($name, "settings")) {
menu("admin/system/modules/$name", $name, "system_admin", module_invoke($name, "system", "admin_help"));
menu("admin/system/modules/$name", t($name), "system_admin", module_invoke($name, "system", "admin_help"));
}
}
menu("admin/system/filters", t("filters"), "system_admin", system_help("admin/system/filters"), 4);
......
......@@ -75,7 +75,7 @@ function system_link($type) {
foreach (module_list(1) as $name) {
// NOTE: refresh the list because some modules might have been enabled/disabled.
if (module_hook($name, "settings")) {
menu("admin/system/modules/$name", $name, "system_admin", module_invoke($name, "system", "admin_help"));
menu("admin/system/modules/$name", t($name), "system_admin", module_invoke($name, "system", "admin_help"));
}
}
menu("admin/system/filters", t("filters"), "system_admin", system_help("admin/system/filters"), 4);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment