diff --git a/DataExtractionOSM/src/net/osmand/swing/OsmExtractionUI.java b/DataExtractionOSM/src/net/osmand/swing/OsmExtractionUI.java index df938105d4..12b43b67cb 100644 --- a/DataExtractionOSM/src/net/osmand/swing/OsmExtractionUI.java +++ b/DataExtractionOSM/src/net/osmand/swing/OsmExtractionUI.java @@ -14,6 +14,7 @@ import java.io.OutputStream; import java.lang.Thread.UncaughtExceptionHandler; import java.lang.reflect.InvocationTargetException; import java.sql.SQLException; +import java.text.MessageFormat; import javax.swing.AbstractAction; import javax.swing.JCheckBox; @@ -407,7 +408,8 @@ public class OsmExtractionUI implements IMapLocationListener { @Override public void run() { - IndexCreator creator = new IndexCreator(DataExtractionSettings.getSettings().getDefaultWorkingDir()); + File dir = DataExtractionSettings.getSettings().getDefaultWorkingDir(); + IndexCreator creator = new IndexCreator(dir); try { creator.setIndexAddress(buildAddressIndex.isSelected()); creator.setIndexPOI(buildPoiIndex.isSelected()); @@ -454,7 +456,7 @@ public class OsmExtractionUI implements IMapLocationListener { comma = true; msg.append(Messages.getString("OsmExtractionUI.TRANSPORT")); //$NON-NLS-1$ } - msg.append(Messages.getString("OsmExtractionUI.SUCCESFULLY_CREATED")); //$NON-NLS-1$ + msg.append(MessageFormat.format(Messages.getString("OsmExtractionUI.WERE_SUCCESFULLY_CREATED"), dir.getAbsolutePath())); //$NON-NLS-1$ JOptionPane pane = new JOptionPane(msg); JDialog dialog = pane.createDialog(frame, Messages.getString("OsmExtractionUI.GENERATION_DATA")); //$NON-NLS-1$ dialog.setVisible(true); diff --git a/DataExtractionOSM/src/net/osmand/swing/swing_messages.properties b/DataExtractionOSM/src/net/osmand/swing/swing_messages.properties index 266c4d59d2..f93e7bb294 100644 --- a/DataExtractionOSM/src/net/osmand/swing/swing_messages.properties +++ b/DataExtractionOSM/src/net/osmand/swing/swing_messages.properties @@ -73,6 +73,7 @@ OsmExtractionUI.SAVING_OSM_FILE=Saving osm file OsmExtractionUI.SELECT_AREA=Select area OsmExtractionUI.SELECT_AREA_TO_FILTER=Select area to filter OsmExtractionUI.SPECIFY_WORKING_DIR=Specify working directory... +OsmExtractionUI.WERE_SUCCESFULLY_CREATED=\ were successfully created \n\t at {0}. OsmExtractionUI.SUCCESFULLY_CREATED=\ - successfully created in working directory. OsmExtractionUI.TRANSPORT=transport OsmExtractionUI.UNABLE_OPEN_FILE=Failed to open log file