add loading of default language to CdmStoreConnector
authorAndreas Müller <a.mueller@bgbm.org>
Mon, 29 Jun 2020 16:26:21 +0000 (18:26 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Mon, 29 Jun 2020 16:26:58 +0000 (18:26 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/CdmStoreConnector.java

index f70cded..1ab8b6e 100644 (file)
@@ -28,6 +28,7 @@ import eu.etaxonomy.cdm.config.CdmSourceException;
 import eu.etaxonomy.cdm.config.ICdmSource;
 import eu.etaxonomy.cdm.database.DbSchemaValidation;
 import eu.etaxonomy.cdm.database.ICdmDataSource;
+import eu.etaxonomy.cdm.model.common.Language;
 import eu.etaxonomy.cdm.model.metadata.CdmMetaData;
 import eu.etaxonomy.cdm.model.name.NomenclaturalStatusType;
 import eu.etaxonomy.cdm.model.name.Rank;
@@ -181,6 +182,7 @@ class CdmStoreConnector extends Job {
                                     new TermLoader().unloadAllTerms();
                                     Rank.initDefaultTerms();
                                     NomenclaturalStatusType.initDefaultTerms();
+                                    Language.getDefaultLanguage();
                                 } catch(CdmAuthenticationException cae) {
                                     loginDialog.hide(false);
                                     loginDialog.setMessage(LoginManager.INCORRECT_CREDENTIALS_MESSAGE);