Project

General

Profile

Revision 6a5433c1

ID6a5433c16107f9cb71c682b7b80a42e0744d3a4e
Parent 3feda385
Child 81202bbf

Added by Patrick Plitzner over 4 years ago

ref #4611 Restructure string externalization for taxeditor.navigation

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

View differences:

eu.etaxonomy.taxeditor.navigation/OSGI-INF/l10n/messages.properties
1
SearchBar_0=Use "*" for wildcard searching
2
SearchBar_1=Search
3
SearchBar_2=Could not execute search
4
SearchBar_3=Please type at least one character
5
SearchBar_4=Error opening search result.
6
SearchBar_6=Taxa
7
SearchBar_7=Synonyms
8
SearchBar_8=Names (without taxa)
9
SearchBar_9=Common Names
eu.etaxonomy.taxeditor.navigation/OSGI-INF/l10n/messages_de.properties
1
SearchBar_0=Benutze "*" f\u00FCr Platzhalter-Suche
2
SearchBar_1=Suche
3
SearchBar_2=Suche konnte nicht ausgef\u00FChrt werden
4
SearchBar_3=Bitte geben Sie mindestens einen Buchstaben ein
5
SearchBar_4=Fehler beim f\u00fcffnen des Suchergebnisses
6
SearchBar_6=Taxa
7
SearchBar_7=Synonyme
8
SearchBar_8=Namen (ohne Taxa)
9
SearchBar_9=Umgangsprachliche Namen
eu.etaxonomy.taxeditor.navigation/build.properties
9 9
               p2.inf,\
10 10
               OSGI-INF/l10n/bundle.properties,\
11 11
               OSGI-INF/l10n/bundle_de.properties,\
12
               OSGI-INF/l10n/messages.properties,\
13
               OSGI-INF/l10n/messages_de.properties
12
               src/main/java/eu/etaxonomy/taxeditor/navigation/l10n/messages.properties,\
13
               src/main/java/eu/etaxonomy/taxeditor/navigation/l10n/messages_de.properties
14 14
               
15 15
               
16 16

  
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/l10n/Messages.java
1
/**
2
 * Copyright (C) 2014 EDIT
3
 * European Distributed Institute of Taxonomy
4
 * http://www.e-taxonomy.eu
5
 *
6
 * The contents of this file are subject to the Mozilla Public License Version 1.1
7
 * See LICENSE.TXT at the top of this package for the full license terms.
8
 */
9
package eu.etaxonomy.taxeditor.navigation.l10n;
10

  
11
import org.eclipse.osgi.util.NLS;
12

  
13
/**
14
 * @author d.schild
15
 * @date 18.06.2014
16
 *
17
 */
18
public class Messages extends NLS {
19
    private static final String BUNDLE_NAME = "eu.etaxonomy.taxeditor.navigation.l10n.messages"; //$NON-NLS-1$
20
    public static String SearchBar_0;
21
    public static String SearchBar_1;
22
    public static String SearchBar_2;
23
    public static String SearchBar_3;
24
    public static String SearchBar_4;
25
    public static String SearchBar_6;
26
    public static String SearchBar_7;
27
    public static String SearchBar_8;
28
    public static String SearchBar_9;
29

  
30
    static {
31
        // initialize resource bundle
32
        NLS.initializeMessages(BUNDLE_NAME, Messages.class);
33
    }
34

  
35
    private Messages() {
36
    }
37
}
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/l10n/messages.properties
1
SearchBar_0=Use "*" for wildcard searching
2
SearchBar_1=Search
3
SearchBar_2=Could not execute search
4
SearchBar_3=Please type at least one character
5
SearchBar_4=Error opening search result.
6
SearchBar_6=Taxa
7
SearchBar_7=Synonyms
8
SearchBar_8=Names (without taxa)
9
SearchBar_9=Common Names
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/l10n/messages_de.properties
1
SearchBar_0=Benutze "*" f\u00FCr Platzhalter-Suche
2
SearchBar_1=Suche
3
SearchBar_2=Suche konnte nicht ausgef\u00FChrt werden
4
SearchBar_3=Bitte geben Sie mindestens einen Buchstaben ein
5
SearchBar_4=Fehler beim f\u00fcffnen des Suchergebnisses
6
SearchBar_6=Taxa
7
SearchBar_7=Synonyme
8
SearchBar_8=Namen (ohne Taxa)
9
SearchBar_9=Umgangsprachliche Namen
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/search/Messages.java
1
/**
2
 * Copyright (C) 2014 EDIT
3
 * European Distributed Institute of Taxonomy
4
 * http://www.e-taxonomy.eu
5
 *
6
 * The contents of this file are subject to the Mozilla Public License Version 1.1
7
 * See LICENSE.TXT at the top of this package for the full license terms.
8
 */
9
package eu.etaxonomy.taxeditor.navigation.search;
10

  
11
import org.eclipse.osgi.util.NLS;
12

  
13
/**
14
 * @author d.schild
15
 * @date 18.06.2014
16
 *
17
 */
18
public class Messages extends NLS {
19
    private static final String BUNDLE_NAME = "OSGI-INF/l10n/messages"; //$NON-NLS-1$
20
    public static String SearchBar_0;
21
    public static String SearchBar_1;
22
    public static String SearchBar_2;
23
    public static String SearchBar_3;
24
    public static String SearchBar_4;
25
    public static String SearchBar_6;
26
    public static String SearchBar_7;
27
    public static String SearchBar_8;
28
    public static String SearchBar_9;
29

  
30
    static {
31
        // initialize resource bundle
32
        NLS.initializeMessages(BUNDLE_NAME, Messages.class);
33
    }
34

  
35
    private Messages() {
36
    }
37
}
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/search/SearchBar.java
40 40
import eu.etaxonomy.taxeditor.model.IContextListener;
41 41
import eu.etaxonomy.taxeditor.model.MessagingUtils;
42 42
import eu.etaxonomy.taxeditor.navigation.internal.TaxeditorNavigationPlugin;
43
import eu.etaxonomy.taxeditor.navigation.l10n.Messages;
43 44
import eu.etaxonomy.taxeditor.preference.IPreferenceKeys;
44 45
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
45 46
import eu.etaxonomy.taxeditor.preference.Resources;

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)