Ignore:
Timestamp:
2007-12-26T22:30:30+01:00 (17 years ago)
Author:
christofd
Message:

fixed i18n for error message for duplicate buttons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/SurveyorComponent.java

    r4277 r6159  
    55package at.dallermassl.josm.plugin.surveyor;
    66
     7import static org.openstreetmap.josm.tools.I18n.tr;
    78import java.awt.BorderLayout;
    89import java.awt.Dimension;
     
    103104
    104105    public void addButton(ButtonDescription description) {
    105         if(hotKeys.contains(description.getHotkey())) {
    106             // <FIXXME date="23.06.2007" author="cdaller">
    107             // TODO if i18n is done
    108             //JOptionPane.showMessageDialog(Main.parent, tr("Duplicate hotkey for button '{0}' - button will be ignored!",description.getLabel()));
    109             JOptionPane.showMessageDialog(Main.parent, "Duplicate hotkey for button '" + description.getLabel()
    110                 + "' - button will be ignored!");
    111             // </FIXXME>
     106        if(description.getHotkey() != "" &&  hotKeys.contains(description.getHotkey())) {
     107            JOptionPane.showMessageDialog(Main.parent, tr("Duplicate hotkey for button '{0}' - button will be ignored!",description.getLabel()));
    112108        } else {
    113109            if(rows == 0 && columns == 0) {
Note: See TracChangeset for help on using the changeset viewer.