create terms and vocabularies with default language representation
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / editor / definedterm / operation / CreateTermVocabularyOperation.java
index a9bbe222c6772541450c00d40ff612e20a22d0f4..abd02ec73393f0c86fac95c9dc50b4638fac97d1 100644 (file)
@@ -24,6 +24,7 @@ import eu.etaxonomy.cdm.persistence.dto.TermVocabularyDto;
 import eu.etaxonomy.taxeditor.editor.definedterm.input.TermEditorInput;\r
 import eu.etaxonomy.taxeditor.operation.AbstractPostTaxonOperation;\r
 import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;\r
+import eu.etaxonomy.taxeditor.preference.PreferencesUtil;\r
 import eu.etaxonomy.taxeditor.store.CdmStore;\r
 \r
 /**\r
@@ -48,14 +49,14 @@ public class CreateTermVocabularyOperation extends AbstractPostTaxonOperation {
                        throws ExecutionException {\r
 \r
           TermType type= definedEditorInput.getTermType();\r
-          DefinedTermBase test = type.getEmptyDefinedTermBase();\r
+          DefinedTermBase test = type.getEmptyDefinedTermBase(PreferencesUtil.getGlobalLanguage());\r
           TermVocabulary termVocabulary = null;\r
           if (test instanceof OrderedTermBase){\r
              termVocabulary = OrderedTermVocabulary.NewInstance(definedEditorInput.getTermType(),\r
                        null,\r
                        "Untitled",\r
                        null,\r
-                       null);\r
+                       null, PreferencesUtil.getGlobalLanguage());\r
           }\r
 \r
           if (termVocabulary == null){\r