\r
CdmViewerContextMenu_OPEN=Open (%s)\r
CdmViewerContextMenu_OPEN_IN=Open in...\r
+\r
+CdmStoreConnector_AUTHENTICATING_USER=Authenticating user\r
+CdmStoreConnector_CHECK_IF_EDITOR_IS_COMPATIBLE=Checking if datasource is compatible with this editor.\r
+CdmStoreConnector_CHECK_IF_NON_EMPTY=Checking if datasource is a non empty CDM database.\r
+CdmStoreConnector_CHECK_IF_REACHABLE=Checking if datasource is reachable.\r
+CdmStoreConnector_COMPATIBILITY_CHECK_FAILED=Datasource Compatibility Check failed\r
+CdmStoreConnector_COULD_NOT_CONNECT_TO_CHOSEN_DATASOURCE=Could not connect to chosen datasource\r
+CdmStoreConnector_COULD_NOT_CREATE_DATAMODEL=Could not create data model\r
+CdmStoreConnector_CREATING_DATAMODEL=Creating data model for %s\r
+CdmStoreConnector_ERROR_DURING_DATAMODEL_CREATION=An error occurred while trying to create data model for data source: %s\nPlease clear the data base and retry.\r
+CdmStoreConnector_REASON=Reason: \r
+CdmStoreConnector_SCHEME_NOT_COMPATIBLE=The database schema for the chosen datasource '%s' \n is not compatible for this version of the taxonomic editor. \n\n%s\r
+CdmStoreConnector_UPDATE_DATASOUREC_OR_CHOOSE_NEW_DATASOURCE=Please update the chosen datasource or choose a new data source to connect to in the Datasource View.\r
+CdmStoreConnector_UPDATE_EDITOR_OR_CHOOSE_COMPATIBLE_DATASOURCE=Please update the Taxonomic Editor (Help->Check for Updates) or choose a compatible datasource\r
LanguageEditorPreferencePage_EditorHasToRestart=Der Anwendung muss neu gestartet werden, um die Sprache zu wechseln.\nWollen Sie jetzt neu starten?
LanguageEditorPreferencePage_PleaseRestart=Bitte neu starten
LanguageEditorPreferencePage_RestartRequired=Nach dem Wechsel der Standardsprache ist ein Neustart erforderlich.
-OrderPreferencePage_NewNavigatorWindowRequired=Nach dem Ändern der Taxon Sortierung, ist das Schließen und erneute Öffnen des taxon Navigators erforderlich.
+OrderPreferencePage_NewNavigatorWindowRequired=Nach dem Ändern der Taxon Sortierung, ist das Schließen und erneute Öffnen des Taxonnavigators erforderlich.
+OrderPreferencePage_PleaseReopenNavigator=Bitte schließen sie den Taxonnavigator und öffnen ihn erneut.
UriWithLabelElement_URL_NOT_SAVED=URI wird nicht gespeichert\!
UriWithLabelElement_COULD_NOT_OPEN_BROWSER=Externer Browser konnte nicht geöffnet werden. URI ist ung\u00FCtlig.
UriWithLabelElement_INVALID_URL=Ung\u00FCltige URI
CdmViewerContextMenu_OPEN=\u00d6ffnen (%s)
CdmViewerContextMenu_OPEN_IN=\u00d6ffnen in...
+CdmStoreConnector_AUTHENTICATING_USER=Benutzer authentifizieren
+CdmStoreConnector_CHECK_IF_EDITOR_IS_COMPATIBLE=Überprüfe, ob der Datenquelle mit diesem Editor kompatibel ist
+CdmStoreConnector_CHECK_IF_NON_EMPTY=Überprüfe, of die Datenquelle nicht leer ist
+CdmStoreConnector_CHECK_IF_REACHABLE=Überprüfe, ob die Datenquelle erreichbar ist
+CdmStoreConnector_COMPATIBILITY_CHECK_FAILED=Datenquellenkompatibilitätscheck fehlgeschlagen
+CdmStoreConnector_COULD_NOT_CONNECT_TO_CHOSEN_DATASOURCE=Verbindung zur ausgewählten Datenquelle fehlgeschlagen
+CdmStoreConnector_COULD_NOT_CREATE_DATAMODEL=Could not create data model
+CdmStoreConnector_CREATING_DATAMODEL=Erstelle Datenmodell für %s
+CdmStoreConnector_ERROR_DURING_DATAMODEL_CREATION=Ein Fehler ist aufgetreten bei der Erstellung des Datenmodells für: %s\nBitte leeren Sie die Datenbank und versuchen es erneut.
+CdmStoreConnector_REASON=Grund:
+CdmStoreConnector_SCHEME_NOT_COMPATIBLE=Das Datenbankschema für die gewählte Datenquelle '%s' \n ist nicht kompatibel mit dieser Version des Editors. \n\n%s
+CdmStoreConnector_UPDATE_DATASOUREC_OR_CHOOSE_NEW_DATASOURCE=Bitte aktualisieren Sie die ausgewählte Datenquelle oder wählen Sie eine neue Datenquelle aus.
+CdmStoreConnector_UPDATE_EDITOR_OR_CHOOSE_COMPATIBLE_DATASOURCE=Bitte aktualisieren Sie den Taxonomic Editor (Hilfe->Suche nach Updates) oder wählen sie eine kompatible Datenquelle
public static String UriWithLabelElement_INVALID_URL;
public static String UriWithLabelElement_OPEN_EXTERNAL_BROWSER;
public static String UriWithLabelElement_URL_NOT_SAVED;
+ public static String CdmStoreConnector_AUTHENTICATING_USER;
+ public static String CdmStoreConnector_CHECK_IF_EDITOR_IS_COMPATIBLE;
+ public static String CdmStoreConnector_CHECK_IF_NON_EMPTY;
+ public static String CdmStoreConnector_CHECK_IF_REACHABLE;
+ public static String CdmStoreConnector_COMPATIBILITY_CHECK_FAILED;
+ public static String CdmStoreConnector_COULD_NOT_CONNECT_TO_CHOSEN_DATASOURCE;
+ public static String CdmStoreConnector_COULD_NOT_CREATE_DATAMODEL;
+ public static String CdmStoreConnector_CREATING_DATAMODEL;
+ public static String CdmStoreConnector_ERROR_DURING_DATAMODEL_CREATION;
+ public static String CdmStoreConnector_REASON;
+ public static String CdmStoreConnector_SCHEME_NOT_COMPATIBLE;
+ public static String CdmStoreConnector_UPDATE_DATASOUREC_OR_CHOOSE_NEW_DATASOURCE;
+ public static String CdmStoreConnector_UPDATE_EDITOR_OR_CHOOSE_COMPATIBLE_DATASOURCE;
static {
// initialize resource bundle
NLS.initializeMessages(BUNDLE_NAME, Messages.class);
import eu.etaxonomy.cdm.model.metadata.CdmMetaData;
import eu.etaxonomy.cdm.model.name.NomenclaturalStatusType;
import eu.etaxonomy.cdm.model.name.Rank;
+import eu.etaxonomy.taxeditor.Messages;
import eu.etaxonomy.taxeditor.model.CdmProgressMonitorAdapter;
import eu.etaxonomy.taxeditor.model.MessagingUtils;
import eu.etaxonomy.taxeditor.remoting.source.ICdmRemoteSource;
ICdmSource cdmSource,
DbSchemaValidation dbSchemaValidation,
Resource applicationContextBean) {
- super(String.format("Creating data model for %s", cdmSource));
+ super(String.format(Messages.CdmStoreConnector_CREATING_DATAMODEL, cdmSource));
this.display = display;
this.cdmSource = cdmSource;
this.dbSchemaValidation = dbSchemaValidation;
return Status.OK_STATUS;
} catch (Exception e) {
if(! causeIsCancelationExceptionRecursive(e)){
- MessagingUtils.errorDialog("Could not create data model", CdmStoreConnector.class, "An error occurred while trying to create "
- + "data model for data source: " + cdmSource.getName()+"\n Please clear the data base and retry. ", TaxeditorStorePlugin.PLUGIN_ID, e, true);
+ MessagingUtils.errorDialog(Messages.CdmStoreConnector_COULD_NOT_CREATE_DATAMODEL, CdmStoreConnector.class,
+ String.format(Messages.CdmStoreConnector_ERROR_DURING_DATAMODEL_CREATION, cdmSource.getName()), TaxeditorStorePlugin.PLUGIN_ID, e, true);
return Status.CANCEL_STATUS;
}
} finally {
if (!monitor.isCanceled()) {
CdmStore.setInstance(applicationController, cdmSource);
- monitor.subTask("Authenticating user");
+ monitor.subTask(Messages.CdmStoreConnector_AUTHENTICATING_USER);
display.syncExec(new Runnable() {
/*
* (non-Javadoc)
* @throws SQLException
*/
private void checkDbSchemaVersionCompatibility(IProgressMonitor monitor) {
- monitor.subTask("Checking if datasource is compatible with this editor.");
+ monitor.subTask(Messages.CdmStoreConnector_CHECK_IF_EDITOR_IS_COMPATIBLE);
String dbSchemaVersion;
String message = null;
// if the datasource version is greater than the taxeditor compatible version then the taxeditor needs to
// be updated else the datasource needs to be updated
if(compareVersion > 0) {
- message = "Please update the Taxonomic Editor (Help->Check for Updates) or choose a compatible datasource";
+ message = Messages.CdmStoreConnector_UPDATE_EDITOR_OR_CHOOSE_COMPATIBLE_DATASOURCE;
} else if (compareVersion < 0) {
- message = "Please update the chosen datasource or choose a new data source to connect to in the Datasource View.";
+ message = Messages.CdmStoreConnector_UPDATE_DATASOUREC_OR_CHOOSE_NEW_DATASOURCE;
}
}
monitor.worked(1);
// Show an error message
MessagingUtils
.messageDialog(
- "Datasource Compatibility Check failed",
+ Messages.CdmStoreConnector_COMPATIBILITY_CHECK_FAILED,
this,
- "The database schema for the chosen "
- + "datasource '"
- + cdmSource
- + "' \n is not compatible for this version of the taxonomic editor. \n\n"
- + message,
+ String.format(Messages.CdmStoreConnector_SCHEME_NOT_COMPATIBLE, cdmSource, message),
null);
monitor.setCanceled(true);
}
private void checkIsNonEmptyCdmDatabase(IProgressMonitor monitor) {
- monitor.subTask("Checking if datasource is a non empty CDM database.");
+ monitor.subTask(Messages.CdmStoreConnector_CHECK_IF_NON_EMPTY);
boolean isDbEmpty = false;
try {
isDbEmpty = cdmSource.isDbEmpty();
private void checkDatabaseReachable(IProgressMonitor monitor) {
try {
- monitor.subTask("Checking if datasource is reachable.");
+ monitor.subTask(Messages.CdmStoreConnector_CHECK_IF_REACHABLE);
cdmSource.checkConnection();
monitor.worked(1);
} catch (CdmSourceException e) {
- MessagingUtils.messageDialog("Could not connect to chosen datasource",
- this, "Reason: " + e.getMessage(), e);
+ MessagingUtils.messageDialog(Messages.CdmStoreConnector_COULD_NOT_CONNECT_TO_CHOSEN_DATASOURCE,
+ this, Messages.CdmStoreConnector_REASON + e.getMessage(), e);
monitor.setCanceled(true);
}
}