Project

General

Profile

« Previous | Next » 

Revision f90b8808

Added by Katja Luther over 6 years ago

minor changes in l10n files and ExportToFileWizardPage

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/wizard/NameDetailsViewComposite.java
83 83
       isSimpleDetailsViewActivated= config.isSimpleDetailsViewActivated();
84 84
       final Button activateCheckButton = new Button(this, SWT.CHECK);
85 85
       activateCheckButton.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1));
86
       activateCheckButton.setText("Show only a simple name details view");
86
       activateCheckButton.setText(Messages.NameDetailsViewConfiguration_activateSimpleDetailsView);
87 87
       activateCheckButton.setSelection(isSimpleDetailsViewActivated);
88 88
       activateCheckButton.addSelectionListener(new SelectionAdapter(){
89 89
       @Override
......
107 107

  
108 108
       final Button showTaxon = new Button(child, SWT.CHECK);
109 109
       isShowTaxon = config.isTaxonSectionActivated();
110
       showTaxon.setText("Show taxon of the name");
110
       showTaxon.setText(Messages.NameDetailsViewComposite_Show_Taxon);
111 111
       showTaxon.setSelection(isShowTaxon);
112 112
       showTaxon.addSelectionListener(new SelectionAdapter(){
113 113
            @Override
......
119 119

  
120 120
       final Button showLsid = new Button(child, SWT.CHECK);
121 121
       isShowLSID = config.isLSIDActivated();
122
       showLsid.setText("Show Lsid of the name");
122
       showLsid.setText(Messages.NameDetailsViewComposite_Show_LSID);
123 123
       showLsid.setSelection(isShowLSID);
124 124
       showLsid.addSelectionListener(new SelectionAdapter(){
125 125
            @Override
......
131 131

  
132 132
       final Button showNomenclaturalCode = new Button(child, SWT.CHECK);
133 133
       isShowNomenclaturalCode = config.isNomenclaturalCodeActived();
134
       showNomenclaturalCode.setText("Show the nomenclatural code");
134
       showNomenclaturalCode.setText(Messages.NameDetailsViewComposite_Show_NomenclaturalCode);
135 135
       showNomenclaturalCode.setSelection(isShowNomenclaturalCode);
136 136
       showNomenclaturalCode.addSelectionListener(new SelectionAdapter(){
137 137
            @Override
......
143 143

  
144 144
       final Button showNameCache = new Button(child, SWT.CHECK);
145 145
       isShowNameCache= config.isNameCacheActivated();
146
       showNameCache.setText("Show name cache of the name (only the scientific name without the author and year)");
146

  
147
       showNameCache.setText(Messages.NameDetailsViewComposite_Show_NameCache);
147 148
       showNameCache.setSelection(isShowNomenclaturalCode);
148 149
       showNameCache.addSelectionListener(new SelectionAdapter(){
149 150
            @Override
......
154 155
        });
155 156
       final Button showAppendedPhrase = new Button(child, SWT.CHECK);
156 157
       isShowAppendedPhrase= config.isAppendedPhraseActivated();
157
       showAppendedPhrase.setText("Show appended phrase");
158
       showAppendedPhrase.setText(Messages.NameDetailsViewComposite_Show_AppendedPhrase);
158 159
       showAppendedPhrase.setSelection(isShowAppendedPhrase);
159 160
       showAppendedPhrase.addSelectionListener(new SelectionAdapter(){
160 161
            @Override
......
166 167

  
167 168
       final Button showRank = new Button(child, SWT.CHECK);
168 169
       isShowRank = config.isRankActivated();
169
       showRank.setText("Show rank of the name");
170
       showRank.setText(Messages.NameDetailsViewComposite_Show_Rank);
170 171
       showRank.setSelection(isShowRank);
171 172
       showRank.addSelectionListener(new SelectionAdapter(){
172 173
            @Override
......
176 177
        });
177 178
       final Button showEpithets = new Button(child, SWT.CHECK);
178 179
       isShowEpithets = config.isAtomisedEpithetsActivated();
179
       showEpithets.setText("Show atomised epithets");
180
       showEpithets.setText(Messages.NameDetailsViewComposite_Show_AtomisedEpithets);
180 181
       showEpithets.setSelection(isShowEpithets);
181 182
       showEpithets.addSelectionListener(new SelectionAdapter(){
182 183
            @Override
......
186 187
        });
187 188
       final Button showAuthorshipCache = new Button(child, SWT.CHECK);
188 189
       isShowAuthorshipCache= config.isAuthorCacheActivated();
189
       showAuthorshipCache.setText("Show authorship cache");
190
       showAuthorshipCache.setText(Messages.NameDetailsViewComposite_Show_AuthorCache);
190 191
       showAuthorshipCache.setSelection(isShowAuthorshipCache);
191 192
       showAuthorshipCache.addSelectionListener(new SelectionAdapter(){
192 193
            @Override
......
197 198

  
198 199
       final Button showAuthorship = new Button(child, SWT.CHECK);
199 200
       isShowAuthorship =config.isAuthorshipSectionActivated();
200
       showAuthorship.setText("Show authorship section");
201
       showAuthorship.setText(Messages.NameDetailsViewComposite_Show_Author);
201 202
       showAuthorship.setSelection(isShowAuthorship);
202 203
       showAuthorship.addSelectionListener(new SelectionAdapter(){
203 204
            @Override
......
208 209

  
209 210
       final Button showNomenclaturalRef = new Button(child, SWT.CHECK);
210 211
       isShowNomenclaturalRef = config.isNomenclaturalReferenceSectionActivated();
211
       showNomenclaturalRef.setText("Show nomenclatural reference section");
212
       showNomenclaturalRef.setText(Messages.NameDetailsViewComposite_Show_NomenclaturalReference);
212 213
       showNomenclaturalRef.setSelection(isShowNomenclaturalRef);
213 214
       showNomenclaturalRef.addSelectionListener(new SelectionAdapter(){
214 215
            @Override
......
219 220

  
220 221
       final Button showNomenclaturalStatus = new Button(child, SWT.CHECK);
221 222
       isShowNomenclaturalStatus = config.isNomenclaturalStatusSectionActivated();
222
       showNomenclaturalStatus.setText("Show nomenclatural status section");
223
       showNomenclaturalStatus.setText(Messages.NameDetailsViewComposite_Show_NomenclaturalStatus);
223 224
       showNomenclaturalStatus.setSelection(isShowNomenclaturalStatus);
224 225
       showNomenclaturalStatus.addSelectionListener(new SelectionAdapter(){
225 226
            @Override
......
230 231

  
231 232
       final Button showProtologue = new Button(child, SWT.CHECK);
232 233
       isShowProtologue  = config.isProtologueActivated();
233
       showProtologue.setText("Show protologue section");
234
       showProtologue.setText(Messages.NameDetailsViewComposite_Show_Protologue);
234 235
       showProtologue.setSelection(isShowProtologue);
235 236
       showProtologue.addSelectionListener(new SelectionAdapter(){
236 237
            @Override
......
241 242

  
242 243
       final Button showTypeDesignation = new Button(child, SWT.CHECK);
243 244
       isShowTypeDesignation = config.isTypeDesignationSectionActivated();
244
       showTypeDesignation.setText("Show name type designation section");
245
       showTypeDesignation.setText(Messages.NameDetailsViewComposite_Show_TypeDesignation);
245 246
       showTypeDesignation.setSelection(isShowTypeDesignation);
246 247
       showTypeDesignation.addSelectionListener(new SelectionAdapter(){
247 248
            @Override
......
253 254

  
254 255
       final Button showNameRelationship = new Button(child, SWT.CHECK);
255 256
       isShowNameRelationship = config.isNameRelationsSectionActivated();
256
       showNameRelationship.setText("Show name relationship section");
257
       showNameRelationship.setText(Messages.NameDetailsViewComposite_Show_Namerelationships);
257 258
       showNameRelationship.setSelection(isShowNameRelationship);
258 259
       showNameRelationship.addSelectionListener(new SelectionAdapter(){
259 260
            @Override
......
264 265

  
265 266
       final Button showHybrid = new Button(child, SWT.CHECK);
266 267
       isShowHybrid = config.isHybridActivated();
267
       showHybrid.setText("Show hybrid section");
268
       showHybrid.setText(Messages.NameDetailsViewComposite_Show_Hybrid);
268 269
       showHybrid.setSelection(isShowHybrid);
269 270
       showHybrid.addSelectionListener(new SelectionAdapter(){
270 271
            @Override
......
274 275
        });
275 276
       final Button showNameApprobiation = new Button(child, SWT.CHECK);
276 277
       isShowNameApprobiation = config.isNameApprobiationActivated();
277
       showNameApprobiation.setText("Show name approbiation (for bacterial names)");
278
       showNameApprobiation.setText(Messages.NameDetailsViewComposite_Show_NameApprobiation);
278 279
       showNameApprobiation.setSelection(isShowNameApprobiation);
279 280
       showNameApprobiation.addSelectionListener(new SelectionAdapter(){
280 281
            @Override
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/ExportToFileDestinationWizardPage.java
107 107
    private List<Classification> classifications;
108 108

  
109 109
    private Classification selectedClassification;
110

  
110 111
    private Label classificationLabel;
111 112

  
112 113
    private ExportConfiguratorBase configurator;
......
257 258

  
258 259

  
259 260
		if(csvExport || csvPrintExport || outputModelExport|| csvNameExport || dwcaExport){
261

  
262
//		    Label comboBoxLabel = new Label(composite, SWT.NONE);
263
//		    comboBoxLabel.setText("Classification");
264
			Composite selectNodeOrClassification = new Composite(composite, SWT.NONE);
265
			GridLayout grid = new GridLayout();
266
            grid.numColumns = 1;
267
            selectNodeOrClassification.setLayout(grid);
260 268
			if ((outputModelExport || dwcaExport)&& !configurator.getTaxonNodeFilter().getSubtreeFilter().isEmpty()){
261
				Composite selectNodeOrClassification = new Composite(composite, SWT.NONE);
262
				GridLayout grid = new GridLayout();
263
				grid.numColumns = 1;
264
				selectNodeOrClassification.setLayout(grid);
265 269
				checkUseSelectedtaxonNode= new Button(selectNodeOrClassification,  SWT.RADIO);
266 270
				String taxonStr = "";
267 271
				node = CdmApplicationState.getCurrentAppConfig().getTaxonNodeService().load(configurator.getTaxonNodeFilter().getSubtreeFilter().get(0).getUuid());
......
276 280
		                GridData data = (GridData)  classificationSelectionCombo.getLayoutData();
277 281
		                data.exclude = b.getSelection();
278 282
		                classificationSelectionCombo.setVisible(!data.exclude);
279
		                classificationLabel.setVisible(!data.exclude);
283

  
280 284
		            	}
281 285
		        	});
282 286
				  checkUseSelectedtaxonNode.setSelection(true);
......
289 293
		                   GridData data = (GridData)  classificationSelectionCombo.getLayoutData();
290 294
		                   data.exclude = b.getSelection();
291 295
		                   classificationSelectionCombo.setVisible(data.exclude);
292
		                   classificationLabel.setVisible(data.exclude);
296

  
293 297
		                  }
294 298
				  	});
295 299
			}
296 300
			if (node!= null){
297 301
				selectedClassification = node.getClassification();
298 302
			}
299
			createClassificationSelectionCombo(composite);
303
			createClassificationSelectionCombo(selectNodeOrClassification);
304

  
305

  
300 306

  
301
			classificationSelectionCombo.setLayoutData(new GridData(SWT.FILL, SWT.FILL,
302
			                true, false, 2, 1));
303 307
			if (checkUseSelectedtaxonNode != null){
304 308

  
305 309
				if (checkUseSelectedtaxonNode.getSelection()){
306 310
					 classificationSelectionCombo.setVisible(false);
307
	                 classificationLabel.setVisible(false);
311

  
308 312
				}
313
			}else{
314
			    classificationSelectionCombo.setVisible(true);
315
			    classificationSelectionCombo.setLayoutData(new GridData(SWT.FILL, SWT.FILL,
316
                      true, false, 2, 1));
309 317
			}
310 318

  
311 319
		}
......
391 399

  
392 400
	private void createClassificationSelectionCombo(Composite parent){
393 401

  
394
		Composite classificationSelection = new Composite(parent, SWT.NULL);
395
		classificationSelection.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 2, 1));
396

  
397
		GridLayout layout = new GridLayout();
398
		classificationSelection.setLayout(layout);
399

  
400
		classificationLabel = new Label(classificationSelection, SWT.NULL);
401
		// TODO not working is not really true but leave it here to remind everyone that this is under construction
402
		classificationLabel.setText("Export complete classification");
402
//		Composite classificationSelection = new Composite(parent, SWT.NULL);
403
//		classificationSelection.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 1, 1));
403 404

  
404
		classificationSelectionCombo = new Combo(classificationSelection, SWT.BORDER | SWT.READ_ONLY);
405
		classificationSelectionCombo.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, true, 2,1));
405
//		GridLayout layout = new GridLayout();
406
//		classificationSelection.setLayout(layout);
407
		GridData gridData = new GridData();
408
		gridData = new GridData(GridData.BEGINNING, GridData.CENTER, true, false);
409
		gridData.horizontalIndent = 5;
410
//		classificationSelection.setLayoutData(gridData);
406 411

  
412
		classificationSelectionCombo = new Combo(parent, SWT.BORDER| SWT.READ_ONLY);
413
		classificationSelectionCombo.setLayoutData(gridData);
407 414
		for(Classification tree : classifications){
408 415
			classificationSelectionCombo.add(tree.getName().getText(), classifications.indexOf(tree));
409 416

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/Messages.java
228 228
    public static String AbstractImportWizard_ConfigurationLabel;
229 229

  
230 230

  
231
	
231

  
232 232

  
233 233
    public static String FeatureTreeEditorComposite_ADD_FEATURE;
234 234

  
......
266 266
	public static String NonViralNameDetails_descriptionDeleteOfCultivarNameParts;
267 267

  
268 268

  
269
	
269
    public static String NameDetailsViewComposite_Show_TypeDesignation;
270
    public static String NameDetailsViewComposite_Show_Namerelationships;
271
    public static String NameDetailsViewComposite_Show_Hybrid;
272
    public static String NameDetailsViewComposite_Show_NameApprobiation;
273
    public static String NameDetailsViewComposite_Show_Taxon;
274
    public static String NameDetailsViewComposite_Show_LSID;
275
    public static String NameDetailsViewComposite_Show_NomenclaturalCode;
276
    public static String NameDetailsViewComposite_Show_NameCache;
277
    public static String NameDetailsViewComposite_Show_AppendedPhrase;
278
    public static String NameDetailsViewComposite_Show_Rank;
279
    public static String NameDetailsViewComposite_Show_AtomisedEpithets;
280
    public static String NameDetailsViewComposite_Show_AuthorCache;
281
    public static String NameDetailsViewComposite_Show_Author;
282
    public static String NameDetailsViewComposite_Show_NomenclaturalReference;
283
    public static String NameDetailsViewComposite_Show_NomenclaturalStatus;
284
    public static String NameDetailsViewComposite_Show_Protologue;
285

  
286
    public static String NameDetailsViewConfiguration_activateSimpleDetailsView;
287
    public static String NameDetailsViewConfiguration_useLocalSettings;
288

  
289

  
290

  
291

  
292

  
293

  
294

  
295

  
296

  
297

  
298

  
299

  
300

  
270 301

  
271 302

  
272
	
273 303

  
274 304

  
275 305

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/messages.properties
208 208
NonViralNameDetails_confirmDeleteOfFungiNameParts=The fungi information anamorph will be lost
209 209
NonViralNameDetails_descriptionDeleteOfFungiNameParts=If you click Ok, the anamorph flag is removed and the nomenclatural code is changed.
210 210
NonViralNameDetails_confirmDeleteOfCultivarNameParts=The cultivar name needs to be removed
211
NonViralNameDetails_descriptionDeleteOfCultivarNameParts=If you click Ok, the cultivar name is removed and the nomenclatural code is changed
211
NonViralNameDetails_descriptionDeleteOfCultivarNameParts=If you click Ok, the cultivar name is removed and the nomenclatural code is changed
212

  
213
NameDetailsViewComposite_Show_TypeDesignation=Name type designation section
214
NameDetailsViewComposite_Show_Namerelationships=Name relationship section
215
NameDetailsViewComposite_Show_Hybrid=Hybrid section
216
NameDetailsViewComposite_Show_NameApprobiation=Name approbiation (for bacterial names)
217
NameDetailsViewComposite_Show_Taxon=Taxon of the name
218
NameDetailsViewComposite_Show_LSID=Lsid of the name
219
NameDetailsViewComposite_Show_NomenclaturalCode=Nomenclatural code
220
NameDetailsViewComposite_Show_NameCache=NameCache of the name (only the scientific name without the author and year)
221
NameDetailsViewComposite_Show_AppendedPhrase=Appended phrase
222
NameDetailsViewComposite_Show_Rank=Rank of the name
223
NameDetailsViewComposite_Show_AtomisedEpithets=Atomised epithets
224
NameDetailsViewComposite_Show_AuthorCache=Authorship cache
225
NameDetailsViewComposite_Show_Author=Whole Authorship section
226
NameDetailsViewComposite_Show_NomenclaturalReference=Nomenclatural reference section
227
NameDetailsViewComposite_Show_NomenclaturalStatus=Nomenclatural status section
228
NameDetailsViewComposite_Show_Protologue=Protologue section
229

  
230
NameDetailsViewConfiguration_activateSimpleDetailsView=Show only a simple name details view with the following elements:
231
NameDetailsViewConfiguration_useLocalSettings=Use local settings for display of name details
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/messages_de.properties
208 208
NonViralNameDetails_confirmDeleteOfFungiNameParts=Die Information, ob der Pilz anamorph ist, muss gel?scht werden
209 209
NonViralNameDetails_descriptionDeleteOfFungiNameParts=Best?tigen Sie, wenn Sie die Information, ob der Pilz anamorph ist, l?schen und den Nomenklatorischen Code ?ndern wollen.
210 210
NonViralNameDetails_confirmDeleteOfCultivarNameParts=Der Cultivar Name muss gel?scht werden
211
NonViralNameDetails_descriptionDeleteOfCultivarNameParts=Best?tigen Sie, wenn Sie den Cultivar Name l?schen und den Nomenklatorischen Code ?ndern wollen.
211
NonViralNameDetails_descriptionDeleteOfCultivarNameParts=Best?tigen Sie, wenn Sie den Cultivar Name l?schen und den Nomenklatorischen Code ?ndern wollen.
212

  
213
NameDetailsViewComposite_Show_TypeDesignation=Type Designations
214
NameDetailsViewComposite_Show_Namerelationships=Namensrelationen
215
NameDetailsViewComposite_Show_Hybrid=Hybride
216
NameDetailsViewComposite_Show_NameApprobiation=Namens Approbation (f?r Bakterien)
217
NameDetailsViewComposite_Show_Taxon=Taxon
218
NameDetailsViewComposite_Show_LSID=Lsid
219
NameDetailsViewComposite_Show_NomenclaturalCode=Nomenclatorischer Code
220
NameDetailsViewComposite_Show_NameCache=Cache des Namens (nur der wissenschaftliche Name ohne Autor und Jahr)
221
NameDetailsViewComposite_Show_AppendedPhrase=Appended phrase
222
NameDetailsViewComposite_Show_Rank=Rang
223
NameDetailsViewComposite_Show_AtomisedEpithets=Atomisierte Epithete
224
NameDetailsViewComposite_Show_AuthorCache=Autoren Cache
225
NameDetailsViewComposite_Show_Author=Alle Autoreninformationen
226
NameDetailsViewComposite_Show_NomenclaturalReference=Nomenklatorische Referenz
227
NameDetailsViewComposite_Show_NomenclaturalStatus=Nomenklatorischer Status
228
NameDetailsViewComposite_Show_Protologue=Protologue
229

  
230
NameDetailsViewConfiguration_activateSimpleDetailsView=Zeige nur einen vereinfachten Details view mit folgenden ELementen:
231
NameDetailsViewConfiguration_useLocalSettings=Verwende die lokalen Eigenschaften f?r die Darstellung der Details

Also available in: Unified diff