Changeset 1484 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2009-03-11T11:37:06+01:00 (16 years ago)
Author:
stoecker
Message:

fixed user agent

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/AboutAction.java

    r1480 r1484  
    8989    static public void setUserAgent() {
    9090        Properties sysProp = System.getProperties();
    91         sysProp.put("http.agent", "JOSM/1.5 ("+version+")");
     91        sysProp.put("http.agent", "JOSM/1.5 ("+(version.equals(tr("UNKNOWN"))?"UNKNOWN":version)+" "+Main.getLanguageCode()+")");
    9292        System.setProperties(sysProp);
    9393    }
  • trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java

    r1417 r1484  
    2626/**
    2727 * @author xeen
    28  * 
     28 *
    2929 * Opens a dialog with useful status information like version numbers for Java, JOSM and plugins
    3030 * Also includes preferences with stripped username and password
     
    7272                    if (line.trim().toLowerCase().startsWith("marker.show"))
    7373                        continue;
    74                    
     74
    7575                    text.append(line);
    7676                    text.append("\n");
     
    8282            x.printStackTrace();
    8383        }
    84        
     84
    8585        JTextArea ta = new JTextArea(text.toString());
    8686        ta.setWrapStyleWord(true);
     
    9393                new String[] {tr("Copy to clipboard and close"), tr("Close") },
    9494                new String[] {"copy.png", "cancel.png" }).getValue();
    95        
     95
    9696        if(result != 1) return;
    9797        try {
Note: See TracChangeset for help on using the changeset viewer.