- Timestamp:
- 2018-05-13T22:09:06+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 39 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/CloseChangesetAction.java
r13329 r13761 45 45 super(tr("Close open changesets"), 46 46 "closechangeset", 47 tr("Close sopen changesets"),47 tr("Close open changesets"), 48 48 Shortcut.registerShortcut("system:closechangeset", 49 tr("File: {0}", tr("Close sopen changesets")),49 tr("File: {0}", tr("Close open changesets")), 50 50 KeyEvent.VK_Q, Shortcut.ALT_CTRL), 51 51 true -
trunk/src/org/openstreetmap/josm/actions/DownloadPrimitiveAction.java
r13106 r13761 33 33 */ 34 34 public DownloadPrimitiveAction() { 35 super(tr("Download object..."), "downloadprimitive", tr("Download OSM object by ID ."),35 super(tr("Download object..."), "downloadprimitive", tr("Download OSM object by ID"), 36 36 SHORTCUT, true); 37 37 putValue("help", ht("/Action/DownloadObject")); -
trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java
r13694 r13761 254 254 "If you want to save the offset as bookmark, enter the bookmark name below", 255 255 Main.getProjection().toString())), GBC.eop()); 256 pnl.add(new JLabel(tr("Offset: 256 pnl.add(new JLabel(tr("Offset:")), GBC.std()); 257 257 pnl.add(tOffset, GBC.eol().fill(GBC.HORIZONTAL).insets(0, 0, 0, 5)); 258 258 pnl.add(new JLabel(tr("Bookmark name: ")), GBC.std()); -
trunk/src/org/openstreetmap/josm/actions/JumpToAction.java
r13417 r13761 49 49 */ 50 50 public JumpToAction() { 51 super(tr("Jump To Position"), (ImageProvider) null, tr("Opens a dialog that allows to jump to a specific location"),52 Shortcut.registerShortcut("tools:jumpto", tr("Tool: {0}", tr("Jump To Position")),51 super(tr("Jump to Position"), (ImageProvider) null, tr("Opens a dialog that allows to jump to a specific location"), 52 Shortcut.registerShortcut("tools:jumpto", tr("Tool: {0}", tr("Jump to Position")), 53 53 KeyEvent.VK_J, Shortcut.CTRL), true, "action/jumpto", true); 54 54 putValue("help", ht("/Action/JumpToPosition")); -
trunk/src/org/openstreetmap/josm/actions/ReverseWayAction.java
r13453 r13761 138 138 c.addAll(revResult.getCommands()); 139 139 } 140 MainApplication.undoRedo.add(new SequenceCommand(tr("Reverse ways"), c));140 MainApplication.undoRedo.add(new SequenceCommand(tr("Reverse Ways"), c)); 141 141 } 142 142 -
trunk/src/org/openstreetmap/josm/actions/SessionSaveAsAction.java
r12678 r13761 118 118 119 119 if (zipRequired) { 120 fc = createAndOpenFileChooser(false, false, tr("Save session"), joz, JFileChooser.FILES_ONLY, "lastDirectory");120 fc = createAndOpenFileChooser(false, false, tr("Save Session"), joz, JFileChooser.FILES_ONLY, "lastDirectory"); 121 121 } else { 122 fc = createAndOpenFileChooser(false, false, tr("Save session"), Arrays.asList(jos, joz), jos,122 fc = createAndOpenFileChooser(false, false, tr("Save Session"), Arrays.asList(jos, joz), jos, 123 123 JFileChooser.FILES_ONLY, "lastDirectory"); 124 124 } -
trunk/src/org/openstreetmap/josm/actions/UnGlueAction.java
r13434 r13761 208 208 209 209 private PropertiesMembershipDialog(boolean preselectNew, boolean queryTags, boolean queryMemberships) { 210 super(Main.parent, tr("Tags /Memberships"), tr("Unglue"), tr("Cancel"));210 super(Main.parent, tr("Tags/Memberships"), tr("Unglue"), tr("Cancel")); 211 211 setButtonIcons("unglueways", "cancel"); 212 212 -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadNotesTask.java
r13437 r13761 119 119 120 120 DownloadTask(OsmServerReader reader, ProgressMonitor progressMonitor) { 121 super(tr("Downloading Notes"), progressMonitor, false);121 super(tr("Downloading notes"), progressMonitor, false); 122 122 this.reader = reader; 123 123 } -
trunk/src/org/openstreetmap/josm/actions/mapmode/AddNoteAction.java
r13435 r13761 72 72 map.selectMapMode(map.mapModeSelect); 73 73 74 NoteInputDialog dialog = new NoteInputDialog(Main.parent, tr("Create new note"), tr("Create note"));74 NoteInputDialog dialog = new NoteInputDialog(Main.parent, tr("Create a new note"), tr("Create note")); 75 75 dialog.showNoteDialog(tr("Enter a detailed comment to create a note"), ImageProvider.get("dialogs/notes", "note_new")); 76 76 -
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r13545 r13761 171 171 */ 172 172 public SearchAction() { 173 super(tr("Search..."), "dialogs/search", tr("Search for objects ."),173 super(tr("Search..."), "dialogs/search", tr("Search for objects"), 174 174 Shortcut.registerShortcut("system:find", tr("Search..."), KeyEvent.VK_F, Shortcut.CTRL), true); 175 175 putValue("help", ht("/Action/Search")); -
trunk/src/org/openstreetmap/josm/actions/upload/ApiPreconditionCheckerHook.java
r13414 r13761 78 78 key, Long.toString(osmPrimitive.getId()), Tagged.MAX_TAG_LENGTH, value.length() 79 79 ), 80 tr("Precondition Violation"),80 tr("Precondition violation"), 81 81 JOptionPane.ERROR_MESSAGE 82 82 ); -
trunk/src/org/openstreetmap/josm/data/projection/CustomProjection.java
r13628 r13761 632 632 public static double parseDouble(Map<String, String> parameters, String parameterName) throws ProjectionConfigurationException { 633 633 if (!parameters.containsKey(parameterName)) 634 throw new ProjectionConfigurationException(tr("Unknown parameter ''{0}''", parameterName));634 throw new ProjectionConfigurationException(tr("Unknown parameter: ''{0}''", parameterName)); 635 635 return parseDouble(Optional.ofNullable(parameters.get(parameterName)).orElseThrow( 636 636 () -> new ProjectionConfigurationException(tr("Expected number argument for parameter ''{0}''", parameterName))), -
trunk/src/org/openstreetmap/josm/gui/ExceptionDialogUtil.java
r13499 r13761 281 281 Main.parent, 282 282 msg, 283 tr("Authentication Failed"),283 tr("Authentication failed"), 284 284 JOptionPane.ERROR_MESSAGE, 285 285 ht("/ErrorMessages#AuthenticationFailed") -
trunk/src/org/openstreetmap/josm/gui/MapMover.java
r12881 r13761 19 19 import org.openstreetmap.josm.Main; 20 20 import org.openstreetmap.josm.actions.mapmode.SelectAction; 21 import org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent;22 import org.openstreetmap.josm.spi.preferences.PreferenceChangedListener;23 21 import org.openstreetmap.josm.data.coor.EastNorth; 24 22 import org.openstreetmap.josm.data.preferences.BooleanProperty; 25 23 import org.openstreetmap.josm.gui.MapViewState.MapViewPoint; 26 24 import org.openstreetmap.josm.spi.preferences.Config; 25 import org.openstreetmap.josm.spi.preferences.PreferenceChangeEvent; 26 import org.openstreetmap.josm.spi.preferences.PreferenceChangedListener; 27 27 import org.openstreetmap.josm.tools.Destroyable; 28 28 import org.openstreetmap.josm.tools.Pair; … … 146 146 if (!Main.isPlatformOsx()) { 147 147 registerActionShortcut(new ZoomerAction(",", "MapMover.Zoomer.in"), 148 Shortcut.registerShortcut("view:zoominalternate", tr("Map: {0}", tr("Zoom in")), KeyEvent.VK_COMMA, Shortcut.CTRL));148 Shortcut.registerShortcut("view:zoominalternate", tr("Map: {0}", tr("Zoom In")), KeyEvent.VK_COMMA, Shortcut.CTRL)); 149 149 150 150 registerActionShortcut(new ZoomerAction(".", "MapMover.Zoomer.out"), 151 Shortcut.registerShortcut("view:zoomoutalternate", tr("Map: {0}", tr("Zoom out")), KeyEvent.VK_PERIOD, Shortcut.CTRL));151 Shortcut.registerShortcut("view:zoomoutalternate", tr("Map: {0}", tr("Zoom Out")), KeyEvent.VK_PERIOD, Shortcut.CTRL)); 152 152 } 153 153 } -
trunk/src/org/openstreetmap/josm/gui/bugreport/BugReportDialog.java
r13647 r13761 175 175 panel.add(settings); 176 176 177 JButton sendBugReportButton = new JButton(tr("Report Bug"), ImageProvider.getIfAvailable("bug"));177 JButton sendBugReportButton = new JButton(tr("Report bug"), ImageProvider.getIfAvailable("bug")); 178 178 sendBugReportButton.addActionListener(e -> sendBug()); 179 179 panel.add(sendBugReportButton, GBC.eol().insets(0, 0, 0, 0).anchor(GBC.SOUTHEAST)); -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/MultiValueResolutionDecision.java
r11553 r13761 143 143 public String getChosenValue() { 144 144 switch(type) { 145 case UNDECIDED: throw new IllegalStateException(tr("Not decided yet ."));145 case UNDECIDED: throw new IllegalStateException(tr("Not decided yet")); 146 146 case KEEP_ONE: return value; 147 147 case SUM_ALL_NUMERIC: return tags.getSummedValues(getKey()); … … 238 238 if (primitive == null) return; 239 239 if (!isDecided()) 240 throw new IllegalStateException(tr("Not decided yet ."));240 throw new IllegalStateException(tr("Not decided yet")); 241 241 String key = tags.getKeys().iterator().next(); 242 242 if (type.equals(MultiValueDecisionType.KEEP_NONE)) { … … 274 274 CheckParameterUtil.ensureParameterNotNull(primitive, "primitive"); 275 275 if (!isDecided()) 276 throw new IllegalStateException(tr("Not decided yet ."));276 throw new IllegalStateException(tr("Not decided yet")); 277 277 String key = tags.getKeys().iterator().next(); 278 278 return new ChangePropertyCommand(primitive, key, getChosenValue()); … … 290 290 CheckParameterUtil.ensureParameterNotNull(primitives, "primitives"); 291 291 if (!isDecided()) 292 throw new IllegalStateException(tr("Not decided yet ."));292 throw new IllegalStateException(tr("Not decided yet")); 293 293 String key = tags.getKeys().iterator().next(); 294 294 return new ChangePropertyCommand(primitives, key, getChosenValue()); -
trunk/src/org/openstreetmap/josm/gui/dialogs/ChangesetDialog.java
r13434 r13761 382 382 CloseOpenChangesetsAction() { 383 383 putValue(NAME, tr("Close open changesets")); 384 putValue(SHORT_DESCRIPTION, tr("Close sthe selected open changesets"));384 putValue(SHORT_DESCRIPTION, tr("Close the selected open changesets")); 385 385 new ImageProvider("closechangeset").getResource().attachImageIcon(this, true); 386 386 updateEnabledState(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/ConflictDialog.java
r13564 r13761 57 57 import org.openstreetmap.josm.gui.MainApplication; 58 58 import org.openstreetmap.josm.gui.NavigatableComponent; 59 import org.openstreetmap.josm.gui.PopupMenuHandler; 59 60 import org.openstreetmap.josm.gui.PrimitiveRenderer; 60 import org.openstreetmap.josm.gui.PopupMenuHandler;61 61 import org.openstreetmap.josm.gui.SideButton; 62 62 import org.openstreetmap.josm.gui.conflict.pair.ConflictResolver; … … 99 99 */ 100 100 public ConflictDialog() { 101 super(tr("Conflict"), "conflict", tr("Resolve conflicts ."),101 super(tr("Conflict"), "conflict", tr("Resolve conflicts"), 102 102 Shortcut.registerShortcut("subwindow:conflict", tr("Toggle: {0}", tr("Conflict")), 103 103 KeyEvent.VK_C, Shortcut.ALT_SHIFT), 100); -
trunk/src/org/openstreetmap/josm/gui/dialogs/InspectPrimitiveDataText.java
r13186 r13761 147 147 add(tr("Edited by: "), o.getUser() == null ? tr("<new object>") 148 148 : getNameAndId(o.getUser().getName(), o.getUser().getId())); 149 add(tr("Version: "), Integer.toString(o.getVersion()));149 add(tr("Version:"), " ", Integer.toString(o.getVersion())); 150 150 add(tr("In changeset: "), Integer.toString(o.getChangesetId())); 151 151 } … … 212 212 void addCoordinates(Node n) { 213 213 if (n.isLatLonKnown()) { 214 add(tr("Coordinates: "),214 add(tr("Coordinates:"), " ", 215 215 Double.toString(n.lat()), ", ", 216 216 Double.toString(n.lon())); -
trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java
r13729 r13761 99 99 public ValidatorDialog() { 100 100 super(tr("Validation Results"), "validator", tr("Open the validation window."), 101 Shortcut.registerShortcut("subwindow:validator", tr("Toggle: {0}", tr("Validation results")),101 Shortcut.registerShortcut("subwindow:validator", tr("Toggle: {0}", tr("Validation Results")), 102 102 KeyEvent.VK_V, Shortcut.ALT_SHIFT), 150, false, ValidatorPreference.class); 103 103 -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r13521 r13761 676 676 } 677 677 } else { 678 setTitle(tr("Tags /Memberships"));678 setTitle(tr("Tags/Memberships")); 679 679 } 680 680 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ChildRelationBrowser.java
r13654 r13761 197 197 class EditAction extends AbstractAction implements TreeSelectionListener { 198 198 EditAction() { 199 putValue(SHORT_DESCRIPTION, tr("Edit the relation the currently selected relation member refers to ."));199 putValue(SHORT_DESCRIPTION, tr("Edit the relation the currently selected relation member refers to")); 200 200 new ImageProvider("dialogs", "edit").getResource().attachImageIcon(this, true); 201 201 putValue(NAME, tr("Edit")); -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java
r13683 r13761 800 800 protected static JMenuItem addToWindowMenu(IRelationEditor re, String layerName) { 801 801 Relation r = re.getRelation(); 802 String name = r == null ? tr("New Relation") : r.getLocalName();802 String name = r == null ? tr("New relation") : r.getLocalName(); 803 803 JosmAction focusAction = new JosmAction( 804 804 tr("Relation Editor: {0}", name == null && r != null ? r.getId() : name), -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/DownloadIncompleteMembersAction.java
r13486 r13761 40 40 putValue(SHORT_DESCRIPTION, Main.platform.makeTooltip(tr("Download all incomplete members"), sc)); 41 41 new ImageProvider("dialogs/relation", "downloadincomplete").getResource().attachImageIcon(this, true); 42 putValue(NAME, tr("Download Members"));42 putValue(NAME, tr("Download members")); 43 43 updateEnabledState(); 44 44 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/DownloadSelectedIncompleteMembersAction.java
r13486 r13761 34 34 putValue(SHORT_DESCRIPTION, tr("Download selected incomplete members")); 35 35 new ImageProvider("dialogs/relation", "downloadincompleteselected").getResource().attachImageIcon(this, true); 36 putValue(NAME, tr("Download Members"));36 putValue(NAME, tr("Download members")); 37 37 updateEnabledState(); 38 38 } -
trunk/src/org/openstreetmap/josm/gui/download/OverpassQueryWizardDialog.java
r13331 r13761 81 81 JPanel panel = new JPanel(new GridBagLayout()); 82 82 83 JLabel searchLabel = new JLabel(tr("Search 83 JLabel searchLabel = new JLabel(tr("Search:")); 84 84 JTextComponent descPane = buildDescriptionSection(); 85 85 JScrollPane scroll = GuiHelper.embedInVerticalScrollPane(descPane); -
trunk/src/org/openstreetmap/josm/gui/download/PlaceSelection.java
r13130 r13761 179 179 180 180 SearchAction() { 181 putValue(NAME, tr("Search 181 putValue(NAME, tr("Search...")); 182 182 new ImageProvider("dialogs", "search").getResource().attachImageIcon(this, true); 183 183 putValue(SHORT_DESCRIPTION, tr("Click to start searching for places")); -
trunk/src/org/openstreetmap/josm/gui/io/ChangesetCellRenderer.java
r12494 r13761 75 75 setToolTipText(buildToolTipText(cs)); 76 76 } else { 77 setText(tr("No open changeset "));77 setText(tr("No open changesets")); 78 78 } 79 79 return this; -
trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java
r13173 r13761 131 131 gc.gridx = 0; 132 132 gc.weightx = 0.0; 133 pnl.add(new JLabel(tr("Password: 133 pnl.add(new JLabel(tr("Password:")), gc); 134 134 135 135 gc.gridx = 1; -
trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticPropertiesPanel.java
r12646 r13761 20 20 * Panel to enter username and password for the "fully automatic" authorization 21 21 * procedure. 22 * 22 * 23 23 * @see AuthorizationProcedure#FULLY_AUTOMATIC 24 24 */ … … 69 69 gc.gridx = 0; 70 70 gc.weightx = 0.0; 71 pnl.add(new JLabel(tr("Password: 71 pnl.add(new JLabel(tr("Password:")), gc); 72 72 73 73 gc.gridx = 1; -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceDialog.java
r13431 r13761 61 61 JPanel pnl = new JPanel(new GridBagLayout()); 62 62 63 JCheckBox expert = new JCheckBox(tr("Expert mode"));63 JCheckBox expert = new JCheckBox(tr("Expert Mode")); 64 64 expert.setSelected(ExpertToggleAction.isExpert()); 65 65 expert.addActionListener(e -> ExpertToggleAction.getInstance().actionPerformed(null)); -
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/AdvancedPreference.java
r13431 r13761 105 105 106 106 txtFilter = new JosmTextField(); 107 JLabel lbFilter = new JLabel(tr("Search: 107 JLabel lbFilter = new JLabel(tr("Search:")); 108 108 lbFilter.setLabelFor(txtFilter); 109 109 p.add(lbFilter); -
trunk/src/org/openstreetmap/josm/gui/preferences/display/ColorPreference.java
r13543 r13761 290 290 } 291 291 }); 292 defaultSet = new JButton(tr(" Set to default"));292 defaultSet = new JButton(tr("Reset to default")); 293 293 defaultSet.addActionListener(e -> { 294 294 int sel = colors.getSelectedRow(); -
trunk/src/org/openstreetmap/josm/gui/preferences/display/GPXSettingsPanel.java
r12987 r13761 217 217 218 218 // hdopCircleGpsPoints 219 hdopCircleGpsPoints.setToolTipText(tr("Draw a circle from HDOP value ."));219 hdopCircleGpsPoints.setToolTipText(tr("Draw a circle from HDOP value")); 220 220 add(hdopCircleGpsPoints, GBC.eop().insets(20, 0, 0, 0)); 221 221 ExpertToggleAction.addVisibilitySwitcher(hdopCircleGpsPoints); -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java
r13456 r13761 99 99 100 100 private ImageryPreference() { 101 super(/* ICON(preferences/) */ "imagery", tr("Imagery Preferences"), tr("Modify list of imagery layers displayed in the Imagery menu"),101 super(/* ICON(preferences/) */ "imagery", tr("Imagery preferences"), tr("Modify list of imagery layers displayed in the Imagery menu"), 102 102 false, new JTabbedPane()); 103 103 } -
trunk/src/org/openstreetmap/josm/gui/preferences/map/TaggingPresetPreference.java
r12846 r13761 82 82 } catch (IOException e) { 83 83 // Should not happen, but at least show message 84 String msg = tr("Could not read tagging preset source {0}", source);84 String msg = tr("Could not read tagging preset source: {0}", source); 85 85 Logging.log(Logging.LEVEL_ERROR, msg, e); 86 86 JOptionPane.showMessageDialog(Main.parent, msg); -
trunk/src/org/openstreetmap/josm/io/OsmServerChangesetReader.java
r12620 r13761 153 153 if (in == null) 154 154 return null; 155 monitor.indeterminateSubTask(tr("({0}/{1}) Downloading changeset {2} 155 monitor.indeterminateSubTask(tr("({0}/{1}) Downloading changeset {2}...", i, ids.size(), id)); 156 156 List<Changeset> changesets = OsmChangesetParser.parse(in, monitor.createSubTaskMonitor(1, true)); 157 157 if (changesets == null || changesets.isEmpty()) { -
trunk/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java
r13294 r13761 107 107 ExtendedDialog dialog = new ExtendedDialog( 108 108 progressMonitor.getWindowParent(), 109 tr("Skip download"),109 tr("Skip Download"), 110 110 tr("Download Plugin"), tr("Skip Download") 111 111 ); -
trunk/src/org/openstreetmap/josm/tools/I18n.java
r13647 r13761 86 86 private static volatile String loadedCode = "en"; 87 87 88 88 /** Map (english/locale) of singular strings **/ 89 89 private static volatile Map<String, String> strings; 90 /** Map (english/locale) of plural strings **/ 90 91 private static volatile Map<String, String[]> pstrings; 91 92 private static Map<String, PluralMode> languages = new HashMap<>(); … … 615 616 return 0; 616 617 } 618 619 /** 620 * Returns the map of singular translations. 621 * @return the map of singular translations. 622 * @since 13761 623 */ 624 public static Map<String, String> getSingularTranslations() { 625 return new HashMap<>(strings); 626 } 627 628 /** 629 * Returns the map of plural translations. 630 * @return the map of plural translations. 631 * @since 13761 632 */ 633 public static Map<String, String[]> getPluralTranslations() { 634 return new HashMap<>(pstrings); 635 } 617 636 }
Note:
See TracChangeset
for help on using the changeset viewer.