summaryrefslogtreecommitdiff
path: root/modules/taxonomy.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-08-18 19:57:27 +0000
committerDries Buytaert <dries@buytaert.net>2004-08-18 19:57:27 +0000
commit83a739bd898094af5837d2b29863d8e988929e1b (patch)
tree957c07dd7b93fd1d074bb8609b22fe1e0c4f3992 /modules/taxonomy.module
parent0e36182c967685a55e02e48178f1d6cb64ad815e (diff)
downloadbrdo-83a739bd898094af5837d2b29863d8e988929e1b.tar.gz
brdo-83a739bd898094af5837d2b29863d8e988929e1b.tar.bz2
- Code improvements by Stefan: made all status messages consistent (and easier to translate).
Diffstat (limited to 'modules/taxonomy.module')
-rw-r--r--modules/taxonomy.module8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index 1e7e61f4f..546ca6e4e 100644
--- a/modules/taxonomy.module
+++ b/modules/taxonomy.module
@@ -117,7 +117,7 @@ function taxonomy_save_vocabulary($edit) {
if ($edit['vid'] && $edit['name']) {
db_query('UPDATE {vocabulary} SET '. _taxonomy_prepare_update($data) .' WHERE vid = %d', $edit['vid']);
module_invoke_all('taxonomy', 'update', 'vocabulary', $edit);
- $message = t('Updated vocabulary "%name".', array('%name' => $edit['name']));
+ $message = t('Updated vocabulary %name.', array('%name' => '<em>'. $edit['name'] .'</em>'));
}
else if ($edit['vid']) {
$message = taxonomy_del_vocabulary($edit['vid']);
@@ -126,7 +126,7 @@ function taxonomy_save_vocabulary($edit) {
$data['vid'] = $edit['vid'] = db_next_id('{vocabulary}_vid');
db_query('INSERT INTO {vocabulary} '. _taxonomy_prepare_insert($data, 1) .' VALUES '. _taxonomy_prepare_insert($data, 2));
module_invoke_all('taxonomy', 'insert', 'vocabulary', $edit);
- $message = t('Created new vocabulary "%name".', array('%name' => $edit['name']));
+ $message = t('Created new vocabulary %name.', array('%name' => '<em>'. $edit['name'] .'</em>'));
}
cache_clear_all();
@@ -212,7 +212,7 @@ function taxonomy_save_term($edit) {
db_query('UPDATE {term_data} SET '. _taxonomy_prepare_update($data) .' WHERE tid = %d', $edit['tid']);
module_invoke_all('taxonomy', 'update', 'term', $edit);
- $message = t('The term "%a" has been updated.', array('%a' => $edit['name']));
+ $message = t('The term %term has been updated.', array('%term' => '<em>'. $edit['name'] .'</em>'));
}
else if ($edit['tid']) {
return taxonomy_del_term($edit['tid']);
@@ -222,7 +222,7 @@ function taxonomy_save_term($edit) {
$data = array('tid' => $edit['tid'], 'name' => $edit['name'], 'description' => $edit['description'], 'vid' => $edit['vid'], 'weight' => $edit['weight']);
db_query('INSERT INTO {term_data} '. _taxonomy_prepare_insert($data, 1) .' VALUES '. _taxonomy_prepare_insert($data, 2));
module_invoke_all('taxonomy', 'insert', 'term', $edit);
- $message = t('Created new term "%name".', array('%name' => $edit['name']));
+ $message = t('Created new term %term.', array('%term' => '<em>'. $edit['name'] .'</em>'));
}
db_query('DELETE FROM {term_relation} WHERE tid1 = %d OR tid2 = %d', $edit['tid'], $edit['tid']);