From 2f33b939c5dc73364a0e2073ea9410516d66242f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 16 Aug 2004 18:02:48 +0000 Subject: - Patch #9983 by Stefan: usability improvement: made sure all status messages start with a capital letter. --- modules/taxonomy/taxonomy.module | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/taxonomy/taxonomy.module') diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 519ada067..1e7e61f4f 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/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' => $edit['name'])); } 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' => $edit['name'])); } 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 "%a" has been updated.', array('%a' => $edit['name'])); } 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 "%name".', array('%name' => $edit['name'])); } db_query('DELETE FROM {term_relation} WHERE tid1 = %d OR tid2 = %d', $edit['tid'], $edit['tid']); -- cgit v1.2.3