Ticket #961: motd.diff
File motd.diff, 2.1 KB (added by , 17 years ago) |
---|
-
src/org/openstreetmap/josm/gui/GettingStarted.java
52 52 try { 53 53 motdcontent = wr.read(baseurl + "/wiki/MessageOfTheDay"); 54 54 } 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>"; 56 59 } 57 60 58 61 int myVersion; … … 127 130 } 128 131 } 129 132 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>"; 132 136 } 133 137 content += motdcontent.substring(start); 134 138 content = content.replace("<html>", "<html><style>\nbody { font-family: sans-serif; font-weight: bold; }\n</style>"); 135 139 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")); 136 142 } 137 143 138 144 }