Changeset 658 in josm


Ignore:
Timestamp:
Jun 26, 2008 7:32:33 PM (5 years ago)
Author:
framm
Message:
  • split up MOTD i18n stuff for easier translation (patch by Dirk Stoecker, <openstreetmap@…>, applied with modifications) - fixes #961
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/GettingStarted.java

    r654 r658  
    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 = "<html><body>\n<h1>" + 
     56                    tr("JOSM, the Java OpenStreetMap editor") + 
     57                    "</h1>\n<h2>(" + 
     58                    tr ("Message of the day not available") + 
     59                    ")</h2>"; 
    5660            } 
    5761 
     
    127131                } 
    128132            } 
    129             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>"; 
    132             } 
    133133            content += motdcontent.substring(start); 
    134134            content = content.replace("<html>", "<html><style>\nbody { font-family: sans-serif; font-weight: bold; }\n</style>"); 
    135135            content = content.replace("<h1", "<h1 align=\"center\""); 
     136            /* replace the wiki title */  
     137            content = content.replace("JOSM, the Java OpenStreetMap editor", tr("JOSM, the Java OpenStreetMap editor"));  
    136138        } 
    137139 
Note: See TracChangeset for help on using the changeset viewer.