Project

General

Profile

« Previous | Next » 

Revision 9d215095

Added by Patrick Plitzner about 7 years ago

ref #5474 Add separator and i10n to Term menu

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/DefinedTermMenu.java
29 29
import org.eclipse.ui.menus.CommandContributionItemParameter;
30 30

  
31 31
import eu.etaxonomy.cdm.model.common.TermType;
32
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
32 33

  
33 34
/**
34 35
 * Menu used in the store plugin xml to dynamically generate menu (sub-menu) contribution items
......
54 55
	    //add Feature and NamedArea to top level
55 56
	    dtMenuManager.add(addChildTermsToMenuManager(TermType.Feature));
56 57
	    dtMenuManager.add(addChildTermsToMenuManager(TermType.NamedArea));
58
	    dtMenuManager.add(new Separator());
57 59

  
58 60
	    MenuManager otherMenuManager =
59 61
                new MenuManager("Others","eu.etaxonomy.taxeditor.store.term.other.menu");
......
91 93
			}
92 94
			// term type has children, so create sub menu
93 95
			MenuManager dtMenuManager =
94
					new MenuManager(termType.getMessage(),"eu.etaxonomy.taxeditor.store." + termType.getKey() + "Menu");
96
					new MenuManager(termType.getMessage(PreferencesUtil.getGlobalLanguage()),"eu.etaxonomy.taxeditor.store." + termType.getKey() + "Menu");
95 97
			dtMenuManager.setVisible(true);
96 98
			dtMenuManager.add(createDefaultMenuItem(termType));
97 99

  

Also available in: Unified diff