X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=tim%2Fprune%2Ffunction%2Fcache%2FManageCacheFunction.java;h=59ef13a9d1248eb9add927dbfe3f8ba53958a487;hb=326f489e36aa7f235bc19409a57bf4955cd50f24;hp=551eb350ef74da51d5d17a22a52c333bd51dfdcb;hpb=649c5da6ee1bbc590699e11a92316ece2ea8512d;p=GpsPrune.git diff --git a/tim/prune/function/cache/ManageCacheFunction.java b/tim/prune/function/cache/ManageCacheFunction.java index 551eb35..59ef13a 100644 --- a/tim/prune/function/cache/ManageCacheFunction.java +++ b/tim/prune/function/cache/ManageCacheFunction.java @@ -203,11 +203,11 @@ public class ManageCacheFunction extends GenericFunction implements Runnable c.gridheight = 1; c.gridwidth = 2; c.weightx = 0.0; c.weighty = 0.0; c.anchor = GridBagConstraints.FIRST_LINE_START; - _tileSetLabel = new JLabel("tileset label"); + _tileSetLabel = new JLabel("dummy text to be replaced"); mainPanel.add(_tileSetLabel, c); c.gridx = 0; c.gridy = 1; c.ipady = 20; - _zoomLabel = new JLabel("zoom label"); + _zoomLabel = new JLabel("dummy text to be replaced"); mainPanel.add(_zoomLabel, c); JRadioButton deleteOldRadio = new JRadioButton(I18nManager.getText("dialog.diskcache.deleteold")); @@ -227,7 +227,7 @@ public class ManageCacheFunction extends GenericFunction implements Runnable c.gridwidth = 1; c.gridx = 0; c.gridy = 3; c.insets = new Insets(0, 40, 0, 0); - _ageLabel = new JLabel("Maximum age (days)"); + _ageLabel = new JLabel(I18nManager.getText("dialog.diskcache.maximumage")); mainPanel.add(_ageLabel, c); _daysField = new WholeNumberField(2); _daysField.setMinimumSize(new Dimension(20, 1)); @@ -281,6 +281,7 @@ public class ManageCacheFunction extends GenericFunction implements Runnable if (_model.getNumTileSets() <= 0) { _app.showErrorMessage(getNameKey(), "error.cache.empty"); + _dialog.dispose(); return; } @@ -364,8 +365,7 @@ public class ManageCacheFunction extends GenericFunction implements Runnable if (totalDeleted > 0) { // Show confirmation message - JOptionPane.showMessageDialog(_dialog, I18nManager.getText("dialog.diskcache.deleted1") - + " " + totalDeleted + " " + I18nManager.getText("dialog.diskcache.deleted2"), + JOptionPane.showMessageDialog(_dialog, I18nManager.getTextWithNumber("dialog.diskcache.deleted", totalDeleted), I18nManager.getText(getNameKey()), JOptionPane.INFORMATION_MESSAGE); // reload model _cards.first(_cardPanel);