summaryrefslogtreecommitdiff
path: root/modules/menu
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-09-12 11:48:15 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-09-12 11:48:15 +0000
commitffa1f6ef6932f470400377883025f9187da2468d (patch)
tree020b168ef2265751c3054fd1197836071c89f049 /modules/menu
parent34a26b3ce987333562ad08bfa671b334d291dd9a (diff)
downloadbrdo-ffa1f6ef6932f470400377883025f9187da2468d.tar.gz
brdo-ffa1f6ef6932f470400377883025f9187da2468d.tar.bz2
#174267 by kkaefer: improve wording of some menu messages, and add a missing format_plural()
Diffstat (limited to 'modules/menu')
-rw-r--r--modules/menu/menu.admin.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/menu/menu.admin.inc b/modules/menu/menu.admin.inc
index f95963922..4a7147060 100644
--- a/modules/menu/menu.admin.inc
+++ b/modules/menu/menu.admin.inc
@@ -355,17 +355,17 @@ function menu_delete_menu_confirm_submit($form, &$form_state) {
function menu_edit_menu_validate($form, &$form_state) {
$item = $form_state['values'];
if (preg_match('/[^a-z0-9-]/', $item['menu_name'])) {
- form_set_error('menu_name', t('Menu name may consist only of lowercase letters, numbers, and hyphens.'));
+ form_set_error('menu_name', t('The menu name may only consist of lowercase letters, numbers, and hyphens.'));
}
if (strlen($item['menu_name']) > MENU_MAX_MENU_NAME_LENGTH_UI) {
- form_set_error('menu_name', t('Menu name can not be longer than '. MENU_MAX_MENU_NAME_LENGTH_UI .' characters.'));
+ form_set_error('menu_name', format_plural(MENU_MAX_MENU_NAME_LENGTH_UI, "The menu name can't be longer than 1 character.", "The menu name can't be longer than @count characters."));
}
if ($form['#insert']) {
// We will add 'menu-' to the menu name to help avoid name-space conflicts.
$item['menu_name'] = 'menu-'. $item['menu_name'];
if (db_result(db_query("SELECT menu_name FROM {menu_custom} WHERE menu_name = '%s'", $item['menu_name'])) ||
db_result(db_query_range("SELECT menu_name FROM {menu_links} WHERE menu_name = '%s'", $item['menu_name'], 0, 1))) {
- form_set_error('menu_name', t('Menu already exists'));
+ form_set_error('menu_name', t('The menu already exists.'));
}
}
}