summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2008-01-30 20:27:28 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2008-01-30 20:27:28 +0000
commitd171a9e75ab30d833347e9971da8dbf0aa79a433 (patch)
tree616c2c0153e2d3824d37c3ec828efe55214e1e30
parentffcb1a92d3a4a9172afa7aff7db5b7a5ac1a8322 (diff)
downloadbrdo-d171a9e75ab30d833347e9971da8dbf0aa79a433.tar.gz
brdo-d171a9e75ab30d833347e9971da8dbf0aa79a433.tar.bz2
#216014 report by meba, patch by myself: menu_install() did not use get_t() for its menu item creation
-rw-r--r--modules/menu/menu.install8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/menu/menu.install b/modules/menu/menu.install
index fd3697f5c..1e32ab6e2 100644
--- a/modules/menu/menu.install
+++ b/modules/menu/menu.install
@@ -7,9 +7,11 @@
function menu_install() {
// Create tables.
drupal_install_schema('menu');
- db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('%s', '%s', '%s')", 'navigation', 'Navigation', 'The navigation menu is provided by Drupal and is the main interactive menu for any site. It is usually the only menu that contains personalized links for authenticated users, and is often not even visible to anonymous users.');
- db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('%s', '%s', '%s')", 'primary-links', 'Primary links', 'Primary links are often used at the theme layer to show the major sections of a site. A typical representation for primary links would be tabs along the top.');
- db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('%s', '%s', '%s')", 'secondary-links', 'Secondary links', 'Secondary links are often used for pages like legal notices, contact details, and other secondary navigation items that play a lesser role than primary links');
+
+ $t = get_t();
+ db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('%s', '%s', '%s')", 'navigation', $t('Navigation'), $t('The navigation menu is provided by Drupal and is the main interactive menu for any site. It is usually the only menu that contains personalized links for authenticated users, and is often not even visible to anonymous users.'));
+ db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('%s', '%s', '%s')", 'primary-links', $t('Primary links'), $t('Primary links are often used at the theme layer to show the major sections of a site. A typical representation for primary links would be tabs along the top.'));
+ db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('%s', '%s', '%s')", 'secondary-links', $t('Secondary links'), $t('Secondary links are often used for pages like legal notices, contact details, and other secondary navigation items that play a lesser role than primary links'));
}
/**