-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathC64D64ImageStrs.pas
80 lines (65 loc) · 2.41 KB
/
C64D64ImageStrs.pas
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
68
69
70
71
72
73
74
75
76
77
78
79
//------------------------------------------------------------------------------
//C64D64ImageStrs
//===============
//Resource string definitions and helpers for C64D64Image.
//
//Copyright (C) 2016, Daniel England.
//All Rights Reserved. Released under the GPL.
//
//This program is free software: you can redistribute it and/or modify it under
//the terms of the GNU General Public License as published by the Free Software
//Foundation, either version 3 of the License, or (at your option) any later
//version.
//
//This program is distributed in the hope that it will be useful, but WITHOUT
//ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
//FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
//details.
//
//You should have received a copy of the GNU General Public License along with
//this program. If not, see <http://www.gnu.org/licenses/>.
//
//------------------------------------------------------------------------------
unit C64D64ImageStrs;
{$IFDEF FPC}
{$MODE OBJFPC}
{$ENDIF}
{$H+}
interface
resourcestring
STR_LBL_D64DOSINVALID = 'Invalid';
STR_LBL_D64VERSION = 'Version';
STR_LBL_D64YES = 'Yes';
STR_LBL_D64NO = 'No';
STR_LBL_D64TRUE = 'True';
STR_LBL_D64FALSE = 'False';
STR_LBL_D64GEOSVREND = 'VLIR End';
STR_LBL_D64GEOSVRNON = 'VLIR Blank';
STR_CAP_D64EXCEPTION = 'An Error Occurred.';
STR_FMT_D64FORMATUNK = 'File: "%s" is an unknown format.';
STR_FMT_D64EXTNSNUNK = 'File: "%s" has an invalid file extension.';
STR_FMT_D64FILENOTEX = 'File: "%s" does not exist.';
STR_FMT_D64SECOUTRNG = 'Track #%d does not contain %d sectors.';
STR_FMT_D64TRKOUTRNG = 'Current image does not contain %d tracks.';
STR_FMT_D64FILENOTOP = 'File: "%s" unable to be opened.';
STR_ERR_D64DISKISFUL = 'The current disk image is full.';
function ChooseString(const ACondition: Boolean): string; overload;
function ChooseString(const ACondition: Boolean; const ATrueStr,
AFalseStr: string): string; overload;
implementation
function ChooseString(const ACondition: Boolean): string;
begin
if ACondition then
Result:= STR_LBL_D64TRUE
else
Result:= STR_LBL_D64FALSE;
end;
function ChooseString(const ACondition: Boolean;
const ATrueStr, AFalseStr: string): string;
begin
if ACondition then
Result:= ATrueStr
else
Result:= AFalseStr;
end;
end.