Ignore:
Timestamp:
2009-01-27T19:59:33+01:00 (15 years ago)
Author:
stoecker
Message:

close #2088, #2091, update translations, added tr, patch by xeen and Claudius Henrichs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java

    r1339 r1345  
    4646import org.openstreetmap.josm.tools.ImageProvider;
    4747import org.openstreetmap.josm.tools.OpenBrowser;
     48import org.openstreetmap.josm.tools.UrlLabel;
    4849import org.openstreetmap.josm.tools.XmlObjectParser;
    4950import org.xml.sax.SAXException;
     
    375376        @Override public void addToPanel(JPanel p, Collection<OsmPrimitive> sel) {
    376377            if(locale_text == null)
    377                 locale_text = text == null ? tr("Open map features in browser") : tr(text);
     378                locale_text = text == null ? tr("More information about this feature") : tr(text);
    378379            JButton b = new JButton(locale_text);
    379380            b.addActionListener(new ActionListener(){
     
    382383                }
    383384            });
    384             p.add(b, GBC.eol().anchor(GBC.EAST));
     385            p.add(new UrlLabel(locale_href, locale_text), GBC.eol().anchor(GBC.WEST));
    385386        }
    386387        @Override public void addCommands(Collection<OsmPrimitive> sel, List<Command> cmds) {}
     
    567568            return null;
    568569        JPanel p = new JPanel(new GridBagLayout());
     570        LinkedList<Item> l = new LinkedList<Item>();
    569571
    570572        for (Item i : data)
    571             i.addToPanel(p, selected);
     573        {
     574            if(i instanceof Link)
     575                l.add(i);
     576            else
     577                i.addToPanel(p, selected);
     578        }
     579        for(Item link : l)
     580            link.addToPanel(p, selected);
    572581        return p;
    573582    }
Note: See TracChangeset for help on using the changeset viewer.