diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-08-20 07:07:17 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-08-20 07:07:17 +0000 |
commit | 92a01e2057e491da6538be32ed2ada0ee64e34f0 (patch) | |
tree | fbc1b23bc79a756f4f97fd61826fd842e89ce6bc /modules/node/node.module | |
parent | cbf48c1d9be8dec41e9910fabe6fc18554dfaa86 (diff) | |
download | brdo-92a01e2057e491da6538be32ed2ada0ee64e34f0.tar.gz brdo-92a01e2057e491da6538be32ed2ada0ee64e34f0.tar.bz2 |
- Patch #79476 by assimonds and webchick: fixed broken t()-iness.
CVS: ----------------------------------------------------------------------
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index b8eb22d4c..2fd9d7c84 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1809,7 +1809,7 @@ function node_validate($node, $form = array()) { // Make sure the body has the minimum number of words. // todo use a better word counting algorithm that will work in other languages if (isset($node->body) && count(explode(' ', $node->body)) < $type->min_word_count) { - form_set_error('body', t('The body of your @type is too short. You need at least %words words.', array('%words' => $type->min_word_count, '%type' => $type->name))); + form_set_error('body', t('The body of your @type is too short. You need at least %words words.', array('%words' => $type->min_word_count, '@type' => $type->name))); } if (isset($node->nid) && (node_last_changed($node->nid) > $_POST['edit']['changed'])) { @@ -2004,14 +2004,14 @@ function node_add($type = NULL) { $node = array('uid' => $user->uid, 'name' => $user->name, 'type' => $type); $output = drupal_get_form($type .'_node_form', $node); - drupal_set_title(t('Submit @name', array('%name' => $types[$type]->name))); + drupal_set_title(t('Submit @name', array('@name' => $types[$type]->name))); } else { // If no (valid) node type has been provided, display a node type overview. foreach ($types as $type) { if (function_exists($type->module .'_form') && node_access('create', $type->type)) { $type_url_str = str_replace('_', '-', $type->type); - $title = t('Add a new @s.', array('%s' => $type->name)); + $title = t('Add a new @s.', array('@s' => $type->name)); $out = '<dt>'. l($type->name, "node/add/$type_url_str", array('title' => $title)) .'</dt>'; $out .= '<dd>'. filter_xss_admin($type->description) .'</dd>'; $item[$type->type] = $out; |