]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/function/cache/ManageCacheFunction.java
Version 18, July 2015
[GpsPrune.git] / tim / prune / function / cache / ManageCacheFunction.java
index 04e3cc14e60e5d01a1cb21f02d8cea9b73fb106b..5431e9eedca9b3c1bce1b5705479e850f4f536d2 100644 (file)
@@ -273,6 +273,7 @@ public class ManageCacheFunction extends GenericFunction implements Runnable
         */
        public void run()
        {
+               // TODO: Maybe this can be speeded up so that it just finds the tilesets first and then gets the details later
                // Check if directory has anything in it
                _model = new TileCacheModel(_cacheDir);
                _model.buildTileSets();
@@ -365,8 +366,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);