Separated the strings used for document tree generation from code
[biaweb2.git] / biawebstrings.hpp
index 1e073f0..c87f882 100644 (file)
@@ -2,13 +2,18 @@
 #define __BIAWEBSTRINGS__
 
 namespace biaweb {
-    // COMMON STRINGS
-    const char* GO_UP = "Go up";
-    const char* SUB_CAT = "Sub categories: ";
-    const char* ART_LIST = "List of Articles";
-    const char* INDEX = "Index Page";
-    // DATE FORMAT
-    const char* DATE_FORMAT = "%d %b %Y, %H:%M";
+    // COMMON APPLICATION STRINGS
+    const char* WARNING_PARSE_FAILED = "Warning: date parse failed on " ;
+    const char* NO_SUCH_PATH_ERROR = "No such path! Specify an existing file path" ;
+    const char* DATE_IN_FORMAT = "%Y-%m-%d %H:%M %Z";
+
+    // NAMED INDEX FOR DOCUMENT STRING BITS (LOADED FROM TEMPLATE FILE stringbits.txt)
+    const unsigned int HOME = 0;
+    const unsigned int ARTICLES_LIST = 1;
+    const unsigned int INDEX = 2;
+    const unsigned int NAVIGATION = 3;
+    const unsigned int SUB_CAT = 4;
+    const unsigned int GO_UP = 5;
 }
 
 #endif