X-Git-Url: https://harishankar.org/repos/?p=biaweb2.git;a=blobdiff_plain;f=biawebstrings.hpp;h=cf9c87914800b38d293de9dc384d9b286ff8a973;hp=1e073f0959235f657036753a73d4e50799518dad;hb=HEAD;hpb=b6425f960a30045333fb2ef531832a0b5858200d diff --git a/biawebstrings.hpp b/biawebstrings.hpp index 1e073f0..cf9c879 100644 --- a/biawebstrings.hpp +++ b/biawebstrings.hpp @@ -2,13 +2,35 @@ #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"; + const char* GENERATED_IN = "Generated in (s): "; + const char* VISUALIZE_TREE = "Document tree: "; + const char* PROGRAM_ARGS = " -i -o -t [-q]"; + const char* OUTPUT_IN = "Output in: "; + const char* PROGRAM_USAGE = "Usage: "; + const char* PROGRAM_EXPLANATION = "Where \n \ +\t-i - source directory tree with markdown sources\n \ +\t-o - destination in which to create the HTML output\n \ +\t-t - directory containing the templates\n \ +\t-q - quiet mode (don't display messages\n \ +NOTE: directory argument need not terminate with the separator (/)"; + + // MAXIMUM SIZE OF RSS FEED + const unsigned int MAX_RSS_FEED = 10; + + // 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; + const unsigned int SUBSCRIBE = 6; + const unsigned int RSS_FEED = 7; + } #endif