1 #include "constants.h" 2 3 #include <Catalog.h> 4 #include <InterfaceDefs.h> 5 #include <Locale.h> 6 7 8 #undef B_TRANSLATE_CONTEXT 9 #define B_TRANSLATE_CONTEXT "PoorMan" 10 11 12 // ------------------------------------------------------ 13 // PoorMan Window 14 const char* STR_APP_SIG 15 = "application/x-vnd.Haiku.PoorMan"; 16 char* STR_APP_NAME 17 = (char*)"PoorMan"; 18 const char* STR_ERR_WEB_DIR 19 = B_TRANSLATE( 20 "Please choose the folder to publish on the web.\n\n" 21 "You can have PoorMan create a default \"public_html\" " 22 "in your home folder.\n" 23 "Or you select one of your own folders instead."); 24 const char* STR_ERR_CANT_START 25 = B_TRANSLATE( 26 "Cannot start the server"); 27 const char* STR_DIR_CREATED 28 = B_TRANSLATE( 29 "A default web folder has been created " 30 "at \"/boot/home/public_html.\"\nMake sure there is a HTML " 31 "file named \"index.html\" in that folder."); 32 33 const char* STR_MNU_FILE 34 = B_TRANSLATE("File"); 35 const char* STR_MNU_FILE_SAVE_AS 36 = B_TRANSLATE("Save console as" B_UTF8_ELLIPSIS); 37 const char* STR_MNU_FILE_SAVE_SELECTION 38 = B_TRANSLATE("Save console selections as" B_UTF8_ELLIPSIS); 39 const char* STR_MNU_FILE_ABOUT 40 = B_TRANSLATE("About PoorMan" B_UTF8_ELLIPSIS); 41 const char* STR_MNU_FILE_QUIT 42 = B_TRANSLATE("Quit"); 43 const char* STR_MNU_EDIT 44 = B_TRANSLATE("Edit"); 45 const char* STR_MNU_EDIT_COPY 46 = B_TRANSLATE("Copy"); 47 const char* STR_MNU_EDIT_SELECT_ALL 48 = B_TRANSLATE("Select all"); 49 const char* STR_MNU_EDIT_PREF 50 = B_TRANSLATE("Settings" B_UTF8_ELLIPSIS); 51 const char* STR_MNU_CTRL 52 = B_TRANSLATE("Controls"); 53 const char* STR_MNU_CTRL_RUN_SERVER 54 = B_TRANSLATE("Run server"); 55 const char* STR_MNU_CTRL_CLEAR_HIT_COUNTER 56 = B_TRANSLATE("Clear hit counter"); 57 const char* STR_MNU_CTRL_CLEAR_CONSOLE 58 = B_TRANSLATE("Clear console log"); 59 const char* STR_MNU_CTRL_CLEAR_LOG_FILE 60 = B_TRANSLATE("Clear log file"); 61 62 const char* STR_FILEPANEL_SAVE_CONSOLE 63 = B_TRANSLATE("Save log console"); 64 const char* STR_FILEPANEL_SAVE_CONSOLE_SELECTION 65 = B_TRANSLATE("Save log console selection"); 66 const char* STR_TXT_VIEW 67 = B_TRANSLATE("Logging view"); 68 69 // ------------------------------------------------------ 70 // Preferences Window 71 char* STR_WIN_NAME_PREF 72 = (char*)B_TRANSLATE("PoorMan settings"); 73 74 const char* STR_SETTINGS_FILE_NAME 75 = "PoorMan settings"; 76 const char* STR_DEFAULT_WEB_DIRECTORY 77 = "/boot/home/public_html"; 78 const char* STR_TAB_SITE 79 = B_TRANSLATE("Site"); 80 const char* STR_BBX_LOCATION 81 = B_TRANSLATE("Website location"); 82 const char* STR_TXT_DIRECTORY 83 = B_TRANSLATE("Web folder:"); 84 const char* STR_BTN_DIRECTORY 85 = B_TRANSLATE("Select web folder"); 86 const char* STR_TXT_INDEX 87 = B_TRANSLATE("Start page:"); 88 const char* STR_BBX_OPTIONS 89 = B_TRANSLATE("Website options"); 90 const char* STR_CBX_DIR_LIST 91 = B_TRANSLATE("Send file listing if there's no start page"); 92 const char* STR_CBX_DIR_LIST_LABEL 93 = B_TRANSLATE("Send file listing if there's no start page"); 94 const char* STR_FILEPANEL_SELECT_WEB_DIR 95 = B_TRANSLATE("Select web folder"); 96 97 const char* STR_TAB_LOGGING 98 = B_TRANSLATE("Logging"); 99 const char* STR_BBX_CONSOLE_LOGGING 100 = B_TRANSLATE("Console logging"); 101 const char* STR_CBX_LOG_CONSOLE 102 = B_TRANSLATE("Log to console"); 103 const char* STR_BBX_FILE_LOGGING 104 = B_TRANSLATE("File logging"); 105 const char* STR_CBX_LOG_FILE 106 = B_TRANSLATE("Log to file"); 107 const char* STR_TXT_LOG_FILE_NAME 108 = B_TRANSLATE("Log file name:"); 109 const char* STR_BTN_CREATE_LOG_FILE 110 = B_TRANSLATE("Create log file"); 111 const char* STR_FILEPANEL_CREATE_LOG_FILE 112 = B_TRANSLATE("Create PoorMan log"); 113 114 const char* STR_TAB_ADVANCED 115 = B_TRANSLATE("Advanced"); 116 const char* STR_BBX_CONNECTION 117 = B_TRANSLATE("Connections"); 118 const char* STR_SLD_LABEL 119 = B_TRANSLATE("Max. simultaneous connections:"); 120 char* STR_SLD_STATUS_LABEL 121 = (char*)B_TRANSLATE("connections"); 122 123 const char CMD_FILE_SAVE_AS 124 = 'S'; 125 const char CMD_FILE_QUIT 126 = 'Q'; 127 const char CMD_EDIT_COPY 128 = 'C'; 129 const char CMD_EDIT_SELECT_ALL 130 = 'A'; 131 132 const char* STR_ABOUT_TITLE 133 = B_TRANSLATE("About PoorMan"); 134 const char* STR_ABOUT_BUTTON 135 = B_TRANSLATE("OK"); 136 const char* STR_ABOUT_DESC 137 = B_TRANSLATE( 138 "Poor Man's web server\n" 139 "Copyright " B_UTF8_COPYRIGHT " 2004-2009 Haiku\n" 140 "All rights reserved.\n\n" 141 "Written by: Philip Harrison, Ma Jie"); 142 143 // -------------------------------- 144 const rgb_color WHITE = { 255, 255, 255, 255 }; 145 const rgb_color GRAY = { 184, 184, 184, 255 }; 146 const rgb_color BACKGROUND_COLOR = { 216, 216, 216, 255 }; 147 const rgb_color BLACK = { 0, 0, 0, 255 }; 148 const rgb_color RED = { 255, 0, 0, 255}; 149 const rgb_color GREEN = { 0, 255, 0, 255}; 150