Ignore:
Timestamp:
2009-03-01T14:39:53+01:00 (15 years ago)
Author:
stoecker
Message:

fix translation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java

    r1458 r1459  
    44import static org.openstreetmap.josm.tools.I18n.marktr;
    55import static org.openstreetmap.josm.tools.I18n.tr;
     6import static org.openstreetmap.josm.tools.I18n.trn;
    67
    78import java.awt.AWTEvent;
     
    6364    final private Cursor cursorJoinNode;
    6465    final private Cursor cursorJoinWay;
    65     enum Cursors { crosshair, node, way } 
     66    enum Cursors { crosshair, node, way }
    6667    private Cursors currCursor = Cursors.crosshair;
    67    
     68
    6869    private static Node lastUsedNode = null;
    6970    private double PHI=Math.toRadians(90);
     
    9495        Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(
    9596            Shortcut.registerShortcut("mapmode:drawfocus", tr("Mode: Draw Focus"), KeyEvent.VK_N, Shortcut.GROUP_EDIT).getKeyStroke(), tr("Draw"));
    96        
     97
    9798        cursorCrosshair = getCursor();
    9899        cursorJoinNode = ImageProvider.getCursor("crosshair", "joinnode");
     
    131132                        default:
    132133                            Main.map.mapView.setCursor(cursorCrosshair);
    133                             break;   
     134                            break;
    134135                    }
    135136                }
     
    138139        } catch(Exception e) {}
    139140    }
    140    
     141
    141142    /**
    142143     * Checks if a map redraw is required and does so if needed. Also updates the status bar
     
    877878            // We already know oldHighlights is not empty, but shift is pressed.
    878879            // We can assume the new node will be joined into an existing way
    879             rv = tr("Insert new node into {0} way(s).", oldHighlights.size());
     880            rv = trn("Insert new node into way.", "Insert new node into {0} ways.",
     881            oldHighlights.size(), oldHighlights.size());
    880882        } else {
    881883            // oldHighlights may store a node or way, check if it's a node
     
    884886                rv = tr("Select node under cursor.");
    885887            else
    886                 rv = tr("Insert new node into {0} way(s).", oldHighlights.size());
     888                rv = trn("Insert new node into way.", "Insert new node into {0} ways.",
     889                oldHighlights.size(), oldHighlights.size());
    887890        }
    888891
     
    896899                rv += " " + tr("Continue way from last node.");
    897900        }
    898        
     901
    899902        Node n = mouseOnExistingNode;
    900903        /*
    901904         * Handle special case: Highlighted node == selected node => finish drawing
    902905         */
    903        
     906
    904907        if(n != null && Main.ds.getSelectedNodes().contains(n)) {
    905908            if(wayIsFinished)
Note: See TracChangeset for help on using the changeset viewer.