Changeset 2373 in josm


Ignore:
Timestamp:
2009-11-01T14:33:59+01:00 (15 years ago)
Author:
stoecker
Message:

fixed i18n error introduced in my last checkin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MainMenu.java

    r2372 r2373  
    33package org.openstreetmap.josm.gui;
    44
     5import static org.openstreetmap.josm.tools.I18n.marktr;
    56import static org.openstreetmap.josm.tools.I18n.tr;
    67
     
    158159    public final JosmAction statusreport = new ShowStatusReportAction();
    159160
    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"));
    165166    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"));
    167168    public final int defaultMenuPos = 5;
    168169
     
    186187
    187188    public JMenu addMenu(String name, int mnemonicKey, int position, String relativeHelpTopic) {
    188         JMenu menu = new JMenu(name);
     189        JMenu menu = new JMenu(tr(name));
    189190        Shortcut.registerShortcut("menu:" + name, tr("Menu: {0}", tr(name)), mnemonicKey,
    190191                Shortcut.GROUP_MNEMONIC).setMnemonic(menu);
     
    308309
    309310        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"));
    311312            add(audioMenu, audioPlayPause);
    312313            add(audioMenu, audioNext);
Note: See TracChangeset for help on using the changeset viewer.