4 #include <InterfaceDefs.h>
8 #undef B_TRANSLATION_CONTEXT
9 #define B_TRANSLATION_CONTEXT "PoorMan"
12 // ------------------------------------------------------
14 const char* STR_APP_SIG
15 = "application/x-vnd.Haiku-PoorMan";
16 const char* STR_APP_NAME
17 = B_TRANSLATE_SYSTEM_NAME("PoorMan");
18 const char* STR_ERR_WEB_DIR
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
26 "Cannot start the server");
27 const char* STR_DIR_CREATED
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.");
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_QUIT
40 = B_TRANSLATE("Quit");
41 const char* STR_MNU_EDIT
42 = B_TRANSLATE("Edit");
43 const char* STR_MNU_EDIT_COPY
44 = B_TRANSLATE("Copy");
45 const char* STR_MNU_EDIT_SELECT_ALL
46 = B_TRANSLATE("Select all");
47 const char* STR_MNU_EDIT_PREF
48 = B_TRANSLATE("Settings" B_UTF8_ELLIPSIS
);
49 const char* STR_MNU_CTRL
50 = B_TRANSLATE("Controls");
51 const char* STR_MNU_CTRL_RUN_SERVER
52 = B_TRANSLATE("Run server");
53 const char* STR_MNU_CTRL_CLEAR_HIT_COUNTER
54 = B_TRANSLATE("Clear hit counter");
55 const char* STR_MNU_CTRL_CLEAR_CONSOLE
56 = B_TRANSLATE("Clear console log");
57 const char* STR_MNU_CTRL_CLEAR_LOG_FILE
58 = B_TRANSLATE("Clear log file");
60 const char* STR_FILEPANEL_SAVE_CONSOLE
61 = B_TRANSLATE("Save log console");
62 const char* STR_FILEPANEL_SAVE_CONSOLE_SELECTION
63 = B_TRANSLATE("Save log console selection");
64 const char* STR_TXT_VIEW
65 = B_TRANSLATE("Logging view");
67 // ------------------------------------------------------
69 char* STR_WIN_NAME_PREF
70 = (char*)B_TRANSLATE("PoorMan settings");
72 const char* STR_SETTINGS_FILE_NAME
74 const char* STR_DEFAULT_WEB_DIRECTORY
75 = "/boot/home/public_html";
76 const char* STR_TAB_SITE
77 = B_TRANSLATE("Site");
78 const char* STR_BBX_LOCATION
79 = B_TRANSLATE("Website location");
80 const char* STR_TXT_DIRECTORY
81 = B_TRANSLATE("Web folder:");
82 const char* STR_BTN_DIRECTORY
83 = B_TRANSLATE("Select web folder");
84 const char* STR_TXT_INDEX
85 = B_TRANSLATE("Start page:");
86 const char* STR_BBX_OPTIONS
87 = B_TRANSLATE("Website options");
88 const char* STR_CBX_DIR_LIST
89 = B_TRANSLATE("Send file listing if there's no start page");
90 const char* STR_CBX_DIR_LIST_LABEL
91 = B_TRANSLATE("Send file listing if there's no start page");
92 const char* STR_FILEPANEL_SELECT_WEB_DIR
93 = B_TRANSLATE("Select web folder");
95 const char* STR_TAB_LOGGING
96 = B_TRANSLATE("Logging");
97 const char* STR_BBX_CONSOLE_LOGGING
98 = B_TRANSLATE("Console logging");
99 const char* STR_CBX_LOG_CONSOLE
100 = B_TRANSLATE("Log to console");
101 const char* STR_BBX_FILE_LOGGING
102 = B_TRANSLATE("File logging");
103 const char* STR_CBX_LOG_FILE
104 = B_TRANSLATE("Log to file");
105 const char* STR_TXT_LOG_FILE_NAME
106 = B_TRANSLATE("Log file name:");
107 const char* STR_BTN_CREATE_LOG_FILE
108 = B_TRANSLATE("Create log file");
109 const char* STR_FILEPANEL_CREATE_LOG_FILE
110 = B_TRANSLATE("Create PoorMan log");
112 const char* STR_TAB_ADVANCED
113 = B_TRANSLATE("Advanced");
114 const char* STR_BBX_CONNECTION
115 = B_TRANSLATE("Connections");
116 const char* STR_SLD_LABEL
117 = B_TRANSLATE("Max. simultaneous connections:");
118 const char* STR_SLD_STATUS_LABEL
119 = B_TRANSLATE("{0, plural, one{# connection} other{# connections}}");
121 const char CMD_FILE_SAVE_AS
123 const char CMD_FILE_QUIT
125 const char CMD_EDIT_COPY
127 const char CMD_EDIT_SELECT_ALL
130 // --------------------------------
131 const rgb_color WHITE
= { 255, 255, 255, 255 };
132 const rgb_color GRAY
= { 184, 184, 184, 255 };
133 const rgb_color BACKGROUND_COLOR
= { 216, 216, 216, 255 };
134 const rgb_color BLACK
= { 0, 0, 0, 255 };
135 const rgb_color RED
= { 255, 0, 0, 255};
136 const rgb_color GREEN
= { 0, 255, 0, 255};