When going to the node add/edit form for a content type that uses one or more taxonomies, you will see that the taxonomy(-ies) are listed in a fieldset labeled "Vocabularies". The mini-module below changes the word "Vocabularies" to the word "Categories". You can also change it to something other than the word "Categories", see below. The module is a very light-weight custom module.

This module prevents having to change the word "Vocabularies" to "Categories" in the Taxonomy module with every upgrade.

Here are the steps to do this...

1. In sites/all/modules create a folder named "vocabularies_fieldset_to_categories_fieldset" (without the quotes).

2. In a text editor, create a file named "vocabularies_fieldset_to_categories_fieldset.info" (without the quotes), and in that file enter this:

 
; $Id$
name = Vocabularies Fieldset Name to Categories
description = Change the word Vocabularies to Categories on node edit forms
core = 6.x
package = "My Custom Modules" 

Leave out the closing "?>" tag.

3. In a text editor, create a file named "vocabularies_fieldset_to_categories_fieldset.module" (without the quotes), and in that file enter this:


function vocabularies_fieldset_to_categories_fieldset_form_alter(&$form, $form_state, $form_id) {
	if($form['taxonomy']['#title'] == 'Vocabularies') {
		//In the line below, set the name of the Vocabularies fieldset
		$form['taxonomy']['#title'] = 'Categories';
	}
}

Alse here, leave out the closing "?>" tag.

4. Upload the 2 files you created into the "vocabularies_fieldset_to_categories_fieldset" folder on your webserver.

5. Go to admin/build/modules and enable the module named "Vocabularies Fieldset Name to Categories". It'll be in a category named "My Custom Modules".

6. All done.

Comments

Maedi’s picture

Another option is to use the String Overrides module and do a simple text replacement.
http://drupal.org/project/stringoverrides

d0t101101’s picture

Simply put this in your sites settings.php file:

$conf['locale_custom_strings_en'] = array(
   'Vocabularies' => 'Categories',
 );
ehofbeck’s picture

I noticed that this solution did not solve the issue when using another language than English. To solve this, I suggest you modify the following line :

if($form['taxonomy']['#title'] == 'Vocabularies') {

to have the word 'Vocabularies' correspond to the translated word. (For example in French 'Vocabulaires')

If you have multilingual site, you may want to add another IF statement instead :

if($form['taxonomy']['#title'] == '**translated word for Vocabulary**') {
//In the line below, set the name of the Vocabularies fieldset
$form['taxonomy']['#title'] = '**the word you desire**';
}

When doing this, you may want to change the name of the module alltogether...

flaviovs’s picture

Just test against t('Vocabularies') and it should work.