Author: jflesch
Date: 2007-05-22 19:24:32 +0000 (Tue, 22 May 2007)
New Revision: 13312

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/CommentTab.java
Log:
Specify the index name above the comment list

Modified: trunk/apps/Thaw/src/thaw/i18n/source.thaw_fr.properties
===================================================================
--- trunk/apps/Thaw/src/thaw/i18n/source.thaw_fr.properties     2007-05-22 
19:17:44 UTC (rev 13311)
+++ trunk/apps/Thaw/src/thaw/i18n/source.thaw_fr.properties     2007-05-22 
19:24:32 UTC (rev 13312)
@@ -341,6 +341,8 @@
 thaw.plugin.index.comment.add=Ajouter un commentaire
 thaw.plugin.index.comment.comment=Commentaire
 thaw.plugin.index.comment.author=Auteur
+# the index name will be added at the end of this string
+thaw.plugin.index.comment.commentListTitle=Commentaires sur l'index
 thaw.plugin.index.comment.commentList=Commentaires

 thaw.plugin.index.comment.mustSelectIdentity=Vous devez selectionner une 
identit?

Modified: trunk/apps/Thaw/src/thaw/i18n/thaw.properties
===================================================================
--- trunk/apps/Thaw/src/thaw/i18n/thaw.properties       2007-05-22 19:17:44 UTC 
(rev 13311)
+++ trunk/apps/Thaw/src/thaw/i18n/thaw.properties       2007-05-22 19:24:32 UTC 
(rev 13312)
@@ -349,6 +349,8 @@
 thaw.plugin.index.comment.comments=See the comments (?)
 thaw.plugin.index.comment.readComments=See the comments
 thaw.plugin.index.comment.comment=Comment
+# the index name will be added at the end of this string
+thaw.plugin.index.comment.commentListTitle=Comments on the index
 thaw.plugin.index.comment.commentList=Comments
 thaw.plugin.index.comment.author=Author
 thaw.plugin.index.comment.add=Add a comment

Modified: trunk/apps/Thaw/src/thaw/i18n/thaw_fr.properties
===================================================================
--- trunk/apps/Thaw/src/thaw/i18n/thaw_fr.properties    2007-05-22 19:17:44 UTC 
(rev 13311)
+++ trunk/apps/Thaw/src/thaw/i18n/thaw_fr.properties    2007-05-22 19:24:32 UTC 
(rev 13312)
@@ -341,6 +341,8 @@
 thaw.plugin.index.comment.add=Ajouter un commentaire
 thaw.plugin.index.comment.comment=Commentaire
 thaw.plugin.index.comment.author=Auteur
+# the index name will be added at the end of this string
+thaw.plugin.index.comment.commentListTitle=Commentaires sur l'index
 thaw.plugin.index.comment.commentList=Commentaires

 thaw.plugin.index.comment.mustSelectIdentity=Vous devez selectionner une 
identit\u00e9

Modified: trunk/apps/Thaw/src/thaw/plugins/index/CommentTab.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/CommentTab.java      2007-05-22 
19:17:44 UTC (rev 13311)
+++ trunk/apps/Thaw/src/thaw/plugins/index/CommentTab.java      2007-05-22 
19:24:32 UTC (rev 13312)
@@ -43,7 +43,9 @@
        private Config config;
        private IndexBrowserPanel indexBrowser;

+       private JLabel titleLabel = null;

+
        public CommentTab(Config config,
                          FCPQueueManager queueManager,
                          IndexBrowserPanel indexBrowser) {
@@ -73,8 +75,9 @@
                northPanel.add(button, BorderLayout.WEST);
                */

-               northPanel.add(new 
JLabel(I18n.getMessage("thaw.plugin.index.comment.commentList")+" :"),
-                              BorderLayout.CENTER);
+               titleLabel = new 
JLabel(I18n.getMessage("thaw.plugin.index.comment.commentList")+" :");
+
+               northPanel.add(titleLabel,     BorderLayout.CENTER);
                northPanel.add(closeTabButton, BorderLayout.EAST);


@@ -139,6 +142,18 @@
         * will reset the page to 0
         */
        public void setIndex(Index index) {
+
+               if (titleLabel != null) {
+                       if (index != null)
+                               
titleLabel.setText(I18n.getMessage("thaw.plugin.index.comment.commentList")
+                                                  +" '"+index.toString()+"'"
+                                                  +" :");
+                       else
+                               
titleLabel.setText(I18n.getMessage("thaw.plugin.index.comment.commentList")
+                                                  +" (null)"
+                                                  +" :");
+               }
+
                for (Iterator it = buttonActions.iterator();
                     it.hasNext();) {
                        IndexManagementHelper.IndexAction action = 
(IndexManagementHelper.IndexAction)it.next();


Reply via email to