amath
1.8.5
Simple command line calculator
text.h
Go to the documentation of this file.
1
/*-
2
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions
7
* are met:
8
* 1. Redistributions of source code must retain the above copyright
9
* notice, this list of conditions and the following disclaimer.
10
* 2. Redistributions in binary form must reproduce the above copyright
11
* notice, this list of conditions and the following disclaimer in the
12
* documentation and/or other materials provided with the distribution.
13
*
14
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24
*
25
* Generated with FlexCat. For more information, see:
26
* http://sourceforge.net/projects/flexcat/
27
*
28
* Project homepage:
29
* https://amath.innolan.net
30
*
31
*/
32
33
#
ifndef
AMATH_LOCALE_TEXT_H
34
#
define
AMATH_LOCALE_TEXT_H
35
36
/**
37
* @file loc/text.h
38
* @brief Static texts in amath
39
*/
40
41
#
include
"main.h"
42
#
include
"amath.h"
43
#
include
"amathc.h"
44
#
include
"amatht.h"
45
#
include
"system/program.h"
46
47
#
define
INTROMSG
(
Program
->
Language
->
GetText
(
0
)
)
48
#
define
STATEMENTLINE
(
Program
->
Language
->
GetText
(
1
)
)
49
#
define
STATEMENTABOUT
(
Program
->
Language
->
GetText
(
2
)
)
50
#
define
STATEMENTCLEAR
(
Program
->
Language
->
GetText
(
3
)
)
51
#
define
STATEMENTDEF
(
Program
->
Language
->
GetText
(
4
)
)
52
#
define
STATEMENTDELETE
(
Program
->
Language
->
GetText
(
5
)
)
53
#
define
STATEMENTDIGITS
(
Program
->
Language
->
GetText
(
6
)
)
54
#
define
STATEMENTEVAL
(
Program
->
Language
->
GetText
(
7
)
)
55
#
define
STATEMENTEXECUTE
(
Program
->
Language
->
GetText
(
8
)
)
56
#
define
STATEMENTFUNCS
(
Program
->
Language
->
GetText
(
9
)
)
57
#
define
STATEMENTINPUT
(
Program
->
Language
->
GetText
(
10
)
)
58
#
define
STATEMENTHELP
(
Program
->
Language
->
GetText
(
11
)
)
59
#
define
STATEMENTOUTPUT
(
Program
->
Language
->
GetText
(
12
)
)
60
#
define
STATEMENTLIST
(
Program
->
Language
->
GetText
(
13
)
)
61
#
define
STATEMENTSHOW
(
Program
->
Language
->
GetText
(
14
)
)
62
#
define
STATEMENTLOAD
(
Program
->
Language
->
GetText
(
15
)
)
63
#
define
STATEMENTSAVE
(
Program
->
Language
->
GetText
(
16
)
)
64
#
define
STATEMENTVARS
(
Program
->
Language
->
GetText
(
17
)
)
65
#
define
STATEMENTVERSION
(
Program
->
Language
->
GetText
(
18
)
)
66
#
define
STATEMENTLICENSE
(
Program
->
Language
->
GetText
(
19
)
)
67
#
define
STATEMENTMEMORY
(
Program
->
Language
->
GetText
(
20
)
)
68
#
define
STATEMENTEXIT
(
Program
->
Language
->
GetText
(
21
)
)
69
#
define
STATEMENTFOOTER
(
Program
->
Language
->
GetText
(
22
)
)
70
#
define
TXTLISTDIRHEADER
(
Program
->
Language
->
GetText
(
23
)
)
71
#
define
TXTLISTDIRTFILE
(
Program
->
Language
->
GetText
(
24
)
)
72
#
define
TXTLISTDIRTDIR
(
Program
->
Language
->
GetText
(
25
)
)
73
#
define
TXTLISTDIRTUNKNOWN
(
Program
->
Language
->
GetText
(
26
)
)
74
#
define
TXTMEMBLOCKS
(
Program
->
Language
->
GetText
(
27
)
)
75
#
define
TXTMEMSIZE
(
Program
->
Language
->
GetText
(
28
)
)
76
#
define
TXTMEMMAXSIZE
(
Program
->
Language
->
GetText
(
29
)
)
77
#
define
HELPNOHELP
(
Program
->
Language
->
GetText
(
30
)
)
78
#
define
HELPSYNTAX
(
Program
->
Language
->
GetText
(
31
)
)
79
#
define
HELPUERROR
(
Program
->
Language
->
GetText
(
32
)
)
80
#
define
HELPVARNDEF
(
Program
->
Language
->
GetText
(
33
)
)
81
#
define
HELPFUNNDEF
(
Program
->
Language
->
GetText
(
34
)
)
82
#
define
HELPFUNRDEF
(
Program
->
Language
->
GetText
(
35
)
)
83
#
define
HELPPNUMERA
(
Program
->
Language
->
GetText
(
36
)
)
84
#
define
HELPPDIGITS
(
Program
->
Language
->
GetText
(
37
)
)
85
#
define
HELPINPUSHOW
(
Program
->
Language
->
GetText
(
38
)
)
86
#
define
HELPOUTPSHOW
(
Program
->
Language
->
GetText
(
39
)
)
87
#
define
HELPINPUSETT
(
Program
->
Language
->
GetText
(
40
)
)
88
#
define
HELPOUTPSETT
(
Program
->
Language
->
GetText
(
41
)
)
89
#
define
HELPDIGISETT
(
Program
->
Language
->
GetText
(
42
)
)
90
#
define
HELPDIGISHOW
(
Program
->
Language
->
GetText
(
43
)
)
91
#
define
HELPVARSNDEF
(
Program
->
Language
->
GetText
(
44
)
)
92
#
define
HELPFUNCNDEF
(
Program
->
Language
->
GetText
(
45
)
)
93
#
define
HELPLOADSUCC
(
Program
->
Language
->
GetText
(
46
)
)
94
#
define
HELPSAVESUCC
(
Program
->
Language
->
GetText
(
47
)
)
95
#
define
HELPSAVEFAIL
(
Program
->
Language
->
GetText
(
48
)
)
96
#
define
HELPSAVENOTH
(
Program
->
Language
->
GetText
(
49
)
)
97
#
define
HELPPREFLOAD
(
Program
->
Language
->
GetText
(
50
)
)
98
#
define
HELPPREFNOLO
(
Program
->
Language
->
GetText
(
51
)
)
99
#
define
HELPPREFSAVE
(
Program
->
Language
->
GetText
(
52
)
)
100
#
define
HELPPREFNOSA
(
Program
->
Language
->
GetText
(
53
)
)
101
#
define
MSGNODIR
(
Program
->
Language
->
GetText
(
54
)
)
102
#
define
MSGNOFILE
(
Program
->
Language
->
GetText
(
55
)
)
103
104
static
const
textdef
textdefs
[] = {
105
{ 0,
"#NORMALTEXT##BOLD##STARTMSG##NEWLINE##NORMALTEXT##COLOR02#Type help to show info.#NEWLINE#"
},
/* INTROMSG */
106
{ 1,
"------------------------------------------------------------#NEWLINE#"
},
/* STATEMENTLINE */
107
{ 2,
"about Show about text#NEWLINE#"
},
/* STATEMENTABOUT */
108
{ 3,
"clear Clear console window#NEWLINE#"
},
/* STATEMENTCLEAR */
109
{ 4,
"def Define function#NEWLINE#"
},
/* STATEMENTDEF */
110
{ 5,
"delete Delete variable or function#NEWLINE#"
},
/* STATEMENTDELETE */
111
{ 6,
"digits Set number of significant digits#NEWLINE#"
},
/* STATEMENTDIGITS */
112
{ 7,
"eval Evaluate arithmetic expression#NEWLINE#"
},
/* STATEMENTEVAL */
113
{ 8,
"execute Execute statements in a file#NEWLINE#"
},
/* STATEMENTEXECUTE */
114
{ 9,
"functions Show list of user defined functions#NEWLINE#"
},
/* STATEMENTFUNCS */
115
{ 10,
"input Change numeral input system#NEWLINE#"
},
/* STATEMENTINPUT */
116
{ 11,
"help Show basic help text#NEWLINE#"
},
/* STATEMENTHELP */
117
{ 12,
"output Change numeral output system#NEWLINE#"
},
/* STATEMENTOUTPUT */
118
{ 13,
"list Show content of a directory#NEWLINE#"
},
/* STATEMENTLIST */
119
{ 14,
"show Show content of a file#NEWLINE#"
},
/* STATEMENTSHOW */
120
{ 15,
"load Load variable and functions from file#NEWLINE#"
},
/* STATEMENTLOAD */
121
{ 16,
"save Save variable and functions to file#NEWLINE#"
},
/* STATEMENTSAVE */
122
{ 17,
"variables Show list of variables#NEWLINE#"
},
/* STATEMENTVARS */
123
{ 18,
"version Show version string#NEWLINE#"
},
/* STATEMENTVERSION */
124
{ 19,
"license Show copyright and license texts#NEWLINE#"
},
/* STATEMENTLICENSE */
125
{ 20,
"memory Show internal memory usage#NEWLINE#"
},
/* STATEMENTMEMORY */
126
{ 21,
"exit Exit program#NEWLINE#"
},
/* STATEMENTEXIT */
127
{ 22,
"The def and eval statements are optional. Functions and#NEWLINE#variables statements can be shorten to funcs and vars.#NEWLINE#"
},
/* STATEMENTFOOTER */
128
{ 23,
"Type Name#NEWLINE#--------------------------------------------------#NEWLINE#"
},
/* TXTLISTDIRHEADER */
129
{ 24,
"[file]"
},
/* TXTLISTDIRTFILE */
130
{ 25,
"[dir]"
},
/* TXTLISTDIRTDIR */
131
{ 26,
"[unknown]"
},
/* TXTLISTDIRTUNKNOWN */
132
{ 27,
"Allocated blocks:#SPACE#"
},
/* TXTMEMBLOCKS */
133
{ 28,
"Memory usage: #SPACE#"
},
/* TXTMEMSIZE */
134
{ 29,
"Maximum usage: #SPACE#"
},
/* TXTMEMMAXSIZE */
135
{ 30,
"No help is available for this topic.#NEWLINE#"
},
/* HELPNOHELP */
136
{ 31,
"Syntax error:#SPACE#"
},
/* HELPSYNTAX */
137
{ 32,
"Unexpected error:#SPACE#"
},
/* HELPUERROR */
138
{ 33,
"Variable is not defined:#SPACE#"
},
/* HELPVARNDEF */
139
{ 34,
"Function is not defined:#SPACE#"
},
/* HELPFUNNDEF */
140
{ 35,
"Function cannot be redefined:#SPACE#"
},
/* HELPFUNRDEF */
141
{ 36,
"Base value must be between 2 and 32:#SPACE#"
},
/* HELPPNUMERA */
142
{ 37,
"Number of digist must be between 0 and 15:#SPACE#"
},
/* HELPPDIGITS */
143
{ 38,
"Numeral input system is#SPACE#"
},
/* HELPINPUSHOW */
144
{ 39,
"Numeral output system is#SPACE#"
},
/* HELPOUTPSHOW */
145
{ 40,
"Input changed to#SPACE#"
},
/* HELPINPUSETT */
146
{ 41,
"Output changed to#SPACE#"
},
/* HELPOUTPSETT */
147
{ 42,
"Number of digits changed to#SPACE#"
},
/* HELPDIGISETT */
148
{ 43,
"Number of digits shown are#SPACE#"
},
/* HELPDIGISHOW */
149
{ 44,
"No variables are defined.#NEWLINE#"
},
/* HELPVARSNDEF */
150
{ 45,
"No functions are defined.#NEWLINE#"
},
/* HELPFUNCNDEF */
151
{ 46,
"Variable and functions loaded from file.#NEWLINE#"
},
/* HELPLOADSUCC */
152
{ 47,
"Variable and functions saved to file.#NEWLINE#"
},
/* HELPSAVESUCC */
153
{ 48,
"Cannot save to file.#NEWLINE#"
},
/* HELPSAVEFAIL */
154
{ 49,
"Nothing to save.#NEWLINE#"
},
/* HELPSAVENOTH */
155
{ 50,
"Preferences loaded.#NEWLINE#"
},
/* HELPPREFLOAD */
156
{ 51,
"Preferences could not be loaded.#NEWLINE#"
},
/* HELPPREFNOLO */
157
{ 52,
"Preferences saved to disk.#NEWLINE#"
},
/* HELPPREFSAVE */
158
{ 53,
"Preferences could not be saved.#NEWLINE#"
},
/* HELPPREFNOSA */
159
{ 54,
"Could not open directory:#SPACE#"
},
/* MSGNODIR */
160
{ 55,
"Cannot open file.#NEWLINE#"
},
/* MSGNOFILE */
161
{ -1,
EMPTYSTRING
}
162
};
163
164
#
endif
EMPTYSTRING
#define EMPTYSTRING
Definition:
amath.h:213
textdef
Definition:
amatht.h:33
textdefs
static const textdef textdefs[]
Definition:
text.h:104
src
loc
text.h
Generated by
1.8.13