xref: /haiku/src/apps/terminal/TermConst.cpp (revision 52f7c9389475e19fc21487b38064b4390eeb6fea)
1 /*
2  * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 
7 #include "TermConst.h"
8 
9 #include <Catalog.h>
10 
11 
12 #undef B_TRANSLATION_CONTEXT
13 #define B_TRANSLATION_CONTEXT "Terminal ToolTips"
14 
15 
16 const char* const kToolTipSetTabTitlePlaceholders = B_TRANSLATE(
17 	"\t%d\t-\tThe current working directory of the active process.\n"
18 	"\t\t\tOptionally the maximum number of path components can be\n"
19 	"\t\t\tspecified. E.g. '%2d' for at most two components.\n"
20 	"\t%i\t-\tThe index of the tab.\n"
21 	"\t%e\t-\tThe encoding of the current tab. Not shown for UTF-8.\n"
22 	"\t%p\t-\tThe name of the active process.");
23 
24 const char* const kToolTipSetWindowTitlePlaceholders = B_TRANSLATE(
25 	"\t%d\t-\tThe current working directory of the active process in the\n"
26 	"\t\t\tcurrent tab. Optionally the maximum number of path components\n"
27 	"\t\t\tcan be specified. E.g. '%2d' for at most two components.\n"
28 	"\t%T\t-\tThe Terminal application name for the current locale.\n"
29 	"\t%e\t-\tThe encoding of the current tab. Not shown for UTF-8.\n"
30 	"\t%i\t-\tThe index of the window.\n"
31 	"\t%p\t-\tThe name of the active process in the current tab.\n"
32 	"\t%t\t-\tThe title of the current tab.");
33 
34 const char* const kToolTipCommonTitlePlaceholders = B_TRANSLATE(
35 	"\t%%\t-\tThe character '%'.\n"
36 	"\t%<\t-\tStarts a section that will only be shown if a placeholder\n"
37 	"\t\t\tafterwards is not empty.\n"
38 	"\t%>\t-\tStarts a section that will only be shown if a placeholder\n"
39 	"\t\t\tbetween a previous %< section and this one is not empty.\n"
40 	"\t%-\t-\tEnds a %< or %> section.\n\n"
41 	"Any non alpha numeric character between '%' and the format "
42 	"letter will insert a space only\nif the placeholder value is not "
43 	"empty. It will add to the %< section.");
44 
45 const char* const kShellEscapeCharacters = " ~`#$&*()\\|[]{};'\"<>?!";
46 const char* const kDefaultAdditionalWordCharacters = ":@-./_~";
47 const char* const kURLAdditionalWordCharacters = ":/-._~[]?#@!$%&'()*+,;=";
48