ref #5474 Add separator and i10n to Term menu
authorPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 8 Feb 2017 16:23:00 +0000 (17:23 +0100)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 8 Feb 2017 16:23:25 +0000 (17:23 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/DefinedTermMenu.java

index cbf4bb085dcfbcb33d877d63510153aaa3367a31..9bc72b20b1c8bcdbaeed8d765d06d69eb47d34c8 100644 (file)
@@ -29,6 +29,7 @@ import org.eclipse.ui.menus.CommandContributionItem;
 import org.eclipse.ui.menus.CommandContributionItemParameter;
 
 import eu.etaxonomy.cdm.model.common.TermType;
+import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
 
 /**
  * Menu used in the store plugin xml to dynamically generate menu (sub-menu) contribution items
@@ -54,6 +55,7 @@ public class DefinedTermMenu extends CompoundContributionItem {
            //add Feature and NamedArea to top level
            dtMenuManager.add(addChildTermsToMenuManager(TermType.Feature));
            dtMenuManager.add(addChildTermsToMenuManager(TermType.NamedArea));
+           dtMenuManager.add(new Separator());
 
            MenuManager otherMenuManager =
                 new MenuManager("Others","eu.etaxonomy.taxeditor.store.term.other.menu");
@@ -91,7 +93,7 @@ public class DefinedTermMenu extends CompoundContributionItem {
                        }
                        // term type has children, so create sub menu
                        MenuManager dtMenuManager =
-                                       new MenuManager(termType.getMessage(),"eu.etaxonomy.taxeditor.store." + termType.getKey() + "Menu");
+                                       new MenuManager(termType.getMessage(PreferencesUtil.getGlobalLanguage()),"eu.etaxonomy.taxeditor.store." + termType.getKey() + "Menu");
                        dtMenuManager.setVisible(true);
                        dtMenuManager.add(createDefaultMenuItem(termType));