Changeset 1562 in josm for trunk/src


Ignore:
Timestamp:
2009-04-28T19:37:14+02:00 (13 years ago)
Author:
stoecker
Message:

fix #2419 - MOTD language not changing - patch by xeen

File:
1 edited

Legend:

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

    r1512 r1562  
    6161
    6262        final private int myVersion = AboutAction.getVersionNumber();
     63        final private String myLang = Main.getLanguageCodeU();
    6364
    6465        /**
     
    8384            // Save this to prefs in case JOSM is updated so MOTD can be refreshed
    8485            Main.pref.putInteger("cache.motd.html.version", myVersion);
     86            Main.pref.put("cache.motd.html.lang", myLang);
    8587
    8688            return motd.getBytes();
     
    9698            // 2. Cannot be written (e.g. while developing). Obviously we don't want to update
    9799            //    everytime because of something we can't read.
    98             return Main.pref.getInteger("cache.motd.html.version", myVersion) == myVersion;
     100            return (Main.pref.getInteger("cache.motd.html.version", myVersion) == myVersion)
     101                                         && Main.pref.get("cache.motd.html.lang").equals(myLang);
    99102        }
    100103    }
Note: See TracChangeset for help on using the changeset viewer.