Changeset 29327 in osm for applications/editors/josm/plugins/wikipedia
- Timestamp:
- 2013-03-03T13:53:15+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wikipedia/src/org/wikipedia/WikipediaToggleDialog.java
r28983 r29327 21 21 import org.openstreetmap.josm.actions.search.SearchAction; 22 22 import org.openstreetmap.josm.command.ChangePropertyCommand; 23 import org.openstreetmap.josm.data.Preferences; 23 24 import org.openstreetmap.josm.data.coor.LatLon; 24 25 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 49 50 new SideButton(new OpenWikipediaArticleAction()), 50 51 new SideButton(new WikipediaSettingsAction(), false))); 51 setTitle(/* I18n: [language].Wikipedia.org */ tr("{0}.Wikipedia.org", wikipediaLang.get()));52 updateTitle(); 52 53 } 53 54 final StringProperty wikipediaLang = new StringProperty("wikipedia.lang", LanguageInfo.getJOSMLocaleCode().substring(0, 2)); … … 106 107 } 107 108 109 private void updateTitle() { 110 setTitle(/* I18n: [language].Wikipedia.org: coordinates */ tr("{0}.Wikipedia.org: coordinates", wikipediaLang.get())); 111 } 112 108 113 class WikipediaLoadCoordinatesAction extends AbstractAction { 109 114 … … 123 128 // add entries to list model 124 129 setWikipediaEntries(entries); 125 setTitle(/* I18n: [language].Wikipedia.org: coordinates */ tr("{0}.Wikipedia.org: coordinates", wikipediaLang.get()));130 updateTitle(); 126 131 } catch (Exception ex) { 127 132 throw new RuntimeException(ex); … … 184 189 if (lang != null) { 185 190 wikipediaLang.put(lang); 191 updateTitle(); 186 192 updateWikipediaArticles(); 187 193 }
Note:
See TracChangeset
for help on using the changeset viewer.