multi languages support
[pnews.git] / war / src / main / java / pnews / servlet / Config.java
index 7e2b642..5bce897 100644 (file)
@@ -21,6 +21,7 @@ import pnews.Feed;
 public class Config {
         private Feed[] feeds;
         private Category[] categories;
+        private final String[] languages = { "fr", "en" };
         private static final Logger LOG = Logger.getLogger(Config.class.getName());
                 
         private void loadCategories(JsonArray jcats) {
@@ -127,6 +128,10 @@ public class Config {
                 return categories[0];
         }
         
+        public String[] getLanguages() {
+                return languages;
+        }
+        
         public static void main(String[] args) throws UnsupportedEncodingException {
                 Config cfg;
                 Feed[] feeds;