Ticket #961: motd.2.diff

File motd.2.diff, 2.1 KB (added by stoecker, 17 years ago)

There is a little typo in first variant

  • src/org/openstreetmap/josm/gui/GettingStarted.java

     
    5252            try {
    5353                motdcontent = wr.read(baseurl + "/wiki/MessageOfTheDay");
    5454            } catch (IOException ioe) {
    55                 motdcontent = tr("<html>\n<h1>JOSM, the Java OpenStreetMap editor</h1>\n<h2>(Message of the day not available)</h2>");           
     55                motdcontent = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n"
     56                + "<body><h1>"+tr("JOSM, the Java OpenStreetMap editor")
     57                + "</h1>\n<h2 align=\"center\">"
     58                + tr("(Message of the day not available)")+"</h2>";
    5659            }
    5760
    5861            int myVersion;
     
    127130                }
    128131            }
    129132            if (nothingIncluded) {
    130                 content += "<div align=\"center\">Watch this space for announcements</div>";
    131                 content += "<div align=\"center\" style=\"font-weight: normal\">(remove the \"motd\" entries in Advanced Preferences to see any available announcements next time)</div>";
     133                content += "<div align=\"center\">"+tr("Watch this space for announcements")+"</div>";
     134                content += "<div align=\"center\" style=\"font-weight: normal\">"
     135                +tr("(remove the \"motd\" entries in Advanced Preferences to see any available announcements next time)")+"</div>";
    132136            }
    133137            content += motdcontent.substring(start);
    134138            content = content.replace("<html>", "<html><style>\nbody { font-family: sans-serif; font-weight: bold; }\n</style>");
    135139            content = content.replace("<h1", "<h1 align=\"center\"");
     140            /* replace the wiki title */
     141            content = content.replace("JOSM, the Java OpenStreetMap editor", tr("JOSM, the Java OpenStreetMap editor"));
    136142        }
    137143
    138144    }