Revision 0420eb93
Added by Katja Luther over 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/Messages.java | ||
---|---|---|
585 | 585 |
public static String TaxonNodeWizardPage_SECUNDUM_REFERENCE; |
586 | 586 |
public static String TaxonNodeWizardPage_STATUS_NOTES; |
587 | 587 |
public static String TaxonNodeWizardPage_CLASSIFICATION; |
588 |
public static String TaxonNodeWizardPage_TAXON_NODE; |
|
589 |
public static String TaxonNodeWizardPage_TAXON_INFORMATION; |
|
590 |
public static String TaxonNodeWizardPage_TAXON_IS_PUBLISH; |
|
588 | 591 |
|
589 | 592 |
public static String TaxonomicEditorGeneralPreferences_background; |
590 | 593 |
public static String TaxonomicEditorGeneralPreferences_connect; |
... | ... | |
732 | 735 |
|
733 | 736 |
public static String DeleteConfiguration_descriptionFromDescriptiveDataSet_onlyRemove; |
734 | 737 |
|
738 |
public static String EnumCombo_Placement_status; |
|
739 |
|
|
740 |
public static String OriginalSourceAdvancedSection_advanced; |
|
741 |
|
|
742 |
|
|
743 |
|
|
744 |
|
|
745 |
|
|
746 |
|
|
747 |
|
|
735 | 748 |
static { |
736 | 749 |
// initialize resource bundle |
737 | 750 |
NLS.initializeMessages(BUNDLE_NAME, Messages.class); |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/messages.properties | ||
---|---|---|
285 | 285 |
TaxonNodeWizardPage_TAXON=Taxon |
286 | 286 |
TaxonNodeWizardPage_REUSE_EXISTING_TAXON=Reuse existing taxon |
287 | 287 |
TaxonNodeWizardPage_REUSE_EXISTING_NAME=Reuse existing name |
288 |
TaxonNodeWizardPage_SECUNDUM_REFERENCE=Secundum Reference
|
|
288 |
TaxonNodeWizardPage_SECUNDUM_REFERENCE=Secundum reference
|
|
289 | 289 |
TaxonNodeWizardPage_STATUS_NOTES=Status notes |
290 | 290 |
TaxonNodeWizardPage_CLASSIFICATION=Classification |
291 |
TaxonNodeWizardPage_TAXON_NODE=Taxon node |
|
292 |
TaxonNodeWizardPage_TAXON_INFORMATION=Taxon information |
|
293 |
TaxonNodeWizardPage_TAXON_IS_PUBLISH=Taxon is publish |
|
291 | 294 |
TaxonomicEditorGeneralPreferences_background=Run long running operations in background |
292 | 295 |
TaxonomicEditorGeneralPreferences_connect=Connect to last used datasource when launching |
293 | 296 |
TaxonRelationshipTypeMenuPreferences_configure=Configure taxon relationship types |
... | ... | |
595 | 598 |
StructuredDescriptionAggregationWizardPage_SELECT_SELECTED_TAXA_ONLY=Aggregate selected taxon/taxa only |
596 | 599 |
CommonNameLanguages_Title=Common Name Languages |
597 | 600 |
CommonNameVocabularyPreferencePage_description=Select the vocabularies for common name area selection. |
598 |
CommonNameLanguagePreferencePage_description=Choose the languages available for common names. |
|
601 |
CommonNameLanguagePreferencePage_description=Choose the languages available for common names. |
|
602 |
EnumCombo_Placement_status=Placement status |
|
603 |
OriginalSourceAdvancedSection_advanced=Advanced |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/messages_de.properties | ||
---|---|---|
287 | 287 |
TaxonNodeWizardPage_SECUNDUM_REFERENCE=Secundum Referenz |
288 | 288 |
TaxonNodeWizardPage_STATUS_NOTES=Status Annmerkungen |
289 | 289 |
TaxonNodeWizardPage_CLASSIFICATION=Klassifikation |
290 |
TaxonNodeWizardPage_TAXON_NODE=Taxonknoten |
|
291 |
TaxonNodeWizardPage_TAXON_INFORMATION=Taxon Information |
|
292 |
TaxonNodeWizardPage_TAXON_IS_PUBLISH=Taxon ist ?ffentlich |
|
293 |
|
|
290 | 294 |
TaxonomicEditorGeneralPreferences_background=Long Running Operations laufen im Hintergrund |
291 | 295 |
TaxonomicEditorGeneralPreferences_connect=Beim Starten mit der zuletzt verwendeten Datenquelle verbinden |
292 | 296 |
TaxonRelationshipTypeMenuPreferences_configure=Auswahl der zur Verf\u00FCgung stehenden Taxonrelationstypen |
... | ... | |
593 | 597 |
StructuredDescriptionAggregationWizardPage_SELECT_SELECTED_TAXA_ONLY=Aggregiere nur ausgew?hlte(s) Taxa/Taxon |
594 | 598 |
CommonNameLanguages_Title=Sprachen f?r Trivialnamen |
595 | 599 |
CommonNameVocabularyPreferencePage_description=W?hlen Sie die Vokabulare, f?r die Area-Auswahl bei Trivialnamen. |
596 |
CommonNameLanguagePreferencePage_description=W?hlen Sie die f?r Trivialnamen verf?gbaren Sprachen. |
|
600 |
CommonNameLanguagePreferencePage_description=W?hlen Sie die f?r Trivialnamen verf?gbaren Sprachen. |
|
601 |
|
|
602 |
EnumCombo_Placement_status=Platzierungsstatus |
|
603 |
OriginalSourceAdvancedSection_advanced=Erweitert |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/combo/EnumComboElement.java | ||
---|---|---|
32 | 32 |
import eu.etaxonomy.cdm.model.reference.ReferenceType; |
33 | 33 |
import eu.etaxonomy.cdm.model.taxon.TaxonNodeStatus; |
34 | 34 |
import eu.etaxonomy.cdm.model.term.IEnumTerm; |
35 |
import eu.etaxonomy.taxeditor.l10n.Messages; |
|
35 | 36 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
36 | 37 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
37 | 38 |
import eu.etaxonomy.taxeditor.ui.element.CdmPropertyChangeEvent; |
... | ... | |
225 | 226 |
} else if(enumType.equals(NomenclaturalCodeEdition.class)) { |
226 | 227 |
return "Code Edition"; |
227 | 228 |
}else if(enumType.equals(TaxonNodeStatus.class)) { |
228 |
return "Placement status";
|
|
229 |
return Messages.EnumCombo_Placement_status;
|
|
229 | 230 |
} |
230 | 231 |
return "No Label"; |
231 | 232 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/TaxonNodeDetailElement.java | ||
---|---|---|
122 | 122 |
TaxonNode entity, int style) { |
123 | 123 |
// taxon = entity.getTaxon(); |
124 | 124 |
Label taxonTitle = new Label(getLayoutComposite(), SWT.NULL); |
125 |
taxonTitle.setText("Taxon Information");
|
|
125 |
taxonTitle.setText(Messages.TaxonNodeWizardPage_TAXON_INFORMATION);
|
|
126 | 126 |
TableWrapData tableWrap = LayoutConstants.FILL_HORIZONTALLY(2, 2); |
127 | 127 |
tableWrap.valign = SWT.TOP; |
128 | 128 |
taxonTitle.setLayoutData(tableWrap); |
... | ... | |
150 | 150 |
EntitySelectionElement.DELETABLE, style, 100); |
151 | 151 |
|
152 | 152 |
checkbox_publish = formFactory.createCheckbox(formElement, |
153 |
"Taxon is published", true, style);
|
|
153 |
Messages.TaxonNodeWizardPage_TAXON_IS_PUBLISH, true, style);
|
|
154 | 154 |
|
155 | 155 |
checkbox_publish.setEnabled(isCreateNew()); |
156 | 156 |
Label seperator = new Label(getLayoutComposite(), SWT.HORIZONTAL | SWT.SEPARATOR); |
157 | 157 |
seperator.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 3)); |
158 | 158 |
Label nodeTitle = new Label(getLayoutComposite(), SWT.NULL); |
159 |
nodeTitle.setText("Taxon Node");
|
|
159 |
nodeTitle.setText(Messages.TaxonNodeWizardPage_TAXON_NODE);
|
|
160 | 160 |
nodeTitle.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1)); |
161 | 161 |
nodeTitle.setFont(FONT_BOLD); |
162 | 162 |
|
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/common/ExternalLinksElement.java | ||
---|---|---|
29 | 29 |
*/ |
30 | 30 |
public class ExternalLinksElement extends AbstractEntityCollectionElement<ExternalLink> implements ISelectableElement{ |
31 | 31 |
|
32 |
private final SelectionArbitrator selectionArbitrator;
|
|
32 |
private SelectionArbitrator selectionArbitrator; |
|
33 | 33 |
|
34 | 34 |
private UriWithLabelElement externalLinkUriText; |
35 | 35 |
private EnumComboElement<ExternalLinkType> combo_linkType; |
... | ... | |
47 | 47 |
public ExternalLinksElement(CdmFormFactory formFactory, AbstractFormSection section, ExternalLink entity, |
48 | 48 |
SelectionListener removeListener, int style) { |
49 | 49 |
super(formFactory, section, entity, removeListener, null, style); |
50 |
selectionArbitrator = formFactory.createSelectionArbitrator(this); |
|
50 |
if(formFactory.getSelectionProvider() != null){ |
|
51 |
selectionArbitrator = formFactory.createSelectionArbitrator(this); |
|
52 |
} |
|
53 |
|
|
51 | 54 |
} |
52 | 55 |
|
53 | 56 |
@Override |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/reference/OriginalSourceAdvancedSection.java | ||
---|---|---|
11 | 11 |
import org.eclipse.jface.viewers.ISelectionProvider; |
12 | 12 |
|
13 | 13 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
14 |
import eu.etaxonomy.cdm.model.reference.OriginalSourceBase; |
|
14 |
import eu.etaxonomy.cdm.model.common.ReferencedEntityBase; |
|
15 |
import eu.etaxonomy.taxeditor.l10n.Messages; |
|
15 | 16 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
16 | 17 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
17 | 18 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement; |
... | ... | |
21 | 22 |
* @author k.luther |
22 | 23 |
* @since Jul 1, 2020 |
23 | 24 |
*/ |
24 |
public class OriginalSourceAdvancedSection extends AbstractCdmDetailSection<OriginalSourceBase> {
|
|
25 |
public class OriginalSourceAdvancedSection extends AbstractCdmDetailSection<ReferencedEntityBase > {
|
|
25 | 26 |
|
26 | 27 |
/** |
27 | 28 |
* @param formFactory |
... | ... | |
38 | 39 |
} |
39 | 40 |
|
40 | 41 |
@Override |
41 |
protected AbstractCdmDetailElement<OriginalSourceBase> createCdmDetailElement(
|
|
42 |
AbstractCdmDetailSection<OriginalSourceBase> parentElement, int style) {
|
|
42 |
protected AbstractCdmDetailElement<ReferencedEntityBase > createCdmDetailElement(
|
|
43 |
AbstractCdmDetailSection<ReferencedEntityBase > parentElement, int style) {
|
|
43 | 44 |
|
44 | 45 |
return new AdvancedSourceElement(getFormFactory(), parentElement); |
45 | 46 |
} |
... | ... | |
47 | 48 |
@Override |
48 | 49 |
public String getHeading() { |
49 | 50 |
|
50 |
return "Advanced";
|
|
51 |
return Messages.OriginalSourceAdvancedSection_advanced;
|
|
51 | 52 |
} |
52 | 53 |
|
53 | 54 |
} |
Also available in: Unified diff
ref #9116: internationalization