Changeset 30053 in osm for applications/editors


Ignore:
Timestamp:
2013-11-17T10:21:17+01:00 (11 years ago)
Author:
belecker
Message:

JOSM/tracer2: Change server version format.

Location:
applications/editors/josm/plugins/tracer2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/tracer2/LanguageGen/messages.po

    r30049 r30053  
    99"Project-Id-Version: PACKAGE VERSION\n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2013-11-13 21:53+0100\n"
     11"POT-Creation-Date: 2013-11-17 10:17+0100\n"
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    5151msgid ""
    5252"The Tracer2Server version isn''t compatible with this plugin. Please "
    53 "download version {0} from"
     53"download version {0} from\n"
     54"{1}."
    5455msgstr ""
    5556
     
    6566#, java-format
    6667msgid ""
    67 "New version of Tracer2Server is avalibel. For best results please upgrade to "
    68 "version {0}."
     68"New version of Tracer2Server is available. For best results please upgrade "
     69"to version {0}."
    6970msgstr ""
    7071
     
    7475
    7576#: ..\src\org\openstreetmap\josm\plugins\tracer2\TracerAction.java:248
    76 msgid "No set of parameter is activ!"
     77msgid "No set of parameter is active!"
    7778msgstr ""
    7879
     
    8384#: ..\src\org\openstreetmap\josm\plugins\tracer2\TracerAction.java:333
    8485#, java-format
    85 msgid "Tracer2 add a Way with {0} points"
     86msgid "Tracer2: add a way with {0} points"
    8687msgstr ""
    8788
    8889#: ..\src\org\openstreetmap\josm\plugins\tracer2\TracerAction.java:335
    8990#, java-format
    90 msgid "Tracer2 modified Way to {0} points"
     91msgid "Tracer2: modify way to {0} points"
    9192msgstr ""
    9293
     
    194195
    195196#: ..\src\org\openstreetmap\josm\plugins\tracer2\server\Request.java:55
    196 msgid ""
    197 "Tracer2Server isn''t running. Pleas start the Server.\n"
    198 "If you don''t have the Server please download it at\n"
    199 "http://sourceforge.net/projects/tracer2server/."
     197#, java-format
     198msgid ""
     199"Tracer2Server isn''t running. Please start the Server.\n"
     200"If you don''t have the server, please download it from\n"
     201"{1}."
    200202msgstr ""
    201203
    202204#: ..\src\org\openstreetmap\josm\plugins\tracer2\server\Request.java:59
    203 msgid "Tracer2Server has nothing found."
     205msgid "Tracer2Server hasn''t found anything."
    204206msgstr ""
    205207
    206208#: ..\src\org\openstreetmap\josm\plugins\tracer2\server\Request.java:73
    207 msgid "Tracer2Server has an Error detected."
    208 msgstr ""
     209msgid "Tracer2Server has detected an error."
     210msgstr ""
  • applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/server/GetVersion.java

    r30047 r30053  
    2323    public int m_nVersionMajor = -1;
    2424    public int m_nVersionMinor = -1;
     25    public int m_nVersionBuild = -1;
     26    public int m_nVersionRevision = -1;
    2527   
    2628    /**
     
    4648           
    4749            String[] astrParts = strResponse.split(":");
    48             if (astrParts.length != 2) {
     50            if (astrParts.length < 2) {
    4951                return;
    5052            }
    51             int nMajor = Integer.parseInt(astrParts[0]);
    52             int nMinor = Integer.parseInt(astrParts[1]);
    53             m_nVersionMajor = nMajor;
    54             m_nVersionMinor = nMinor;
     53            if (astrParts.length > 0) m_nVersionMajor = Integer.parseInt(astrParts[0]);
     54            if (astrParts.length > 1) m_nVersionMinor = Integer.parseInt(astrParts[1]);
     55            if (astrParts.length > 2) m_nVersionBuild = Integer.parseInt(astrParts[2]);
     56            if (astrParts.length > 3) m_nVersionMinor = Integer.parseInt(astrParts[3]);
    5557        } catch (Exception e) {
    5658        }
Note: See TracChangeset for help on using the changeset viewer.