Changeset 1318 in josm


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

support localized links

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/presets/presets.xml

    r1245 r1318  
    103103        <separator/>
    104104        <item name="Primary" icon="presets/way_primary.png">
     105            <link href="http://wiki.openstreetmap.org/wiki/Tag:highway=primary"/>
    105106            <label text="Edit a Primary Road" />
    106107            <space />
     
    135136        </item>
    136137        <item name="Secondary" icon="presets/way_secondary.png">
    137             <link href="http://wiki.openstreetmap.org/wiki/Tag:highway=secondary"/>
     138            <link href="http://wiki.openstreetmap.org/wiki/Tag:highway=secondary"
     139                  de:href="http://wiki.openstreetmap.org/wiki/DE:Tag:highway=secondary"/>
    138140            <label text="Edit a Secondary Road" />
    139141            <space />
  • 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.