Project

General

Profile

« Previous | Next » 

Revision 2016e6e8

Added by Patrick Plitzner almost 8 years ago

Fix i18n #5146

View differences:

eu.etaxonomy.taxeditor.store/OSGI-INF/l10n/messages_de.properties
88 88
RemotingLoginDialog_UPDATE_EDITOR=Bitte aktualisieren Sie den Taxonomic Editor (Hifle->Suche nach Updates) oder w?hlen Sie einen kompatiblen CDM-Server
89 89
RemotingLoginDialog_COULD_NOT_STOP_SERVER=Konte den internen CDM-Server auf Port %s nicht beenden. Bitte beenden sie ihn manuell.
90 90
RemotingLoginDialog_ERROR_GENERATING_CONFIG_FILE=Fehler beim Generieren der Config-Datei f?r den Server
91
RemotingLoginDialog_ERROR_STARTING_SERVER=Fehler beim Starten des internen Servers
92
RemotingLoginDialog_ERROR_STOPPING_SERVER=Fehler beim Beenden des internen Servers
91
RemotingLoginDialog_ERROR_STARTING_SERVER=Fehler beim Starten des internen CDM-Servers
92
RemotingLoginDialog_ERROR_STOPPING_SERVER=Fehler beim Beenden des internen CDM-Servers
93 93
RemotingLoginDialog_GENERATING_CONFIG_FILE=Generiere Config-Datei f?r Datenquellen f?r %s
94
RemotingLoginDialog_JOB_SERVER_LAUNCH=Starte internen Server
95
RemotingLoginDialog_STARTING_MGD_SERVER=Starte internen Server. Dies kann eine Weile dauern.
96
RemotingLoginDialog_TASK_LAUNCHING_SERVER=Starte internen Server
94
RemotingLoginDialog_JOB_SERVER_LAUNCH=Starte internen CDM-Server
95
RemotingLoginDialog_STARTING_MGD_SERVER=Starte internen CDM-Server. Dies kann eine Weile dauern.
96
RemotingLoginDialog_TASK_LAUNCHING_SERVER=Starte internen CDM-Server
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/RemotingLoginDialog.java
93 93

  
94 94
    private final Map<String, CdmServerInfo> csiiMap = new HashMap<String, CdmServerInfo>();
95 95

  
96
    private final static String STATUS_AVAILABLE = ""; //$NON-NLS-1$
97
    private final static String STATUS_NOT_AVAILABLE = ""; //$NON-NLS-1$
98
    private final static String STATUS_STARTED = ""; //$NON-NLS-1$
99
    private final static String STATUS_NOT_STARTED = ""; //$NON-NLS-1$
100
    private final static String STATUS_RETRIEVING = ""; //$NON-NLS-1$
101
    private final static String STATUS_CHECKING_AVAILABILITY = ""; //$NON-NLS-1$
102
    private final static String STATUS_NO_INSTANCES = ""; //$NON-NLS-1$
103
    private final static String STATUS_ERROR = ""; //$NON-NLS-1$
104
    private final static String STATUS_REMOTING_NOT_ACTIVATED = ""; //$NON-NLS-1$
105
    private final static String STATUS_NOT_COMPATIBLE = ""; //$NON-NLS-1$
106

  
107
    private final static String MESG_COMPATIBLE_EDITOR_OLD = ""; //$NON-NLS-1$
108
    private final static String MESG_COMPATIBLE_SERVER_OLD = ""; //$NON-NLS-1$
96
    private final static String STATUS_AVAILABLE = Messages.RemotingLoginDialog_STATUS_AVAILABLE;
97
    private final static String STATUS_NOT_AVAILABLE = Messages.RemotingLoginDialog_STATUS_NOT_AVAILABLE;
98
    private final static String STATUS_STARTED = Messages.RemotingLoginDialog_STATUS_STARTED;
99
    private final static String STATUS_NOT_STARTED = Messages.RemotingLoginDialog_STATUS_NOT_STARTED;
100
    private final static String STATUS_RETRIEVING = Messages.RemotingLoginDialog_STATUS_RETRIEVING;
101
    private final static String STATUS_CHECKING_AVAILABILITY = Messages.RemotingLoginDialog_STATUS_CHECKING;
102
    private final static String STATUS_NO_INSTANCES = Messages.RemotingLoginDialog_STATUS_NO_INSTANCES_FOUND;
103
    private final static String STATUS_ERROR = Messages.RemotingLoginDialog_STATUS_ERROR;
104
    private final static String STATUS_REMOTING_NOT_ACTIVATED = Messages.RemotingLoginDialog_STATUS_REMOTING_NOT_ACTIVATED;
105
    private final static String STATUS_NOT_COMPATIBLE = Messages.RemotingLoginDialog_STATUS_NOT_COMPATIBLE;
106

  
107
    private final static String MESG_COMPATIBLE_EDITOR_OLD = Messages.RemotingLoginDialog_UPDATE_EDITOR;
108
    private final static String MESG_COMPATIBLE_SERVER_OLD = Messages.RemotingLoginDialog_CHOOSE_COMPATIBLE_CDM_SERVER;
109 109

  
110 110
    private final static String STORE_PREFERENCES_NODE = "eu.etaxonomy.taxeditor.store"; //$NON-NLS-1$
111 111

  
......
117 117
    private final static String LAST_SERVER_KEY = "lastServerKey"; //$NON-NLS-1$
118 118
    private final static String LAST_INSTANCE_KEY = "lastInstanceKey"; //$NON-NLS-1$
119 119

  
120
    private final static String REFRESH_LABEL = ""; //$NON-NLS-1$
120
    private final static String REFRESH_LABEL = Messages.RemotingLoginDialog_LABEL_REFRESH;
121 121

  
122 122
    private Composite remotingComposite;
123 123
    private CdmServerInfo selectedCsii;
......
163 163
     */
164 164
    public RemotingLoginDialog(Shell parent, int style) {
165 165
        super(parent, style);
166
        setText(""); //$NON-NLS-1$
166
        setText(Messages.RemotingLoginDialog_LABEL_LOGIN);
167 167
    }
168 168

  
169 169
    public Object open(CdmRemoteSource source, boolean loadLoginPrefs, boolean autoConnect) {
......
219 219
        shlConnect = new Shell(getParent(), SWT.DIALOG_TRIM);
220 220
        shlConnect.setMinimumSize(new Point(MIN_WIDTH, MIN_HEIGHT));
221 221
        shlConnect.setSize(MIN_WIDTH, MIN_HEIGHT);
222
        shlConnect.setText(""); //$NON-NLS-1$
222
        shlConnect.setText(Messages.RemotingLoginDialog_LABEL_CONNECT);
223 223
        shlConnect.setLayout(new FillLayout(SWT.HORIZONTAL));
224 224

  
225 225
        remotingComposite = new Composite(shlConnect, SWT.NONE);
......
232 232
        cdmServerComposite.setLayout(new GridLayout(4, false));
233 233

  
234 234
        Label lblCdmServer = new Label(cdmServerComposite, SWT.NONE);
235
        lblCdmServer.setText(""); //$NON-NLS-1$
235
        lblCdmServer.setText(Messages.RemotingLoginDialog_LABEL_CDM_SERVER);
236 236
        lblCdmServer.setFont(SWTResourceManager.getFont(UBUNTU, 9, SWT.NORMAL));
237 237
        lblCdmServer.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
238 238

  
......
264 264
            }
265 265
        });
266 266
        btnCdmServerRefresh.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));
267
        btnCdmServerRefresh.setText(""); //$NON-NLS-1$
267
        btnCdmServerRefresh.setText(Messages.RemotingLoginDialog_LABEL_REFRESH);
268 268

  
269 269
        Label lblCdmInstance = new Label(cdmServerComposite, SWT.NONE);
270 270
        GridData gd_lblCdmInstance = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);
271 271
        gd_lblCdmInstance.heightHint = 30;
272 272
        lblCdmInstance.setLayoutData(gd_lblCdmInstance);
273
        lblCdmInstance.setText(""); //$NON-NLS-1$
273
        lblCdmInstance.setText(Messages.RemotingLoginDialog_LABEL_CDM_INSTANCE);
274 274
        lblCdmInstance.setFont(SWTResourceManager.getFont(UBUNTU, 9, SWT.NORMAL));
275 275

  
276 276
        comboCdmInstance = new Combo(cdmServerComposite, SWT.READ_ONLY);
......
303 303
        gd_btnCdmInstanceRefresh.widthHint = 110;
304 304
        gd_btnCdmInstanceRefresh.heightHint = 30;
305 305
        btnCdmInstanceRefresh.setLayoutData(gd_btnCdmInstanceRefresh);
306
        btnCdmInstanceRefresh.setText(""); //$NON-NLS-1$
306
        btnCdmInstanceRefresh.setText(Messages.RemotingLoginDialog_LABEL_REFRESH);
307 307

  
308 308
        loginComposite = new Composite(remotingComposite, SWT.NONE);
309 309
        GridData gd_loginComposite = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);
......
318 318
        GridData gd_lblLogin = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);
319 319
        gd_lblLogin.widthHint = 50;
320 320
        lblLogin.setLayoutData(gd_lblLogin);
321
        lblLogin.setText(""); //$NON-NLS-1$
321
        lblLogin.setText(Messages.RemotingLoginDialog_LABEL_LOGIN_COLON);
322 322
        lblLogin.setFont(SWTResourceManager.getFont(UBUNTU, 9, SWT.NORMAL));
323 323

  
324 324
        txtLogin = new Text(loginComposite, SWT.BORDER);
......
330 330

  
331 331
        lblPassword = new Label(loginComposite, SWT.CENTER);
332 332
        lblPassword.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
333
        lblPassword.setText(""); //$NON-NLS-1$
333
        lblPassword.setText(Messages.RemotingLoginDialog_LABEL_PASSWORD);
334 334
        lblPassword.setFont(SWTResourceManager.getFont(UBUNTU, 9, SWT.NORMAL));
335 335

  
336 336
        txtPassword = new Text(loginComposite, SWT.BORDER | SWT.PASSWORD);
......
353 353
                }
354 354
            }
355 355
        });
356
        btnConnect.setText(""); //$NON-NLS-1$
356
        btnConnect.setText(Messages.RemotingLoginDialog_LABEL_CONNECT);
357 357

  
358 358
        btnRememberMe = new Button(loginComposite, SWT.CHECK);
359 359
        btnRememberMe.setSelection(true);
360 360
        GridData gd_btnRememberMe = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);
361 361
        gd_btnRememberMe.widthHint = 107;
362 362
        btnRememberMe.setLayoutData(gd_btnRememberMe);
363
        btnRememberMe.setText(""); //$NON-NLS-1$
363
        btnRememberMe.setText(Messages.RemotingLoginDialog_LABEL_REMEMBER_ME);
364 364
        new Label(loginComposite, SWT.NONE);
365 365
        new Label(loginComposite, SWT.NONE);
366 366
        new Label(loginComposite, SWT.NONE);
......
399 399
            public void expansionStateChanging(ExpansionEvent e) {
400 400
            }
401 401
        });
402
        xpndblcmpstAdvanced.setText(""); //$NON-NLS-1$
402
        xpndblcmpstAdvanced.setText(Messages.RemotingLoginDialog_LABEL_ADVANCED);
403 403
        xpndblcmpstAdvanced.setExpanded(true);
404 404

  
405 405
        compAdvanced = new Composite(xpndblcmpstAdvanced, SWT.NONE);
......
409 409
        lblPort = new Label(compAdvanced, SWT.CENTER);
410 410
        lblPort.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
411 411
        lblPort.setSize(0, 0);
412
        lblPort.setText(""); //$NON-NLS-1$
412
        lblPort.setText(Messages.RemotingLoginDialog_LABEL_PORT);
413 413
        lblPort.setFont(SWTResourceManager.getFont(UBUNTU, 9, SWT.NORMAL));
414 414

  
415 415
        txtPort = new Text(compAdvanced, SWT.BORDER);
......
420 420

  
421 421
        lblServerVersion = new Label(compAdvanced, SWT.CENTER);
422 422
        lblServerVersion.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
423
        lblServerVersion.setText(""); //$NON-NLS-1$
423
        lblServerVersion.setText(Messages.RemotingLoginDialog_LABEL_SERVER_CDMLIB_VERSION);
424 424
        lblServerVersion.setFont(SWTResourceManager.getFont(UBUNTU, 9, SWT.NORMAL));
425 425

  
426 426
        txtServerVersion = new Text(compAdvanced, SWT.BORDER);
......
434 434
                stopManagedServer();
435 435
            }
436 436
        });
437
        btnStopServer.setText(""); //$NON-NLS-1$
437
        btnStopServer.setText(Messages.RemotingLoginDialog_LABEL_STOP_MANAGED_SERVER);
438 438

  
439 439
        lblEditorVersion = new Label(compAdvanced, SWT.CENTER);
440 440
        lblEditorVersion.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
441
        lblEditorVersion.setText(""); //$NON-NLS-1$
441
        lblEditorVersion.setText(Messages.RemotingLoginDialog_LABEL_EDITOR_CDMLIB_VERSION);
442 442
        lblEditorVersion.setFont(SWTResourceManager.getFont(UBUNTU, 9, SWT.NORMAL));
443 443

  
444 444
        txtEditorVersion = new Text(compAdvanced, SWT.BORDER);
......
449 449

  
450 450
        lblServerCDMVersion = new Label(compAdvanced, SWT.CENTER);
451 451
        lblServerCDMVersion.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
452
        lblServerCDMVersion.setText(""); //$NON-NLS-1$
452
        lblServerCDMVersion.setText(Messages.RemotingLoginDialog_LABEL_SERVER_CDM_VERSION);
453 453
        lblServerCDMVersion.setFont(SWTResourceManager.getFont(UBUNTU, 9, SWT.NORMAL));
454 454

  
455 455
        txtServerCDMVersion = new Text(compAdvanced, SWT.BORDER);
......
460 460

  
461 461
        lblEditorCDMVersion = new Label(compAdvanced, SWT.CENTER);
462 462
        lblEditorCDMVersion.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
463
        lblEditorCDMVersion.setText(""); //$NON-NLS-1$
463
        lblEditorCDMVersion.setText(Messages.RemotingLoginDialog_LABEL_EDITOR_CDM_VERSION);
464 464
        lblEditorCDMVersion.setFont(SWTResourceManager.getFont(UBUNTU, 9, SWT.NORMAL));
465 465

  
466 466
        txtEditorCDMVersion = new Text(compAdvanced, SWT.BORDER);
......
472 472

  
473 473

  
474 474
    private void populateCdmServerCombo() {
475
        Job job = new Job("") { //$NON-NLS-1$
475
        Job job = new Job(Messages.RemotingLoginDialog_RETRIEVE_SERVER_INSTANCES) {
476 476
            @Override
477 477
            protected IStatus run(IProgressMonitor monitor) {
478 478
                Display.getDefault().syncExec(new Runnable() {
......
536 536
    }
537 537

  
538 538
    private void updatePort() {
539
        txtPort.setText(""); //$NON-NLS-1$
539
        txtPort.setText("");
540 540
        if(selectedCsii != null) {
541 541
            int port = selectedCsii.getPort();
542 542
            if(port == CdmServerInfo.NULL_PORT) {
......
553 553
            port = Integer.valueOf(txtPort.getText());
554 554
        } catch (NumberFormatException nfe) {
555 555
            if(!CdmServerInfo.NULL_PORT_STRING.equals(txtPort.getText())) {
556
                setMessage(""); //$NON-NLS-1$
556
                setMessage(Messages.RemotingLoginDialog_MESSAGE_PORT_SHOULD_BE_INTEGER);
557 557
            }
558 558
        }
559 559
        return port;
......
573 573
            } else {
574 574
                txtCdmServerStatus.setText(STATUS_NOT_AVAILABLE);
575 575
                comboCdmInstance.removeAll();
576
                disableCdmInstanceControls("", ""); //$NON-NLS-1$ //$NON-NLS-2$
576
                disableCdmInstanceControls("", "");
577 577
            }
578 578
        }
579 579
        updatePort();
......
585 585
        comboCdmInstance.setEnabled(false);
586 586
        btnConnect.setEnabled(false);
587 587
        txtCdmInstanceStatus.setText(STATUS_RETRIEVING);
588
        txtCdmInstanceStatus.setToolTipText(""); //$NON-NLS-1$
588
        txtCdmInstanceStatus.setToolTipText("");
589 589

  
590
        serverJob = new Job("") { //$NON-NLS-1$
590
        serverJob = new Job(Messages.RemotingLoginDialog_RETRIEVE_SERVER_INSTANCES) {
591 591
            @Override
592 592
            protected IStatus run(IProgressMonitor monitor) {
593 593
                try {
......
929 929
    }
930 930

  
931 931
    private void emptyCredentials() {
932
        txtLogin.setText(""); //$NON-NLS-1$
933
        txtPassword.setText(""); //$NON-NLS-1$
932
        txtLogin.setText("");
933
        txtPassword.setText("");
934 934
    }
935 935

  
936 936
    private String getUsernamePrefKey() {
......
943 943

  
944 944
    private boolean validateLogin(ICdmRemoteSource remoteSource) {
945 945
        if(getUsername() == null || getUsername().isEmpty()) {
946
            setMessage(""); //$NON-NLS-1$
946
            setMessage(Messages.RemotingLoginDialog_LOGIN_CANNOT_BE_EMPTY);
947 947
            return false;
948 948
        }
949 949
        if(getPassword() == null || getPassword().isEmpty()) {
950
            setMessage(""); //$NON-NLS-1$
950
            setMessage(Messages.RemotingLoginDialog_PASSWORD_CANNOT_BE_EMPTY);
951 951
            return false;
952 952
        }
953 953

  
......
1081 1081
            public void run() {
1082 1082
                serverJob.cancel();
1083 1083

  
1084
                String title = ""; //$NON-NLS-1$
1084
                String title = Messages.RemotingLoginDialog_SERVER_LAUNCH_ERROR;
1085 1085
                String  message = t.getMessage();
1086 1086

  
1087 1087

  

Also available in: Unified diff