multi languages support
[pnews.git] / war / src / main / java / pnews / servlet / HTML.java
index e9aae26..321c5a7 100644 (file)
@@ -85,11 +85,13 @@ public class HTML {
                        else
                                cl = null;
                        
-                       appendA(buf, cat.getName(), cat.getURL(), cl);
+                       appendA(buf, cat.getLabel(), cat.getURL(), cl);
                        buf.append("</li>");
                }
-               
+                buf.append("<li><a href='/en'>EN</a></li>");
+                buf.append("<li><a href='/fr'>FR</a></li>");           
                buf.append("</ul>\n");
+               
                buf.append("</nav>\n");
        }
        
@@ -116,7 +118,7 @@ public class HTML {
                        try {
                                 append(buf, e);
                         } catch (UnsupportedEncodingException e1) {
-                                LOG.log(Level.SEVERE, "fail to convert article to HTML", e1);
+                                LOG.log(Level.SEVERE, "Failed to convert article to HTML", e1);
                         }
                        if (i == 100)
                                break;