Project

General

Profile

« Previous | Next » 

Revision f9fbd38a

Added by Patrick Plitzner about 5 years ago

ref #6413 i18n

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/Messages.java
524 524
    public static String SearchDialogPreferences_3;
525 525
    public static String SearchDialogPreferences_4;
526 526
    public static String TypeDesignationPreferences_typeDesignationsToAllNames;
527
    public static String TypeDesignationSection_ADD_TYPE;
528
    public static String TypeDesignationSection_CREATE_DUPLICATE;
529
    public static String TypeDesignationSection_DUPLICATE_FAILED;
530
    public static String TypeDesignationSection_NO_TYPES_YET;
531
    public static String TypeDesignationSection_TYPE_DESIGNATIONS;
532

  
533

  
527 534
    public static String TaxonNodeWizardPage_edit;
528 535

  
529 536

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/messages.properties
47 47
DatabaseRepairPage_description=Update caches of selected types
48 48
DatabaseRepairPage_description_sortIndex=Update sort indices of selected trees
49 49
UIPreferences_expand=Expand sections when data are available in Details View. This might make the Editor slow.
50

  
50 51
UpdateHandler_CHECK_UPDATE_JOB=Check Update Job
51 52
UpdateHandler_INSTALL_JOB=Install Update Job
52 53
UpdateHandler_NO_UPDATE_MESSAGE=No updates for the current installation have been found.
......
464 465
ToggleableText_ToolTip_closed=Cache is created automatically from atomized data, cache protected against manual entries
465 466
ToggleableText_ToolTip_open=Cache can be edited manually, editing the atomized data has no effect on the cache (not recommended)
466 467
TypeDesignationPreferences_typeDesignationsToAllNames=Add type designations to all names in a homotypical group
468
TypeDesignationSection_ADD_TYPE=Add a type designation
469
TypeDesignationSection_CREATE_DUPLICATE=Create type duplicate
470
TypeDesignationSection_DUPLICATE_FAILED=Duplicating type failed
471
TypeDesignationSection_NO_TYPES_YET=No type designations yet.
472
TypeDesignationSection_TYPE_DESIGNATIONS=Type Designations
467 473

  
468 474
FeatureTreeDropAdapter_CHOOSE_VOC=Choose vocabulary for import
469 475
FeatureTreeDropAdapter_IMPORT_NOT_POSSIBLE=Import not possible
......
478 484
TermOrder_Title=Title
479 485
TermOrder_natural=Natural
480 486

  
481
ChecklistEditorGeneralPreference_Configure_area_order=Order of Areas
487
ChecklistEditorGeneralPreference_Configure_area_order=Order of Areas
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/messages_de.properties
465 465
ToggleableText_ToolTip_closed=Der Cache wird automatisch aus den atomisierten Daten erstellt und ist gegen manuelle Eingabe gesch?tzt
466 466
ToggleableText_ToolTip_open=Der Cache kann manuell bearbeitet werden, ?nderungen an den atomisierten Daten haben keinen Einflu? auf den Cache (nicht empfohlen)
467 467
TypeDesignationPreferences_typeDesignationsToAllNames=F?ge allen Namen einer Homotypischen Gruppe, Type Designations zu
468
TypeDesignationSection_ADD_TYPE=Typbestimmung hinzuf?gen
469
TypeDesignationSection_CREATE_DUPLICATE=Typdublette erzeugen
470
TypeDesignationSection_DUPLICATE_FAILED=Dubletten-Erzeugung fehlgeschlagen
471
TypeDesignationSection_NO_TYPES_YET=Noch keine Typbestimmungen vorhanden.
472
TypeDesignationSection_TYPE_DESIGNATIONS=Typbestimmungen
468 473

  
469 474
FeatureTreeDropAdapter_CHOOSE_VOC=Vokabular f?r den Import w?hlen
470 475
FeatureTreeDropAdapter_IMPORT_NOT_POSSIBLE=Import nicht m?glich
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/TypeDesignationSection.java
31 31
import eu.etaxonomy.cdm.model.name.TaxonName;
32 32
import eu.etaxonomy.cdm.model.name.TypeDesignationBase;
33 33
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
34
import eu.etaxonomy.taxeditor.l10n.Messages;
34 35
import eu.etaxonomy.taxeditor.model.ImageResources;
35 36
import eu.etaxonomy.taxeditor.model.MessagingUtils;
36 37
import eu.etaxonomy.taxeditor.preference.IPreferenceKeys;
......
53 54

  
54 55
	public TypeDesignationSection(CdmFormFactory formFactory, ConversationHolder conversation,
55 56
			ICdmFormElement parentElement, int style) {
56
		super(formFactory, conversation, parentElement, "Type Designations", style);
57
		super(formFactory, conversation, parentElement, Messages.TypeDesignationSection_TYPE_DESIGNATIONS, style);
57 58
	}
58 59

  
59 60
	@Override
......
63 64
	            || getEntity().getTypeDesignations().stream().noneMatch(designation->designation instanceof SpecimenTypeDesignation)){
64 65
	        return;
65 66
	    }
66
	    Action addAction = new Action("Create type duplicate", IAction.AS_PUSH_BUTTON){
67
	    Action addAction = new Action(Messages.TypeDesignationSection_CREATE_DUPLICATE, IAction.AS_PUSH_BUTTON){
67 68
            @Override
68 69
            public void run() {
69 70
                CloneTypeWizard wizard = new CloneTypeWizard(getEntity());
......
78 79
                            wizard.getCollection(),
79 80
                            wizard.getTypeStatus());
80 81
                    if(!result.isOk()){
81
                        MessagingUtils.warningDialog("Duplicating type failed", this, result.getExceptions().toString());
82
                        MessagingUtils.warningDialog(Messages.TypeDesignationSection_DUPLICATE_FAILED, this, result.getExceptions().toString());
82 83
                    }
83 84
                    StoreUtil.reflowParentScrolledForm(getLayoutComposite(), true);
84 85
                    internalUpdateSection(true);
......
92 93
                return ImageResources.getImage(ImageResources.COPY_ICON).getImageData();
93 94
            }
94 95
        });
95
        addAction.setToolTipText("Create type duplicate");
96
        addAction.setToolTipText(Messages.TypeDesignationSection_CREATE_DUPLICATE);
96 97

  
97 98
        toolBarManager.add(addAction);
98 99
	}
......
126 127

  
127 128
	@Override
128 129
	public String getEmptyString() {
129
		return "No type designations yet.";
130
		return Messages.TypeDesignationSection_NO_TYPES_YET;
130 131
	}
131 132

  
132 133
	@Override
133 134
	protected String getTooltipString() {
134
		return "Add a type designation";
135
		return Messages.TypeDesignationSection_ADD_TYPE;
135 136
	}
136 137

  
137 138
	@Override

Also available in: Unified diff