Changeset 104 in josm for src/org/openstreetmap/josm/gui/ConflictResolver.java
- Timestamp:
- 2006-07-03T00:31:24+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/gui/ConflictResolver.java
r102 r104 1 1 package org.openstreetmap.josm.gui; 2 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 import static org.openstreetmap.josm.tools.I18n.trn; 2 5 3 6 import java.awt.Component; … … 76 79 } 77 80 78 public String getColumnName(int columnIndex) {return columnIndex == 0 ? "Key" : "Value";}81 public String getColumnName(int columnIndex) {return columnIndex == 0 ? tr("Key") : tr("Value");} 79 82 public int getColumnCount() {return 2;} 80 83 public boolean isCellEditable(int row, int column) {return false;} … … 158 161 159 162 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()))); 161 164 162 165 // have to initialize the JTables here and not in the declaration, because its constructor … … 227 230 resolveTable.addMouseListener(new DblClickListener(null)); 228 231 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)); 230 233 231 234 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()); 233 236 p.add(new JScrollPane(myTable), GBC.eol().fill(GBC.BOTH)); 234 237 p.add(new JButton(new ResolveAction("down", Resolution.MY)), GBC.eol().anchor(GBC.CENTER).insets(0,5,0,0)); … … 236 239 237 240 p = new JPanel(new GridBagLayout()); 238 p.add(new JLabel( "their version:"), GBC.eol());241 p.add(new JLabel(tr("their version:")), GBC.eol()); 239 242 p.add(new JScrollPane(theirTable), GBC.eol().fill(GBC.BOTH)); 240 243 p.add(new JButton(new ResolveAction("down", Resolution.THEIR)), GBC.eol().anchor(GBC.CENTER).insets(0,5,0,0)); … … 242 245 243 246 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)); 245 248 add(new JScrollPane(resolveTable), GBC.eol().anchor(GBC.CENTER).fill(GBC.BOTH)); 246 249 }
Note:
See TracChangeset
for help on using the changeset viewer.