Changeset 19366 in osm for applications


Ignore:
Timestamp:
2010-01-10T14:18:41+01:00 (15 years ago)
Author:
stoecker
Message:

i18n fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/OsbDialog.java

    r19282 r19366  
    9797    private JTabbedPane tabbedPane = new JTabbedPane();
    9898    private boolean queuePanelVisible = false;
    99    
     99
    100100    private boolean buttonLabels = Main.pref.getBoolean(ConfigKeys.OSB_BUTTON_LABELS);
    101101
     
    118118        bugList.setCellRenderer(new OsbBugListCellRenderer());
    119119        bugListPanel.add(new JScrollPane(bugList), BorderLayout.CENTER);
    120        
     120
    121121        // create dialog buttons
    122122        GridLayout layout = buttonLabels ? new GridLayout(3, 2) : new GridLayout(1, 5);
     
    152152            toggleConnectionMode.doClick();
    153153        }
    154        
    155154
    156155        AddCommentAction addCommentAction = new AddCommentAction(this);
     
    174173        buttonPanel.add(addComment);
    175174        buttonPanel.add(closeIssue);
    176        
     175
    177176        queuePanel = new JPanel(new BorderLayout());
    178177        queuePanel.setName(tr("Queue"));
     
    187186                try {
    188187                    ActionQueue.getInstance().processQueue();
    189    
     188
    190189                    // refresh, if the api is enabled
    191190                    if(!Main.pref.getBoolean(ConfigKeys.OSB_API_DISABLED)) {
     
    226225            lastNode = listItem.getNode();
    227226        }
    228        
     227
    229228        // create a new list model
    230229        bugListModel = new DefaultListModel();
     
    237236        }
    238237        bugList.setModel(bugListModel);
    239        
     238
    240239        // restore the last selection
    241240        if(lastNode != null) {
     
    377376        super.showDialog();
    378377    }
    379    
     378
    380379    public void showQueuePanel() {
    381380        if(!queuePanelVisible) {
     
    389388        }
    390389    }
    391    
     390
    392391    public void hideQueuePanel() {
    393392        if(queuePanelVisible) {
     
    400399        }
    401400    }
    402    
     401
    403402    public Node getSelectedNode() {
    404403        return ((OsbListItem)bugList.getSelectedValue()).getNode();
    405404    }
    406    
     405
    407406    public void setSelectedNode(Node node) {
    408407        bugList.setSelectedValue(new OsbListItem(node), true);
    409408    }
    410    
     409
    411410    public void setConnectionMode(boolean offline) {
    412411        refresh.setEnabled(!offline);
    413         setTitle("OpenStreetBugs (" + (offline ? "offline" : "online") + ")");
     412        setTitle(tr("OpenStreetBugs ({0})", (offline ? tr("offline") : tr("online"))));
    414413        toggleConnectionMode.setSelected(offline);
    415414    }
Note: See TracChangeset for help on using the changeset viewer.