Changeset 5295 in josm


Ignore:
Timestamp:
2012-06-22T23:04:52+02:00 (9 years ago)
Author:
stoecker
Message:

fix #7752, change language link in EULA to follow wiki syntax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java

    r5224 r5295  
    8686import org.openstreetmap.josm.tools.GBC;
    8787import org.openstreetmap.josm.tools.ImageProvider;
     88import org.openstreetmap.josm.tools.LanguageInfo;
    8889
    8990public class ImageryPreference extends DefaultTabPreferenceSetting {
     
    869870            URL url = null;
    870871            try {
    871                 url = new URL(eulaUrl.replaceAll("\\{lang\\}", Locale.getDefault().toString()));
     872                url = new URL(eulaUrl.replaceAll("\\{lang\\}", LanguageInfo.getWikiLanguagePrefix()));
    872873                JEditorPane htmlPane = null;
    873874                try {
     
    876877                    // give a second chance with a default Locale 'en'
    877878                    try {
    878                         url = new URL(eulaUrl.replaceAll("\\{lang\\}", "en"));
     879                        url = new URL(eulaUrl.replaceAll("\\{lang\\}", ""));
    879880                        htmlPane = new JEditorPane(url);
    880881                    } catch (IOException e2) {
Note: See TracChangeset for help on using the changeset viewer.