Project

General

Profile

Revision 02fbce4a

ID02fbce4ad643ada7f29cda1f45f2b86296ab67a4
Parent 8b0c4c63
Child 2dd59866

Added by Patrick Plitzner about 3 years ago

ref #6694 l10n of FeatureTreeEditor

View differences:

eu.etaxonomy.taxeditor.store/OSGI-INF/l10n/bundle.properties
177 177
wizard.name.22 = CDM light (csv)
178 178
wizard.name.23 = Excel Distribution Data Update
179 179
wizard.name.24 = RIS Reference
180
command.label.25 = Import Preferences
180
command.label.25 = Import Preferences
181
partdescriptor.label.featureTreeEditor = Feature Tree Editor
eu.etaxonomy.taxeditor.store/OSGI-INF/l10n/bundle_de.properties
178 178
wizard.name.22 = CDM light (csv)
179 179
wizard.name.23 = Excel Verbreitungsdaten Update
180 180
wizard.name.24 = RIS Referenzen
181
command.label.25 = Import Pr?ferenzen
181
command.label.25 = Import Pr?ferenzen
182
partdescriptor.label.featureTreeEditor = Merkmalsbaum-Editor
eu.etaxonomy.taxeditor.store/fragment.e4xmi
4 4
  <imports xsi:type="commands:Command" xmi:id="_LlbAMEq2EeeN-dEYnw7m3g" elementId="org.eclipse.ui.file.save"/>
5 5
  <fragments xsi:type="fragment:StringModelFragment" xmi:id="_xVa1wCXXEeex9MwMOgUeWw" featurename="descriptors" parentElementId="xpath:/">
6 6
    <elements xsi:type="basic:PartDescriptor" xmi:id="_2xmxoCXXEeex9MwMOgUeWw" elementId="eu.etaxonomy.taxeditor.view.sessions.SessionsViewPart" label="%view.name.SESSIONS" closeable="true" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.view.sessions.SessionsViewPart"/>
7
    <elements xsi:type="basic:PartDescriptor" xmi:id="_J-3UEEqgEeeN-dEYnw7m3g" elementId="eu.etaxonomy.taxeditor.featuretree.e4.FeatureTreeEditor" label="Feature Tree Editor" closeable="true" dirtyable="true" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.featuretree.e4.FeatureTreeEditor">
7
    <elements xsi:type="basic:PartDescriptor" xmi:id="_J-3UEEqgEeeN-dEYnw7m3g" elementId="eu.etaxonomy.taxeditor.featuretree.e4.FeatureTreeEditor" label="%partdescriptor.label.featureTreeEditor" closeable="true" dirtyable="true" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.featuretree.e4.FeatureTreeEditor">
8 8
      <handlers xmi:id="_H_c_EEq2EeeN-dEYnw7m3g" elementId="eu.etaxonomy.taxeditor.featuretree.handler.SaveHandler" contributionURI="bundleclass://eu.etaxonomy.taxeditor.workbench/eu.etaxonomy.taxeditor.workbench.SaveHandler" command="_LlbAMEq2EeeN-dEYnw7m3g"/>
9 9
    </elements>
10 10
  </fragments>
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/DefinedTermMenu.java
29 29
import org.eclipse.ui.menus.CommandContributionItemParameter;
30 30

  
31 31
import eu.etaxonomy.cdm.model.common.TermType;
32
import eu.etaxonomy.taxeditor.l10n.Messages;
32 33
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
33 34
import eu.etaxonomy.taxeditor.store.CdmStore;
34 35

  
......
49 50
        Collection<IContributionItem> items = new ArrayList<IContributionItem>();
50 51
        if(CdmStore.isActive()){
51 52
            MenuManager dtMenuManager =
52
                    new MenuManager("Term Editor","eu.etaxonomy.taxeditor.store.definedTermEditorMenu");
53
                    new MenuManager(Messages.DefinedTermMenu_TERM_EDITOR,"eu.etaxonomy.taxeditor.store.definedTermEditorMenu"); //$NON-NLS-2$
53 54

  
54 55
            dtMenuManager.setVisible(true);
55 56

  
......
60 61
            dtMenuManager.add(new Separator());
61 62

  
62 63
            MenuManager otherMenuManager =
63
                    new MenuManager("Others","eu.etaxonomy.taxeditor.store.term.other.menu");
64
                    new MenuManager(Messages.DefinedTermMenu_OTHERS,"eu.etaxonomy.taxeditor.store.term.other.menu"); //$NON-NLS-2$
64 65
            otherMenuManager.setVisible(true);
65 66
            dtMenuManager.add(otherMenuManager);
66 67
            //FIXME E4: This should be removed during e4 migration. dynamic menu should be declared in model fragment
......
99 100
			}
100 101
			// term type has children, so create sub menu
101 102
			MenuManager dtMenuManager =
102
					new MenuManager(termType.getMessage(PreferencesUtil.getGlobalLanguage()),"eu.etaxonomy.taxeditor.store." + termType.getKey() + "Menu");
103
					new MenuManager(termType.getMessage(PreferencesUtil.getGlobalLanguage()),"eu.etaxonomy.taxeditor.store." + termType.getKey() + Messages.DefinedTermMenu_MENU); //$NON-NLS-1$
103 104
			dtMenuManager.setVisible(true);
104 105
			dtMenuManager.add(createDefaultMenuItem(termType));
105 106

  
......
122 123
	private CommandContributionItem createMenuItem(TermType termType) {
123 124

  
124 125
		Map<String, String> params = new HashMap<String, String>();
125
		params.put("eu.etaxonomy.taxeditor.store.openDefinedTermEditor.termTypeUuid",
126
		params.put("eu.etaxonomy.taxeditor.store.openDefinedTermEditor.termTypeUuid", //$NON-NLS-1$
126 127
				termType.getUuid().toString());
127 128

  
128 129
        CommandContributionItemParameter p = new CommandContributionItemParameter(
129 130
                PlatformUI.getWorkbench(),
130
                "",
131
                "eu.etaxonomy.taxeditor.store.openDefinedTermEditor",
131
                "", //$NON-NLS-1$
132
                "eu.etaxonomy.taxeditor.store.openDefinedTermEditor", //$NON-NLS-1$
132 133
                params,
133 134
                null,
134 135
                null,
135 136
                null,
136 137
                termType.getMessage(),
137
                "",
138
                "",
138
                "", //$NON-NLS-1$
139
                "", //$NON-NLS-1$
139 140
                SWT.PUSH,
140
                "",
141
                "", //$NON-NLS-1$
141 142
                true);
142 143

  
143 144
        CommandContributionItem item = new CommandContributionItem(p);
......
148 149
	private CommandContributionItem createFeatureTreeMenuItem() {
149 150

  
150 151
		Map<String, String> params = new HashMap<String, String>();
151
		params.put("eu.etaxonomy.taxeditor.workbench.commandparameter.partName",
152
				"eu.etaxonomy.taxeditor.featuretree.e4.FeatureTreeEditor");
152
		params.put("eu.etaxonomy.taxeditor.workbench.commandparameter.partName", //$NON-NLS-1$
153
				"eu.etaxonomy.taxeditor.featuretree.e4.FeatureTreeEditor"); //$NON-NLS-1$
153 154

  
154 155
        CommandContributionItemParameter p = new CommandContributionItemParameter(
155 156
                PlatformUI.getWorkbench(),
156
                "eu.etaxonomy.taxeditor.featuretree.commandContributionItemParameter",
157
                "eu.etaxonomy.taxeditor.command.openPart",
157
                "eu.etaxonomy.taxeditor.featuretree.commandContributionItemParameter", //$NON-NLS-1$
158
                "eu.etaxonomy.taxeditor.command.openPart", //$NON-NLS-1$
158 159
                params,
159 160
                null,
160 161
                null,
161 162
                null,
162
                "Feature Tree",
163
                "",
164
                "",
163
                Messages.DefinedTermMenu_FEATURE_TREE,
164
                "", //$NON-NLS-1$
165
                "", //$NON-NLS-1$
165 166
                SWT.PUSH,
166
                "",
167
                "", //$NON-NLS-1$
167 168
                true);
168 169

  
169 170

  
......
176 177
	private CommandContributionItem createDefaultMenuItem(TermType termType) {
177 178

  
178 179
	    Map<String, String> params = new HashMap<String, String>();
179
	    params.put("eu.etaxonomy.taxeditor.store.openDefinedTermEditor.termTypeUuid",
180
	    params.put("eu.etaxonomy.taxeditor.store.openDefinedTermEditor.termTypeUuid", //$NON-NLS-1$
180 181
	            termType.getUuid().toString());
181 182

  
182 183
	    CommandContributionItemParameter p = new CommandContributionItemParameter(
183 184
	            PlatformUI.getWorkbench(),
184
	            "",
185
	            "eu.etaxonomy.taxeditor.store.openDefinedTermEditor",
185
	            "", //$NON-NLS-1$
186
	            "eu.etaxonomy.taxeditor.store.openDefinedTermEditor", //$NON-NLS-1$
186 187
	            params,
187 188
	            null,
188 189
	            null,
189 190
	            null,
190
	            "Other " + termType.getMessage() + "s",
191
	            "",
192
	            "",
191
	            String.format(Messages.DefinedTermMenu_OTHER_S, termType.getMessage()),
192
	            "", //$NON-NLS-1$
193
	            "", //$NON-NLS-1$
193 194
	            SWT.PUSH,
194
	            "",
195
	            "", //$NON-NLS-1$
195 196
	            true);
196 197

  
197 198

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/FeatureTreeEditorComposite.java
27 27
import eu.etaxonomy.taxeditor.featuretree.FeatureNodeTransfer;
28 28
import eu.etaxonomy.taxeditor.featuretree.FeatureTreeContentProvider;
29 29
import eu.etaxonomy.taxeditor.featuretree.FeatureTreeLabelProvider;
30
import eu.etaxonomy.taxeditor.l10n.Messages;
30 31
import eu.etaxonomy.taxeditor.model.ImageResources;
31 32

  
32 33
/**
......
56 57

  
57 58
        label_title = new Label(composite_treeTitle, SWT.NULL);
58 59
        label_title.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
59
        label_title.setText("Feature Tree");
60
        label_title.setText(Messages.FeatureTreeEditorComposite_FEATURE_TREE);
60 61

  
61 62
        text_title = new Text(composite_treeTitle, SWT.BORDER);
62 63
        text_title.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
63 64

  
64 65
        btnOpenFeatureTree = new Button(this, SWT.NONE);
65 66
        btnOpenFeatureTree.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));
66
        btnOpenFeatureTree.setToolTipText("Open Tree");
67
        btnOpenFeatureTree.setToolTipText(Messages.FeatureTreeEditorComposite_OPEN_TREE);
67 68
        btnOpenFeatureTree.setImage(ImageResources.getImage(ImageResources.BROWSE_ICON));
68 69

  
69 70
        viewer = new TreeViewer(this);
......
80 81

  
81 82
        button_add = new Button(composite_buttons, SWT.PUSH);
82 83
        button_add.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));
83
        button_add.setToolTipText("Add a feature to this feature tree.");
84
        button_add.setToolTipText(Messages.FeatureTreeEditorComposite_ADD_FEATURE);
84 85
        button_add.setImage(ImageResources.getImage(ImageResources.ADD_EDIT));
85 86
        button_remove = new Button(composite_buttons, SWT.PUSH);
86 87
        button_remove.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));
87
        button_remove.setToolTipText("Remove a feature from this feature tree.");
88
        button_remove.setToolTipText(Messages.FeatureTreeEditorComposite_REMOVE_FEATURE);
88 89
        button_remove.setImage(ImageResources.getImage(ImageResources.TRASH_ICON));
89 90
    }
90 91

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/Messages.java
88 88

  
89 89

  
90 90
    public static String ConfiguratorComposite_CONFIGURE;
91
	public static String DetailsViewPart_VIEWER_NAME;
91
	public static String DefinedTermMenu_FEATURE_TREE;
92

  
93

  
94
    public static String DefinedTermMenu_MENU;
95

  
96

  
97
    public static String DefinedTermMenu_OTHER_S;
98

  
99

  
100
    public static String DefinedTermMenu_OTHERS;
101

  
102

  
103
    public static String DefinedTermMenu_TERM_EDITOR;
104

  
105

  
106
    public static String DetailsViewPart_VIEWER_NAME;
92 107
    public static String EditPasswordElement_PLEASE_CREATE_OR_SAVE_USER;
93 108
    public static String EditPasswordElement_USERNAME_DOES_NOT_EXIST;
94 109
    public static String PasswordWizard_COULD_NOT_CHANGE_PWD;
......
203 218

  
204 219
	
205 220

  
221
    public static String FeatureTreeEditorComposite_ADD_FEATURE;
222

  
223

  
224
    public static String FeatureTreeEditorComposite_FEATURE_TREE;
225

  
226

  
227
    public static String FeatureTreeEditorComposite_OPEN_TREE;
228

  
229

  
230
    public static String FeatureTreeEditorComposite_REMOVE_FEATURE;
231

  
232

  
233

  
234

  
206 235
    static {
207 236
        // initialize resource bundle
208 237
        NLS.initializeMessages(BUNDLE_NAME, Messages.class);
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/messages.properties
127 127
SearchManager_LONG_SEARCH_WARNING=The current search will return %s objects. This will take a long time and/or might render the editor unusable. Please consider refining your search.\nSearch anyway?
128 128

  
129 129
SupplementalDataViewPart_VIEWER_NAME=Supplemental Data
130
DefinedTermMenu_FEATURE_TREE=Feature Tree
131
DefinedTermMenu_MENU=Menu
132
DefinedTermMenu_OTHER_S=Other %ss
133
DefinedTermMenu_OTHERS=Others
134
DefinedTermMenu_TERM_EDITOR=Term Editor
130 135
DetailsViewPart_VIEWER_NAME=Details
131 136

  
132 137
AuthenticatedUserBar_LOGGED_IN_AS=Logged in as: %s         
......
183 188
ImportFromFileAndChooseVocIdWizardOage_AreaVoc_toolTip=Please choose a vocabulary for the used areas.
184 189
ExcelDistributionUpdateWizard_ConfiguratorWizard_label=Configure Excel distribution update
185 190
AbstractImportWizard_ConfigurationLabel=Configure the Import
191
FeatureTreeEditorComposite_ADD_FEATURE=Add a feature to this feature tree.
192
FeatureTreeEditorComposite_FEATURE_TREE=Feature Tree
193
FeatureTreeEditorComposite_OPEN_TREE=Open Tree
194
FeatureTreeEditorComposite_REMOVE_FEATURE=Remove a feature from this feature tree.
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/messages_de.properties
127 127
SearchManager_LONG_SEARCH_WARNING=Die aktuelle Suche wird %s Objekte laden. Dies kann einige Zeit dauern und den Editor w?hrenddessen unbedienbar machen. Bitte erstellen sie eine detailliertere Suche.\nTrotzdem suchen?
128 128

  
129 129
SupplementalDataViewPart_VIEWER_NAME=Zusatzdaten
130
DefinedTermMenu_FEATURE_TREE=Merkmalsbaum
131
DefinedTermMenu_MENU=Men?
132
DefinedTermMenu_OTHER_S=Weitere %ss
133
DefinedTermMenu_OTHERS=Weitere
134
DefinedTermMenu_TERM_EDITOR=Term-Editor
130 135
DetailsViewPart_VIEWER_NAME=Details
131 136

  
132 137
AuthenticatedUserBar_LOGGED_IN_AS=Angemeldet als: %s         
......
183 188
ImportFromFileAndChooseVocIdWizardOage_AreaVoc_toolTip=Bitte w?hlen Sie ein Vokabular f?r die genutzten Areas aus.
184 189
ExcelDistributionUpdateWizard_ConfiguratorWizard_label=Konfiguration des Excel Distribution Updates
185 190
AbstractImportWizard_ConfigurationLabel=Konfiguration des Imports
191
FeatureTreeEditorComposite_ADD_FEATURE=Merkmal zum Merkmalsbaum hinzuf?gen
192
FeatureTreeEditorComposite_FEATURE_TREE=Merkmalsbaum
193
FeatureTreeEditorComposite_OPEN_TREE=Merkmalsbaum ?ffnen
194
FeatureTreeEditorComposite_REMOVE_FEATURE=Merkmal vom Merkmalsbaum entfernen

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)