Project

General

Profile

« Previous | Next » 

Revision 3e3975f3

Added by Patrick Plitzner about 7 years ago

ref #4611 Restructure string externalization for taxeditor.bulkeditor

  • created l10n package and moved Messages.java and the messages.properties files there

View differences:

eu.etaxonomy.taxeditor.bulkeditor/OSGI-INF/l10n/messages.properties
1
BulkEditorInputType_0=Persons and Teams
2
BulkEditorInputType_1=References
3
BulkEditorInputType_2=Names
4
BulkEditorInputType_3=Name Relationships
5
BulkEditorInputType_4=Specimen and Observations
6
BulkEditorInputType_5=Users
7
BulkEditorInputType_6=Groups
8
BulkEditorInputType_7=Taxa
9
BulkEditorInputType_8=Media
10

  
11
USER_CREATOR_user_exists_title=The user already exists
12
USER_CREATOR_user_exists=The user already exists in database
eu.etaxonomy.taxeditor.bulkeditor/OSGI-INF/l10n/messages_de.properties
1
BulkEditorInputType_0=Personen und Teams 
2
BulkEditorInputType_1=Referenzen
3
BulkEditorInputType_2=Namen
4
BulkEditorInputType_3=Namensbeziehungen
5
BulkEditorInputType_4=Belege und Beobachtungen
6
BulkEditorInputType_5=Nutzer
7
BulkEditorInputType_6=Nutzergruppen
8
BulkEditorInputType_7=Taxa
9
BulkEditorInputType_8=Medien
10

  
11
USER_CREATOR_user_exists_title=Der Benutzer existiert bereits
12
USER_CREATOR_user_exists=Der Benutzer existiert bereits in der Datenbank.
eu.etaxonomy.taxeditor.bulkeditor/build.properties
7 7
               p2.inf,\
8 8
               OSGI-INF/l10n/bundle.properties,\
9 9
               OSGI-INF/l10n/bundle_de.properties,\
10
               OSGI-INF/l10n/messages.properties,\
11
               OSGI-INF/l10n/messages_de.properties
10
               src/main/java/eu/etaxonomy/taxeditor/l10n/messages.properties,\
11
               src/main/java/eu/etaxonomy/taxeditor/l10n/messages_de.properties
12 12
               
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/BulkEditorInputType.java
29 29
import eu.etaxonomy.cdm.model.reference.Reference;
30 30
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
31 31
import eu.etaxonomy.taxeditor.bulkeditor.IBulkEditorConstants;
32
import eu.etaxonomy.taxeditor.l10n.Messages;
32 33

  
33 34
public enum BulkEditorInputType {
34 35
	AGENT(Messages.BulkEditorInputType_0, AgentEditorInput.ID),
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/Messages.java
1
package eu.etaxonomy.taxeditor.bulkeditor.input;
2

  
3
import org.eclipse.osgi.util.NLS;
4

  
5
public class Messages extends NLS {
6
	private static final String BUNDLE_NAME = "OSGI-INF/l10n/messages"; //$NON-NLS-1$
7
    public static String USER_CREATOR_user_exists_title;
8
    public static String USER_CREATOR_user_exists;
9
	public static String BulkEditorInputType_0;
10
	public static String BulkEditorInputType_1;
11
	public static String BulkEditorInputType_2;
12
	public static String BulkEditorInputType_3;
13
	public static String BulkEditorInputType_4;
14
	public static String BulkEditorInputType_5;
15
	public static String BulkEditorInputType_6;
16
	public static String BulkEditorInputType_7;
17
	public static String BulkEditorInputType_8;
18
	static {
19
		// initialize resource bundle
20
		NLS.initializeMessages(BUNDLE_NAME, Messages.class);
21
	}
22

  
23
	private Messages() {
24
	}
25
}
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/entitycreator/UserCreator.java
19 19
import eu.etaxonomy.cdm.model.common.User;
20 20
import eu.etaxonomy.cdm.persistence.query.MatchMode;
21 21
import eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreator;
22
import eu.etaxonomy.taxeditor.bulkeditor.input.Messages;
22
import eu.etaxonomy.taxeditor.l10n.Messages;
23 23
import eu.etaxonomy.taxeditor.model.MessagingUtils;
24 24
import eu.etaxonomy.taxeditor.store.CdmStore;
25 25

  
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/l10n/Messages.java
1
package eu.etaxonomy.taxeditor.l10n;
2

  
3
import org.eclipse.osgi.util.NLS;
4

  
5
public class Messages extends NLS {
6
    private static final String BUNDLE_NAME = "eu.etaxonomy.taxeditor.l10n.messages"; //$NON-NLS-1$
7
    public static String USER_CREATOR_user_exists_title;
8
    public static String USER_CREATOR_user_exists;
9
	public static String BulkEditorInputType_0;
10
	public static String BulkEditorInputType_1;
11
	public static String BulkEditorInputType_2;
12
	public static String BulkEditorInputType_3;
13
	public static String BulkEditorInputType_4;
14
	public static String BulkEditorInputType_5;
15
	public static String BulkEditorInputType_6;
16
	public static String BulkEditorInputType_7;
17
	public static String BulkEditorInputType_8;
18
	static {
19
		// initialize resource bundle
20
		NLS.initializeMessages(BUNDLE_NAME, Messages.class);
21
	}
22

  
23
	private Messages() {
24
	}
25
}
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/l10n/messages.properties
1
BulkEditorInputType_0=Persons and Teams
2
BulkEditorInputType_1=References
3
BulkEditorInputType_2=Names
4
BulkEditorInputType_3=Name Relationships
5
BulkEditorInputType_4=Specimen and Observations
6
BulkEditorInputType_5=Users
7
BulkEditorInputType_6=Groups
8
BulkEditorInputType_7=Taxa
9
BulkEditorInputType_8=Media
10

  
11
USER_CREATOR_user_exists_title=The user already exists
12
USER_CREATOR_user_exists=The user already exists in database
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/l10n/messages_de.properties
1
BulkEditorInputType_0=Personen und Teams 
2
BulkEditorInputType_1=Referenzen
3
BulkEditorInputType_2=Namen
4
BulkEditorInputType_3=Namensbeziehungen
5
BulkEditorInputType_4=Belege und Beobachtungen
6
BulkEditorInputType_5=Nutzer
7
BulkEditorInputType_6=Nutzergruppen
8
BulkEditorInputType_7=Taxa
9
BulkEditorInputType_8=Medien
10

  
11
USER_CREATOR_user_exists_title=Der Benutzer existiert bereits
12
USER_CREATOR_user_exists=Der Benutzer existiert bereits in der Datenbank.

Also available in: Unified diff