gui: French translation
[fanfix.git] / src / be / nikiroo / fanfix / reader / ui / GuiReaderGroup.java
index efacb1f5f66c74a2282eba79e4b0debddcc98f72..3e09aeaf03efad3d2fac4ec00b1b8eced26549b6 100644 (file)
@@ -10,6 +10,7 @@ import java.util.List;
 import javax.swing.JLabel;
 import javax.swing.JPanel;
 
+import be.nikiroo.fanfix.bundles.StringIdGui;
 import be.nikiroo.fanfix.reader.ui.GuiReaderBook.BookActionListener;
 import be.nikiroo.utils.ui.WrapLayout;
 
@@ -56,7 +57,7 @@ public class GuiReaderGroup extends JPanel {
 
                if (title != null) {
                        if (title.isEmpty()) {
-                               title = "[unknown]";
+                               title = GuiReader.trans(StringIdGui.MENU_AUTHORS_UNKNOWN);
                        }
 
                        JLabel label = new JLabel();
@@ -83,13 +84,25 @@ public class GuiReaderGroup extends JPanel {
        /**
         * Refresh the list of {@link GuiReaderBook}s displayed in the control.
         * 
-        * @param stories
-        *            the stories
+        * @param infos
+        *            the new list of infos
         * @param seeWordcount
         *            TRUE to see word counts, FALSE to see authors
         */
        public void refreshBooks(List<GuiReaderBookInfo> infos, boolean seeWordcount) {
                this.infos = infos;
+               refreshBooks(seeWordcount);
+       }
+
+       /**
+        * Refresh the list of {@link GuiReaderBook}s displayed in the control.
+        * <p>
+        * Will not change the current stories.
+        * 
+        * @param seeWordcount
+        *            TRUE to see word counts, FALSE to see authors
+        */
+       public void refreshBooks(boolean seeWordcount) {
                this.words = seeWordcount;
 
                books = new ArrayList<GuiReaderBook>();