Author: jflesch
Date: 2007-04-01 14:28:09 +0000 (Sun, 01 Apr 2007)
New Revision: 12511
Modified:
trunk/apps/Thaw/src/thaw/i18n/source.thaw_fr.properties
trunk/apps/Thaw/src/thaw/i18n/thaw.properties
trunk/apps/Thaw/src/thaw/i18n/thaw_fr.properties
trunk/apps/Thaw/src/thaw/plugins/index/IndexManagementHelper.java
Log:
Add a warning when trying to copy the public key of an index not inserted
Modified: trunk/apps/Thaw/src/thaw/i18n/source.thaw_fr.properties
===================================================================
--- trunk/apps/Thaw/src/thaw/i18n/source.thaw_fr.properties 2007-04-01
13:56:29 UTC (rev 12510)
+++ trunk/apps/Thaw/src/thaw/i18n/source.thaw_fr.properties 2007-04-01
14:28:09 UTC (rev 12511)
@@ -324,8 +324,10 @@
thaw.plugin.index.editBlackList=Editer la liste noire d'indexes
thaw.plugin.index.addToBlackList=Ajouter ? la liste noire d'indexes
+thaw.plugin.index.stillRev0=N'oubliez pas d'ins?rer cet index sur Freenet
avant de donner la clef ? quelqu'un
+
thaw.plugin.peerMonitor.peerMonitor=Connexion
thaw.plugin.peerMonitor.yourReference=Votre r?f?rence:
thaw.plugin.peerMonitor.copyReference=Copier votre r?f?rence vers le
presse-papier
Modified: trunk/apps/Thaw/src/thaw/i18n/thaw.properties
===================================================================
--- trunk/apps/Thaw/src/thaw/i18n/thaw.properties 2007-04-01 13:56:29 UTC
(rev 12510)
+++ trunk/apps/Thaw/src/thaw/i18n/thaw.properties 2007-04-01 14:28:09 UTC
(rev 12511)
@@ -318,7 +318,9 @@
thaw.plugin.index.ultimateWarning=You're about to delete all your indexes !
ARE YOU SURE ?
+thaw.plugin.index.stillRev0=Don't forget to insert this index on Freenet
before giving the key to someone
+
thaw.plugin.peerMonitor.peerMonitor=Connection
thaw.plugin.peerMonitor.yourReference=Your reference:
thaw.plugin.peerMonitor.copyReference=Copy your reference to the clipboard
Modified: trunk/apps/Thaw/src/thaw/i18n/thaw_fr.properties
===================================================================
--- trunk/apps/Thaw/src/thaw/i18n/thaw_fr.properties 2007-04-01 13:56:29 UTC
(rev 12510)
+++ trunk/apps/Thaw/src/thaw/i18n/thaw_fr.properties 2007-04-01 14:28:09 UTC
(rev 12511)
@@ -324,8 +324,10 @@
thaw.plugin.index.editBlackList=Editer la liste noire d'indexes
thaw.plugin.index.addToBlackList=Ajouter \u00e0 la liste noire d'indexes
+thaw.plugin.index.stillRev0=N'oubliez pas d'ins\u00e9rer cet index sur Freenet
avant de donner la clef \u00e0 quelqu'un
+
thaw.plugin.peerMonitor.peerMonitor=Connexion
thaw.plugin.peerMonitor.yourReference=Votre r\u00e9f\u00e9rence:
thaw.plugin.peerMonitor.copyReference=Copier votre r\u00e9f\u00e9rence vers le
presse-papier
Modified: trunk/apps/Thaw/src/thaw/plugins/index/IndexManagementHelper.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/IndexManagementHelper.java
2007-04-01 13:56:29 UTC (rev 12510)
+++ trunk/apps/Thaw/src/thaw/plugins/index/IndexManagementHelper.java
2007-04-01 14:28:09 UTC (rev 12511)
@@ -847,6 +847,12 @@
if (node == null)
return;
+ if (node instanceof Index) {
+ if (((Index)node).getRevision() <= 0) {
+ new thaw.core.WarningWindow(null,
I18n.getMessage("thaw.plugin.index.stillRev0"));
+ }
+ }
+
thaw.gui.GUIHelper.copyToClipboard(node.getPublicKey());
}