Changeset 1318 in josm for trunk/src/org


Ignore:
Timestamp:
2009-01-21T18:03:58+01:00 (16 years ago)
Author:
stoecker
Message:

support localized links

File:
1 edited

Legend:

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

    r1245 r1318  
    371371        public String text;
    372372        public String locale_text;
     373        public String locale_href;
    373374
    374375        @Override public void addToPanel(JPanel p, Collection<OsmPrimitive> sel) {
     
    378379            b.addActionListener(new ActionListener(){
    379380                public void actionPerformed(ActionEvent e) {
    380                     OpenBrowser.displayUrl(href);
     381                    OpenBrowser.displayUrl(locale_href != null ? locale_href : href);
    381382                }
    382383            });
Note: See TracChangeset for help on using the changeset viewer.