Ticket #960: presettrans.diff
| File presettrans.diff, 2.3 KB (added by , 18 years ago) |
|---|
-
src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
127 127 ((JComboBox)value).getEditor().setItem(DIFFERENT); 128 128 originalValue = DIFFERENT; 129 129 } 130 p.add(new JLabel(t ext), GBC.std().insets(0,0,10,0));130 p.add(new JLabel(tr(text)), GBC.std().insets(0,0,10,0)); 131 131 p.add(value, GBC.eol().fill(GBC.HORIZONTAL)); 132 132 } 133 133 … … 173 173 "false".equals(oneValue) ? 174 174 QuadStateCheckBox.State.NOT_SELECTED : 175 175 QuadStateCheckBox.State.UNSET; 176 check = new QuadStateCheckBox(t ext, initialState,176 check = new QuadStateCheckBox(tr(text), initialState, 177 177 new QuadStateCheckBox.State[] { 178 178 QuadStateCheckBox.State.SELECTED, 179 179 QuadStateCheckBox.State.NOT_SELECTED, … … 183 183 // else than true/false. we display a quad-state check box 184 184 // in "partial" state. 185 185 initialState = QuadStateCheckBox.State.PARTIAL; 186 check = new QuadStateCheckBox(t ext, QuadStateCheckBox.State.PARTIAL,186 check = new QuadStateCheckBox(tr(text), QuadStateCheckBox.State.PARTIAL, 187 187 new QuadStateCheckBox.State[] { 188 188 QuadStateCheckBox.State.PARTIAL, 189 189 QuadStateCheckBox.State.SELECTED, … … 249 249 } else { 250 250 combo.setSelectedItem(DIFFERENT); originalValue=DIFFERENT; 251 251 } 252 p.add(new JLabel(t ext), GBC.std().insets(0,0,10,0));252 p.add(new JLabel(tr(text)), GBC.std().insets(0,0,10,0)); 253 253 p.add(combo, GBC.eol().fill(GBC.HORIZONTAL)); 254 254 } 255 255 @Override public void addCommands(Collection<OsmPrimitive> sel, List<Command> cmds) { … … 276 276 public String text; 277 277 278 278 @Override public void addToPanel(JPanel p, Collection<OsmPrimitive> sel) { 279 p.add(new JLabel(t ext), GBC.eol());279 p.add(new JLabel(tr(text)), GBC.eol()); 280 280 } 281 281 @Override public void addCommands(Collection<OsmPrimitive> sel, List<Command> cmds) {} 282 282 } … … 309 309 * Called from the XML parser to set the name of the tagging preset 310 310 */ 311 311 public void setName(String name) { 312 putValue(Action.NAME, name);312 putValue(Action.NAME, tr(name)); 313 313 putValue("toolbar", "tagging_"+name); 314 314 } 315 315
