Changeset 3995 in josm
- Timestamp:
- 2011-03-20T01:29:48+01:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AbstractInfoAction.java
r3443 r3995 42 42 String ret = pattern.matcher(baseUrl).replaceAll("/browse"); 43 43 if (ret.equals(baseUrl)) { 44 System.out.println(tr("WARNING: unexpected format of API base URL. Redirection to info or history page for OSM primitivewill probably fail. API base URL is: ''{0}''",baseUrl));44 System.out.println(tr("WARNING: unexpected format of API base URL. Redirection to info or history page for OSM object will probably fail. API base URL is: ''{0}''",baseUrl)); 45 45 } 46 46 if (ret.startsWith("http://api.openstreetmap.org/")) { -
trunk/src/org/openstreetmap/josm/actions/DownloadReferrersAction.java
r3757 r3995 27 27 28 28 public DownloadReferrersAction() { 29 super(tr("Download parent ways/relations..."), "downloadreferrers", tr("Download primitives referring to one of the selected primitives"),29 super(tr("Download parent ways/relations..."), "downloadreferrers", tr("Download objects referring to one of the selected objects"), 30 30 Shortcut.registerShortcut("file:downloadreferrers", tr("File: {0}", tr("Download parent ways/relations...")), KeyEvent.VK_D, Shortcut.GROUPS_ALT2+Shortcut.GROUP_HOTKEY), true); 31 31 putValue("help", ht("/Action/DownloadReferrers")); -
trunk/src/org/openstreetmap/josm/actions/MergeSelectionAction.java
r3754 r3995 20 20 public class MergeSelectionAction extends AbstractMergeAction { 21 21 public MergeSelectionAction() { 22 super(tr("Merge selection"), "dialogs/mergedown", tr("Merge the currently selected primitives into another layer"), Shortcut22 super(tr("Merge selection"), "dialogs/mergedown", tr("Merge the currently selected objects into another layer"), Shortcut 23 23 .registerShortcut("system:mergeselection", tr("Edit: {0}", tr("Merge selection")), KeyEvent.VK_M, Shortcut.GROUP_MENU, Shortcut.SHIFT_DEFAULT), 24 24 true /* register */ -
trunk/src/org/openstreetmap/josm/actions/PasteAction.java
r3384 r3995 20 20 import org.openstreetmap.josm.data.osm.PrimitiveData; 21 21 import org.openstreetmap.josm.data.osm.PrimitiveDeepCopy; 22 import org.openstreetmap.josm.data.osm.PrimitiveDeepCopy.PasteBufferChangedListener; 22 23 import org.openstreetmap.josm.data.osm.RelationData; 23 24 import org.openstreetmap.josm.data.osm.RelationMemberData; 24 25 import org.openstreetmap.josm.data.osm.WayData; 25 import org.openstreetmap.josm.data.osm.PrimitiveDeepCopy.PasteBufferChangedListener;26 26 import org.openstreetmap.josm.gui.ExtendedDialog; 27 27 import org.openstreetmap.josm.gui.layer.Layer; … … 154 154 new String[] {tr("Paste without incomplete members"), tr("Cancel")}); 155 155 ed.setButtonIcons(new String[] {"dialogs/relation/deletemembers.png", "cancel.png"}); 156 ed.setContent(tr("The copied data contains incomplete primitives. "157 + "When pasting the incomplete primitives are removed. "158 + "Do you want to paste the data without the incomplete primitives?"));156 ed.setContent(tr("The copied data contains incomplete objects. " 157 + "When pasting the incomplete objects are removed. " 158 + "Do you want to paste the data without the incomplete objects?")); 159 159 ed.showDialog(); 160 160 return ed.getValue() == 1; -
trunk/src/org/openstreetmap/josm/actions/PasteTagsAction.java
r3640 r3995 254 254 if (!commands.isEmpty()) { 255 255 String title1 = trn("Pasting {0} tag", "Pasting {0} tags", commands.size(), commands.size()); 256 String title2 = trn("to {0} primitive", "to {0} primtives", selection.size(), selection.size());256 String title2 = trn("to {0} object", "to {0} objects", selection.size(), selection.size()); 257 257 Main.main.undoRedo.add( 258 258 new SequenceCommand( -
trunk/src/org/openstreetmap/josm/command/ConflictAddCommand.java
r3262 r3995 28 28 JOptionPane.showMessageDialog( 29 29 Main.parent, 30 tr("<html>Layer ''{0}'' already has a conflict for primitive<br>"30 tr("<html>Layer ''{0}'' already has a conflict for object<br>" 31 31 + "''{1}''.<br>" 32 32 + "This conflict cannot be added.</html>", … … 50 50 @Override public void undoCommand() { 51 51 if (! Main.map.mapView.hasLayer(getLayer())) { 52 System.out.println(tr("Warning: Layer ''{0}'' does not exist any more. Cannot remove conflict for primitive''{1}''.",52 System.out.println(tr("Warning: Layer ''{0}'' does not exist any more. Cannot remove conflict for object ''{1}''.", 53 53 getLayer().getName(), 54 54 conflict.getMy().getDisplayName(DefaultNameFormatter.getInstance()) … … 65 65 @Override public JLabel getDescription() { 66 66 return new JLabel( 67 68 69 70 71 67 tr("Add conflict for ''{0}''", 68 conflict.getMy().getDisplayName(DefaultNameFormatter.getInstance()) 69 ), 70 ImageProvider.get(OsmPrimitiveType.from(conflict.getMy())), 71 JLabel.HORIZONTAL 72 72 ); 73 73 } -
trunk/src/org/openstreetmap/josm/command/UndeletePrimitivesCommand.java
r3362 r3995 63 63 @Override public JLabel getDescription() { 64 64 return new JLabel( 65 trn("Undelete {0} primitive", "Undelete {0} primitives", toUndelete.size(), toUndelete.size()),66 67 65 trn("Undelete {0} object", "Undelete {0} objects", toUndelete.size(), toUndelete.size()), 66 ImageProvider.get("data", "object"), 67 JLabel.HORIZONTAL 68 68 ); 69 69 } -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/ListMergeModel.java
r3766 r3995 323 323 StringBuffer sb = new StringBuffer(); 324 324 sb.append("<html>"); 325 sb.append(tr("The following primitives could not be copied to the target primitive<br>because they are deleted in the target dataset:"));325 sb.append(tr("The following objects could not be copied to the target object<br>because they are deleted in the target dataset:")); 326 326 sb.append("<ul>"); 327 327 for (String item: items) { … … 333 333 Main.parent, 334 334 sb.toString(), 335 tr("Merging deleted primitives failed"),335 tr("Merging deleted objects failed"), 336 336 JOptionPane.WARNING_MESSAGE, 337 337 HelpUtil.ht("/Dialog/Conflict#MergingDeletedPrimitivesFailed") -
trunk/src/org/openstreetmap/josm/gui/dialogs/UserListDialog.java
r3776 r3995 5 5 import static org.openstreetmap.josm.tools.I18n.trn; 6 6 7 import java.awt.BorderLayout; 7 8 import java.awt.Component; 8 import java.awt.BorderLayout;9 9 import java.awt.event.ActionEvent; 10 10 import java.awt.event.KeyEvent; … … 26 26 27 27 import javax.swing.AbstractAction; 28 import javax.swing.ImageIcon; 29 import javax.swing.JLabel; 28 30 import javax.swing.JOptionPane; 29 31 import javax.swing.JPanel; 30 32 import javax.swing.JScrollPane; 31 33 import javax.swing.JTable; 32 import javax.swing.JLabel;33 34 import javax.swing.ListSelectionModel; 34 import javax.swing.table.DefaultTableCellRenderer;35 import javax.swing.table.TableColumnModel;36 35 import javax.swing.event.ListSelectionEvent; 37 36 import javax.swing.event.ListSelectionListener; 37 import javax.swing.table.DefaultTableCellRenderer; 38 38 import javax.swing.table.DefaultTableModel; 39 import javax.swing.table.TableColumnModel; 39 40 40 41 import org.openstreetmap.josm.Main; … … 50 51 import org.openstreetmap.josm.tools.ImageProvider; 51 52 import org.openstreetmap.josm.tools.Shortcut; 52 import org.openstreetmap.josm.tools.ImageProvider;53 import javax.swing.ImageIcon;54 53 55 54 /** … … 118 117 columnModel.getColumn(3).setPreferredWidth(20); 119 118 columnModel.getColumn(3).setCellRenderer(new DefaultTableCellRenderer() { 119 @Override 120 120 public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { 121 121 final JLabel label = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); … … 179 179 public SelectUsersPrimitivesAction() { 180 180 putValue(NAME, tr("Select")); 181 putValue(SHORT_DESCRIPTION, tr("Select primitives submitted by this user"));181 putValue(SHORT_DESCRIPTION, tr("Select objects submitted by this user")); 182 182 putValue(SMALL_ICON, ImageProvider.get("dialogs", "select")); 183 183 updateEnabledState(); … … 281 281 Layer layer = Main.main.getActiveLayer(); 282 282 if (layer instanceof OsmDataLayer) { 283 refresh(((OsmDataLayer)layer).data.getSelected());283 refresh(((OsmDataLayer)layer).data.getSelected()); 284 284 } 285 285 setEnabled(false); -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetContentPanel.java
r3479 r3995 248 248 putValue(NAME, tr("Show history")); 249 249 putValue(SMALL_ICON, ImageProvider.get("dialogs", "history")); 250 putValue(SHORT_DESCRIPTION, tr("Download and show the history of the selected primitives"));250 putValue(SHORT_DESCRIPTION, tr("Download and show the history of the selected objects")); 251 251 updateEnabledState(); 252 252 } … … 377 377 putValue(NAME, tr("Zoom to in layer")); 378 378 putValue(SMALL_ICON, ImageProvider.get("dialogs/autoscale", "selection")); 379 putValue(SHORT_DESCRIPTION, tr("Zoom to the corresponding primitives in the current data layer"));379 putValue(SHORT_DESCRIPTION, tr("Zoom to the corresponding objects in the current data layer")); 380 380 updateEnabledState(); 381 381 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetDetailPanel.java
r3206 r3995 415 415 putValue(NAME, tr("Zoom to in layer")); 416 416 putValue(SMALL_ICON, ImageProvider.get("dialogs/autoscale", "selection")); 417 putValue(SHORT_DESCRIPTION, tr("Zoom to the primitives in the content of this changeset in the current data layer"));417 putValue(SHORT_DESCRIPTION, tr("Zoom to the objects in the content of this changeset in the current data layer")); 418 418 updateEnabledState(); 419 419 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java
r3920 r3995 670 670 protected boolean confirmAddingPrimtive(OsmPrimitive primitive) throws AddAbortException { 671 671 String msg = tr("<html>This relation already has one or more members referring to<br>" 672 + "the primitive''{0}''<br>"672 + "the object ''{0}''<br>" 673 673 + "<br>" 674 674 + "Do you really want to add another relation member?</html>", … … 679 679 Main.parent, 680 680 msg, 681 tr("Multiple members referring to same primitive"),681 tr("Multiple members referring to same object."), 682 682 JOptionPane.YES_NO_CANCEL_OPTION, 683 683 JOptionPane.WARNING_MESSAGE, … … 738 738 public AddSelectedAtStartAction() { 739 739 putValue(SHORT_DESCRIPTION, 740 tr("Add all primitives selected in the current dataset before the first member"));740 tr("Add all objects selected in the current dataset before the first member")); 741 741 putValue(SMALL_ICON, ImageProvider.get("dialogs/conflict", "copystartright")); 742 742 // putValue(NAME, tr("Add Selected")); … … 764 764 class AddSelectedAtEndAction extends AddFromSelectionAction implements TableModelListener { 765 765 public AddSelectedAtEndAction() { 766 putValue(SHORT_DESCRIPTION, tr("Add all primitives selected in the current dataset after the last member"));766 putValue(SHORT_DESCRIPTION, tr("Add all objects selected in the current dataset after the last member")); 767 767 putValue(SMALL_ICON, ImageProvider.get("dialogs/conflict", "copyendright")); 768 768 // putValue(NAME, tr("Add Selected")); … … 791 791 public AddSelectedBeforeSelection() { 792 792 putValue(SHORT_DESCRIPTION, 793 tr("Add all primitives selected in the current dataset before the first selected member"));793 tr("Add all objects selected in the current dataset before the first selected member")); 794 794 putValue(SMALL_ICON, ImageProvider.get("dialogs/conflict", "copybeforecurrentright")); 795 795 // putValue(NAME, tr("Add Selected")); … … 825 825 public AddSelectedAfterSelection() { 826 826 putValue(SHORT_DESCRIPTION, 827 tr("Add all primitives selected in the current dataset after the last selected member"));827 tr("Add all objects selected in the current dataset after the last selected member")); 828 828 putValue(SMALL_ICON, ImageProvider.get("dialogs/conflict", "copyaftercurrentright")); 829 829 // putValue(NAME, tr("Add Selected")); … … 857 857 class RemoveSelectedAction extends AbstractAction implements TableModelListener { 858 858 public RemoveSelectedAction() { 859 putValue(SHORT_DESCRIPTION, tr("Remove all members referring to one of the selected primitives"));859 putValue(SHORT_DESCRIPTION, tr("Remove all members referring to one of the selected objects")); 860 860 putValue(SMALL_ICON, ImageProvider.get("dialogs/relation", "deletemembers")); 861 861 // putValue(NAME, tr("Remove Selected")); … … 894 894 class SelectedMembersForSelectionAction extends AbstractAction implements TableModelListener { 895 895 public SelectedMembersForSelectionAction() { 896 putValue(SHORT_DESCRIPTION, tr("Select relation members which refer to primitives in the current selection"));896 putValue(SHORT_DESCRIPTION, tr("Select relation members which refer to objects in the current selection")); 897 897 putValue(SMALL_ICON, ImageProvider.get("dialogs/relation", "selectmembers")); 898 898 updateEnabledState(); … … 904 904 905 905 if (enabled) { 906 putValue(SHORT_DESCRIPTION, tr("Select relation members which refer to {0} primitives in the current selection",memberTableModel.getChildPrimitives(getLayer().data.getSelected()).size()));906 putValue(SHORT_DESCRIPTION, tr("Select relation members which refer to {0} objects in the current selection",memberTableModel.getChildPrimitives(getLayer().data.getSelected()).size())); 907 907 } else { 908 putValue(SHORT_DESCRIPTION, tr("Select relation members which refer to primitives in the current selection"));908 putValue(SHORT_DESCRIPTION, tr("Select relation members which refer to objects in the current selection")); 909 909 } 910 910 setEnabled(enabled); … … 928 928 class SelectPrimitivesForSelectedMembersAction extends AbstractAction implements ListSelectionListener { 929 929 public SelectPrimitivesForSelectedMembersAction() { 930 putValue(SHORT_DESCRIPTION, tr("Select primitives for selected relation members"));930 putValue(SHORT_DESCRIPTION, tr("Select objects for selected relation members")); 931 931 putValue(SMALL_ICON, ImageProvider.get("dialogs/relation", "selectprimitives")); 932 932 updateEnabledState(); … … 1183 1183 JOptionPane.showMessageDialog( 1184 1184 Main.parent, 1185 tr("<html>Layer ''{0}'' already has a conflict for primitive<br>"1185 tr("<html>Layer ''{0}'' already has a conflict for object<br>" 1186 1186 + "''{1}''.<br>" 1187 1187 + "Please resolve this conflict first, then try again.</html>", … … 1381 1381 protected boolean confirmSettingEmptyRole(int onNumMembers) { 1382 1382 String message = "<html>" 1383 + trn("You are setting an empty role on {0} primitive.",1384 "You are setting an empty role on {0} primitives.", onNumMembers, onNumMembers)1383 + trn("You are setting an empty role on {0} object.", 1384 "You are setting an empty role on {0} objects.", onNumMembers, onNumMembers) 1385 1385 + "<br>" 1386 + tr("This is equal to deleting the roles of these primitives.") +1386 + tr("This is equal to deleting the roles of these objects.") + 1387 1387 "<br>" 1388 1388 + tr("Do you really want to apply the new role?") + "</html>"; -
trunk/src/org/openstreetmap/josm/gui/history/RelationMemberTableColumnModel.java
r3083 r3995 24 24 // column 0 - Version 25 25 col = new TableColumn(1); 26 col.setHeaderValue(tr(" Primitive"));26 col.setHeaderValue(tr("Object")); 27 27 col.setCellRenderer(renderer); 28 28 addColumn(col); -
trunk/src/org/openstreetmap/josm/gui/io/UploadLayerTask.java
r3225 r3995 92 92 // we tried to delete an already deleted primitive. 93 93 // 94 System.out.println(tr("Warning: primitive ''{0}'' is already deleted on the server. Skipping this primitiveand retrying to upload.", p.getDisplayName(DefaultNameFormatter.getInstance())));94 System.out.println(tr("Warning: object ''{0}'' is already deleted on the server. Skipping this object and retrying to upload.", p.getDisplayName(DefaultNameFormatter.getInstance()))); 95 95 processedPrimitives.addAll(writer.getProcessedPrimitives()); 96 96 processedPrimitives.add(p); … … 106 106 @Override 107 107 public void run() { 108 monitor.indeterminateSubTask(tr("Preparing primitives to upload ..."));108 monitor.indeterminateSubTask(tr("Preparing objects to upload ...")); 109 109 APIDataSet ds = new APIDataSet(layer.data); 110 110 try { -
trunk/src/org/openstreetmap/josm/io/MultiFetchServerObjectReader.java
r3362 r3995 421 421 } catch(OsmApiException e) { 422 422 if (e.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) { 423 logger.warning(tr("Server replied with response code 404, retrying with an individual request for each primitive."));423 logger.warning(tr("Server replied with response code 404, retrying with an individual request for each object.")); 424 424 singleGetIdPackage(type, pkg, progressMonitor); 425 425 } else
Note:
See TracChangeset
for help on using the changeset viewer.