Ignore:
Timestamp:
2006-07-03T00:31:24+02:00 (18 years ago)
Author:
imi
Message:
  • started i18n
  • started "download incomplete ways" action
  • added straight line selection mode
File:
1 edited

Legend:

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

    r102 r104  
    11package org.openstreetmap.josm.gui;
     2
     3import static org.openstreetmap.josm.tools.I18n.tr;
     4import static org.openstreetmap.josm.tools.I18n.trn;
    25
    36import java.awt.Component;
     
    7679                }
    7780
    78                 public String getColumnName(int columnIndex) {return columnIndex == 0 ? "Key" : "Value";}
     81                public String getColumnName(int columnIndex) {return columnIndex == 0 ? tr("Key") : tr("Value");}
    7982                public int getColumnCount() {return 2;}
    8083                public boolean isCellEditable(int row, int column) {return false;}
     
    158161               
    159162                if (this.conflicts.isEmpty())
    160                         throw new RuntimeException("No conflicts but in conflict list:\n" + Arrays.toString(conflicts.entrySet().toArray()));
     163                        throw new RuntimeException(tr("No conflicts but in conflict list:\n{0}" , Arrays.toString(conflicts.entrySet().toArray())));
    161164
    162165                // have to initialize the JTables here and not in the declaration, because its constructor
     
    227230                resolveTable.addMouseListener(new DblClickListener(null));
    228231
    229                 add(new JLabel(conflicts.size()+" object"+(conflicts.size()==1?" has":"s have")+" conflicts:"), GBC.eol().insets(0,0,0,10));
     232                add(new JLabel(trn("{0} object has conflicts:","{0} objects have conflicts:",conflicts.size(),conflicts.size())), GBC.eol().insets(0,0,0,10));
    230233
    231234                JPanel p = new JPanel(new GridBagLayout());
    232                 p.add(new JLabel("my version:"), GBC.eol());
     235                p.add(new JLabel(tr("my version:")), GBC.eol());
    233236                p.add(new JScrollPane(myTable), GBC.eol().fill(GBC.BOTH));
    234237                p.add(new JButton(new ResolveAction("down", Resolution.MY)), GBC.eol().anchor(GBC.CENTER).insets(0,5,0,0));
     
    236239
    237240                p = new JPanel(new GridBagLayout());
    238                 p.add(new JLabel("their version:"), GBC.eol());
     241                p.add(new JLabel(tr("their version:")), GBC.eol());
    239242                p.add(new JScrollPane(theirTable), GBC.eol().fill(GBC.BOTH));
    240243                p.add(new JButton(new ResolveAction("down", Resolution.THEIR)), GBC.eol().anchor(GBC.CENTER).insets(0,5,0,0));
     
    242245
    243246                add(new JButton(new ResolveAction("up", null)), GBC.eol().anchor(GBC.CENTER));
    244                 add(new JLabel("resolved version:"), GBC.eol().insets(0,5,0,0));
     247                add(new JLabel(tr("resolved version:")), GBC.eol().insets(0,5,0,0));
    245248                add(new JScrollPane(resolveTable), GBC.eol().anchor(GBC.CENTER).fill(GBC.BOTH));
    246249        }
Note: See TracChangeset for help on using the changeset viewer.