Changeset 2373 in josm
- Timestamp:
- 2009-11-01T14:33:59+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainMenu.java
r2372 r2373 3 3 package org.openstreetmap.josm.gui; 4 4 5 import static org.openstreetmap.josm.tools.I18n.marktr; 5 6 import static org.openstreetmap.josm.tools.I18n.tr; 6 7 … … 158 159 public final JosmAction statusreport = new ShowStatusReportAction(); 159 160 160 public final JMenu fileMenu = addMenu( tr("File"), KeyEvent.VK_F, 0, ht("/Menu/File"));161 public final JMenu editMenu = addMenu( tr("Edit"), KeyEvent.VK_E, 1, ht("/Menu/Edit"));162 public final JMenu viewMenu = addMenu( tr("View"), KeyEvent.VK_V, 2, ht("/Menu/View"));163 public final JMenu toolsMenu = addMenu( tr("Tools"), KeyEvent.VK_T, 3, ht("/Menu/Tools"));164 public final JMenu presetsMenu = addMenu( tr("Presets"), KeyEvent.VK_P, 4, ht("/Menu/Presets"));161 public final JMenu fileMenu = addMenu(marktr("File"), KeyEvent.VK_F, 0, ht("/Menu/File")); 162 public final JMenu editMenu = addMenu(marktr("Edit"), KeyEvent.VK_E, 1, ht("/Menu/Edit")); 163 public final JMenu viewMenu = addMenu(marktr("View"), KeyEvent.VK_V, 2, ht("/Menu/View")); 164 public final JMenu toolsMenu = addMenu(marktr("Tools"), KeyEvent.VK_T, 3, ht("/Menu/Tools")); 165 public final JMenu presetsMenu = addMenu(marktr("Presets"), KeyEvent.VK_P, 4, ht("/Menu/Presets")); 165 166 public JMenu audioMenu = null; 166 public final JMenu helpMenu = addMenu( tr("Help"), KeyEvent.VK_H, 5, ht("/Menu/Help"));167 public final JMenu helpMenu = addMenu(marktr("Help"), KeyEvent.VK_H, 5, ht("/Menu/Help")); 167 168 public final int defaultMenuPos = 5; 168 169 … … 186 187 187 188 public JMenu addMenu(String name, int mnemonicKey, int position, String relativeHelpTopic) { 188 JMenu menu = new JMenu( name);189 JMenu menu = new JMenu(tr(name)); 189 190 Shortcut.registerShortcut("menu:" + name, tr("Menu: {0}", tr(name)), mnemonicKey, 190 191 Shortcut.GROUP_MNEMONIC).setMnemonic(menu); … … 308 309 309 310 if (!Main.pref.getBoolean("audio.menuinvisible", false)) { 310 audioMenu = addMenu( tr("Audio"), KeyEvent.VK_A, 5, ht("/Menu/Audio"));311 audioMenu = addMenu(marktr("Audio"), KeyEvent.VK_A, 5, ht("/Menu/Audio")); 311 312 add(audioMenu, audioPlayPause); 312 313 add(audioMenu, audioNext);
Note:
See TracChangeset
for help on using the changeset viewer.