Changeset 20217 in osm for applications/editors/josm


Ignore:
Timestamp:
2010-02-28T18:59:14+01:00 (14 years ago)
Author:
stoecker
Message:

i18n fixes

Location:
applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer
Files:
1 deleted
17 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/CalibrationFileFilter.java

    r17327 r20217  
    1919 ***************************************************************************/
    2020package org.openstreetmap.josm.plugins.piclayer;
     21
     22import static org.openstreetmap.josm.tools.I18n.tr;
    2123
    2224import java.io.File;
     
    4446        @Override
    4547        public String getDescription() {
    46                 return "Calibration Files (*" + EXTENSION + ")";
     48                return tr("Calibration Files")+ " (*" + EXTENSION + ")";
    4749        }
    48 
    4950}
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/LoadPictureCalibrationAction.java

    r17327 r20217  
    2020
    2121package org.openstreetmap.josm.plugins.piclayer;
     22
     23import static org.openstreetmap.josm.tools.I18n.tr;
     24
    2225import java.awt.event.ActionEvent;
    2326import java.io.File;
     
    4851         */
    4952        public LoadPictureCalibrationAction( PicLayerAbstract owner ) {
    50                 super("Load Picture Calibration...", null, "Loads calibration data to a file", null, false);
     53                super(tr("Load Picture Calibration..."), null, tr("Loads calibration data to a file"), null, false);
    5154                // Remember the owner...
    5255                m_owner = owner;
     
    7477                                // Error
    7578                                e.printStackTrace();
    76                                 JOptionPane.showMessageDialog(Main.parent , "Loading file failed: " + e.getMessage());
     79                                JOptionPane.showMessageDialog(Main.parent , tr("Loading file failed: {0}", e.getMessage()));
    7780                        }
    78                 }       
     81                }
    7982        }
    8083}
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/MovePictureAction.java

    r14779 r20217  
    2020
    2121package org.openstreetmap.josm.plugins.piclayer;
     22
     23import static org.openstreetmap.josm.tools.I18n.tr;
    2224
    2325import java.awt.event.MouseEvent;
     
    5153         */
    5254        public MovePictureAction(MapFrame frame) {
    53                 super("PicLayer", "move", "Drag to move the picture", frame, ImageProvider.getCursor("crosshair", null));
     55                super(tr("PicLayer move"), "move", tr("Drag to move the picture"), frame, ImageProvider.getCursor("crosshair", null));
    5456        }
    5557
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/NewLayerFromClipboardAction.java

    r14779 r20217  
    2121package org.openstreetmap.josm.plugins.piclayer;
    2222
     23import static org.openstreetmap.josm.tools.I18n.tr;
     24
    2325import java.awt.event.ActionEvent;
    2426import java.io.IOException;
     
    3840         */
    3941        public NewLayerFromClipboardAction() {
    40                 super("New picture layer from clipboard", null, null, null, false);
     42                super(tr("New picture layer from clipboard"), null, null, null, false);
    4143        }
    4244
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/NewLayerFromFileAction.java

    r14779 r20217  
    2020
    2121package org.openstreetmap.josm.plugins.piclayer;
     22
     23import static org.openstreetmap.josm.tools.I18n.tr;
    2224
    2325import java.awt.event.ActionEvent;
     
    6062                @Override
    6163                public String getDescription() {
    62                         return "Image files";
     64                        return tr("Image files");
    6365                }
    6466               
     
    6971         */
    7072        public NewLayerFromFileAction() {
    71                 super("New picture layer from file...", null, null, null, false);
     73                super(tr("New picture layer from file..."), null, null, null, false);
    7274        }
    7375
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/PicLayerAbstract.java

    r18597 r20217  
    2020
    2121package org.openstreetmap.josm.plugins.piclayer;
     22
     23import static org.openstreetmap.josm.tools.I18n.tr;
    2224
    2325import java.awt.Color;
     
    9395        // Create popup menu
    9496        // Reset submenu
    95         JMenu reset_submenu = new JMenu( "Reset" );
     97        JMenu reset_submenu = new JMenu(tr("Reset"));
    9698        reset_submenu.add( new ResetPictureAllAction( this ) );
    9799        reset_submenu.addSeparator();
     
    105107                new JMenuItem( new SavePictureCalibrationAction(this)),
    106108                new JMenuItem( new LoadPictureCalibrationAction(this)),
    107                 new JSeparator(),
    108                 new JMenuItem( new HelpAction() )
    109109        };
    110110
     
    122122        Image image = createImage();
    123123        if ( image == null ) {
    124             throw new IOException( "Image not created properly.");
     124            throw new IOException(tr("Image not created properly."));
    125125        }
    126126        // Convert to Buffered Image - not sure if this is the right way...
     
    136136            m_initial_scale = Main.map.mapView.getDist100Pixel();
    137137        } else {
    138             throw new IOException( "Could not find the map object." );
     138            throw new IOException(tr("Could not find the map object."));
    139139        }
    140140    }
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/PicLayerFromClipboard.java

    r17327 r20217  
    2121package org.openstreetmap.josm.plugins.piclayer;
    2222
     23import static org.openstreetmap.josm.tools.I18n.tr;
     24
    2325import java.awt.Image;
    2426import java.awt.Toolkit;
     
    4143        // Check result
    4244        if ( t == null ) {
    43                 throw new IOException( "Nothing in clipboard" );
     45                throw new IOException(tr("Nothing in clipboard"));
    4446        }
    4547       
     
    5052                image = (Image)t.getTransferData(DataFlavor.imageFlavor);
    5153            } else {
    52                 throw new IOException( "The clipboard data is not an image" );
     54                throw new IOException(tr("The clipboard data is not an image"));
    5355            }
    5456        } catch (UnsupportedFlavorException e) {
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/PicLayerPlugin.java

    r19467 r20217  
    7070            m_menu.add( m_newFromFileAction = new NewLayerFromFileAction() );
    7171            m_menu.add( m_newFromClipAction = new NewLayerFromClipboardAction() );
    72             m_menu.addSeparator();
    73             m_menu.add( new HelpAction() );
    7472            m_newFromFileAction.setEnabled( false );
    7573            m_newFromClipAction.setEnabled( false );
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/ResetPictureAllAction.java

    r17327 r20217  
    2020
    2121package org.openstreetmap.josm.plugins.piclayer;
     22
     23import static org.openstreetmap.josm.tools.I18n.tr;
     24
    2225import java.awt.event.ActionEvent;
    2326
     
    3942         */
    4043        public ResetPictureAllAction( PicLayerAbstract owner ) {
    41                 super("All", null, "Resets picture calibration", null, false);
     44                super(tr("All"), null, tr("Resets picture calibration"), null, false);
    4245                // Remember the owner...
    4346                m_owner = owner;
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/ResetPictureAngleAction.java

    r17327 r20217  
    2020
    2121package org.openstreetmap.josm.plugins.piclayer;
     22
     23import static org.openstreetmap.josm.tools.I18n.tr;
     24
    2225import java.awt.event.ActionEvent;
    2326
     
    3942         */
    4043        public ResetPictureAngleAction( PicLayerAbstract owner ) {
    41                 super("Angle", null, "Resets picture rotation", null, false);
     44                super(tr("Angle"), null, tr("Resets picture rotation"), null, false);
    4245                // Remember the owner...
    4346                m_owner = owner;
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/ResetPicturePositionAction.java

    r17327 r20217  
    2020
    2121package org.openstreetmap.josm.plugins.piclayer;
     22
     23import static org.openstreetmap.josm.tools.I18n.tr;
     24
    2225import java.awt.event.ActionEvent;
    2326
     
    3942         */
    4043        public ResetPicturePositionAction( PicLayerAbstract owner ) {
    41                 super("Position", null, "Resets picture position", null, false);
     44                super(tr("Reset position"), null, tr("Resets picture position"), null, false);
    4245                // Remember the owner...
    4346                m_owner = owner;
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/ResetPictureScaleAction.java

    r17327 r20217  
    2020
    2121package org.openstreetmap.josm.plugins.piclayer;
     22
     23import static org.openstreetmap.josm.tools.I18n.tr;
     24
    2225import java.awt.event.ActionEvent;
    2326
     
    3942         */
    4043        public ResetPictureScaleAction( PicLayerAbstract owner ) {
    41                 super("Scale", null, "Resets picture scale", null, false);
     44                super(tr("Scale"), null, tr("Resets picture scale"), null, false);
    4245                // Remember the owner...
    4346                m_owner = owner;
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/RotatePictureAction.java

    r14779 r20217  
    2020
    2121package org.openstreetmap.josm.plugins.piclayer;
     22
     23import static org.openstreetmap.josm.tools.I18n.tr;
    2224
    2325import java.awt.event.MouseEvent;
     
    5052         */
    5153        public RotatePictureAction(MapFrame frame) {
    52                 super("PicLayer", "rotate", "Drag to rotate the picture", frame, ImageProvider.getCursor("crosshair", null));
     54                super(tr("PicLayer rotate"), "rotate", tr("Drag to rotate the picture"), frame, ImageProvider.getCursor("crosshair", null));
    5355                // TODO Auto-generated constructor stub
    5456        }
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/SavePictureCalibrationAction.java

    r17327 r20217  
    2020
    2121package org.openstreetmap.josm.plugins.piclayer;
     22
     23import static org.openstreetmap.josm.tools.I18n.tr;
     24
    2225import java.awt.event.ActionEvent;
    2326import java.io.File;
     
    4750         */
    4851        public SavePictureCalibrationAction( PicLayerAbstract owner ) {
    49                 super("Save Picture Calibration...", null, "Saves calibration data to a file", null, false);
     52                super(tr("Save Picture Calibration..."), null, tr("Saves calibration data to a file"), null, false);
    5053                // Remember the owner...
    5154                m_owner = owner;
     
    7679                        m_owner.saveCalibration(props);
    7780                        try {
    78                                 props.store(new FileOutputStream(file), "JOSM PicLayer plugin calibration data");
     81                                props.store(new FileOutputStream(file), tr("JOSM PicLayer plugin calibration data"));
    7982                        } catch (Exception e) {
    8083                                // Error
    8184                                e.printStackTrace();
    82                                 JOptionPane.showMessageDialog(Main.parent , "Saving file failed: " + e.getMessage());
     85                                JOptionPane.showMessageDialog(Main.parent , tr("Saving file failed: {0}", e.getMessage()));
    8386                        }
    8487                }       
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/ScaleXPictureAction.java

    r17321 r20217  
    2121package org.openstreetmap.josm.plugins.piclayer;
    2222
     23import static org.openstreetmap.josm.tools.I18n.tr;
     24
    2325import org.openstreetmap.josm.Main;
    2426import org.openstreetmap.josm.actions.mapmode.MapMode;
     
    3739         */
    3840        public ScaleXPictureAction(MapFrame frame) {
    39                 super("PicLayer", "scale_x", "Drag to scale the picture in the X Axis", frame);
     41                super(tr("PicLayer scale X"), "scale_x", tr("Drag to scale the picture in the X Axis"), frame);
    4042                // TODO Auto-generated constructor stub
    4143        }
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/ScaleXYPictureAction.java

    r17321 r20217  
    2121package org.openstreetmap.josm.plugins.piclayer;
    2222
     23import static org.openstreetmap.josm.tools.I18n.tr;
     24
    2325import org.openstreetmap.josm.Main;
    2426import org.openstreetmap.josm.actions.mapmode.MapMode;
     
    3739         */
    3840        public ScaleXYPictureAction(MapFrame frame) {
    39                 super("PicLayer", "scale", "Drag to scale the picture in the X and Y Axis", frame);
     41                super(tr("PicLayer scale"), "scale", tr("Drag to scale the picture in the X and Y Axis"), frame);
    4042                // TODO Auto-generated constructor stub
    4143        }
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/ScaleYPictureAction.java

    r17321 r20217  
    2121package org.openstreetmap.josm.plugins.piclayer;
    2222
     23import static org.openstreetmap.josm.tools.I18n.tr;
     24
    2325import org.openstreetmap.josm.Main;
    2426import org.openstreetmap.josm.actions.mapmode.MapMode;
     
    3739         */
    3840        public ScaleYPictureAction(MapFrame frame) {
    39                 super("PicLayer", "scale_y", "Drag to scale the picture in the Y Axis", frame);
     41                super(tr("PicLayer scale Y"), "scale_y", tr("Drag to scale the picture in the Y Axis"), frame);
    4042                // TODO Auto-generated constructor stub
    4143        }
Note: See TracChangeset for help on using the changeset viewer.