-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstrings.js
67 lines (65 loc) · 2.8 KB
/
strings.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// byteCalc - Calculator for file sizes
// Copyright (C) 2015 David Lichti <[email protected]>
// This prgram is distributed under the BSD 3-Clause license
// Messages for output
var msg = {
'error': 'Could not process input. (type h for help)\n',
'res': 'Data volume: ',
'reb': ' ', // used for alignment after msg.res, should be all spaces and msg.res.length - 1 long
'help': '\
Allowed operations are:\n\
bytes Initialize with [bytes]\n\
+ bytes add [bytes]\n\
- bytes subtract [bytes]\n\
* number multiply with [number]\n\
/ number divide by [number]\n\
= result without prefix\n\
c bytes convert [bytes] to pleasant form\n\
\n\
h Show this help\n\
l Show license\n\
q Quit program\n\
\n\
Allowed units are:\n\
kB 1024^1 byte (Kilobyte)\n\
MB 1024^2 byte (Megabyte)\n\
GB 1024^3 byte (Gigabyte)\n\
TB 1024^4 byte (Terabyte)\n\
PB 1024^5 byte (Petabyte)\n\
EB 1024^6 byte (Exabyte)\n\
ZB 1024^7 byte (Zettabyte)\n\
YB 1024^8 byte (Yottabyte)\n\
',
'header': '\
byteCalc ' + conf.ver + ' - Calculator for file sizes\n\
Copyright (C) 2015 David Lichti <[email protected]>\n\
',
'license': '\
Copyright (c) 2015, David Lichti <[email protected]>\n\
All rights reserved.\n\
\n\
Redistribution and use in source and binary forms, with or without\n\
modification, are permitted provided that the following conditions are met:\n\
\n\
* Redistributions of source code must retain the above copyright notice, this\n\
list of conditions and the following disclaimer.\n\
\n\
* Redistributions in binary form must reproduce the above copyright notice,\n\
this list of conditions and the following disclaimer in the documentation\n\
and/or other materials provided with the distribution.\n\
\n\
* Neither the name of [project] nor the names of its\n\
contributors may be used to endorse or promote products derived from\n\
this software without specific prior written permission.\n\
\n\
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"\n\
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n\
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n\
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n\
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n\
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n\
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n\
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n\
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n\
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\
'};