-
Notifications
You must be signed in to change notification settings - Fork 13
/
SCLocStrings.pas
175 lines (149 loc) · 6.25 KB
/
SCLocStrings.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
{
This file is part of SuperCopier.
SuperCopier 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 2 of the License, or
(at your option) any later version.
SuperCopier 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.
}
unit SCLocStrings;
{$MODE Delphi}
interface
uses SCLocEngine;
var
lsDummy:WideString='Dummy!';
lsCopyDisplayName:WideString='Copy from %s to %s';
lsMoveDisplayName:WideString='Move from %s to %s';
lsCopyOf1:WideString='Copy of %s';
lsCopyOf2:WideString='Copy (%d) of %s';
lsConfirmCopylistAdd:WideString='Do you want to add the copy list to this copy?';
lsCreatingCopyList:WideString='Creating copy list, current folder:';
lsChooseDestDir:WideString='Choose destination folder';
lsAll:WideString='File %d/%d, Total: %s';
lsFile:WideString='%s, %s';
lsSpeed:WideString='%.2f KB/Sec';
lsRemaining:WideString='%s Remaining';
lsCopyWindowCancellingCaption:WideString='Cancelling - %s';
lsCopyWindowPausedCaption:WideString='Paused - %s';
lsCopyWindowWaitingCaption:WideString='Waiting - %s';
lsCopyWindowCopyEndCaption:WideString='Copy end - %s';
lsCopyWindowCopyEndErrorsCaption:WideString='Copy end (errors occured) - %s';
lsCollisionFileData:WideString='%s, Modified: %s';
lsRenameAction:WideString='Renaming';
lsDeleteAction:WideString='Deleting';
lsListAction:WideString='Listing';
lsCopyAction:WideString='Copying';
lsUpdateTimeAction:WideString='Updating time';
lsUpdateAttributesAction:WideString='Updating attributes';
lsUpdateSecurityAction:WideString='Updating security';
lsBytes:WideString='Bytes';
lsKBytes:WideString='KB';
lsMBytes:WideString='MB';
lsGBytes:WideString='GB';
lsChooseFolderToAdd:WideString='Choose the folder to add';
lsRenamingHelpCaption:WideString='Renaming help';
lsRenamingHelpText:WideString='Available tags:'+#13#10+#13#10+
'<full> : full file name with extension'+#13#10+
'<name> : file name without extension'+#13#10+
'<ext> : extension only without dot'+#13#10+
'<#>,<##>,<#...#> : incremental number, for example: # will give 1, ## will give 01, ...';
lsAdvancedHelpCaption:WideString='Advanced parameters help';
lsAdvancedHelpText:WideString='Copy buffer size:'+#13#10+
' Size of each chunk of data that is red and written, you should not modify this.'+#13#10+
'Copy window update interval:'+#13#10+
' Time between two refreshes of the copy window, the lower, the more CPU used.'+#13#10+
'Copy speed averaging interval:'+#13#10+
' The copy speed displayed is the average on this time.'+#13#10+
'Copy throttle interval:'+#13#10+
' Resolution of the speed limit, higher value gives preciser limit, lower value gives smoother speed control.'+#13#10;
lsCollisionNotifyTitle:WideString='A file already exists';
lsCollisionNotifyText:WideString='%s'+#13#10+'Filename: %s';
lsCopyErrorNotifyTitle:WideString='There was a copy error';
lsCopyErrorNotifyText:WideString='%s'+#13#10+'Filename: %s'+#13#10+'Error: %s';
lsGenericErrorNotifyTitle:WideString='There was a non blocking error';
lsGenericErrorNotifyText:WideString='%s'+#13#10+'Action: %s'+#13#10+'Target: %s'+#13#10+'Error: %s';
lsCopyEndNotifyTitle:WideString='Copy end';
lsCopyEndNotifyText:WideString='%s'+#13#10+'End speed: %s';
lsDiskSpaceNotifyTitle:WideString='Not enough free space';
lsAPINoSemaphore:WideString='Failed to initialize the API: semaphore creation failed';
lsAPINoMutex:WideString='Failed to initialize the API: mutex creation failed';
lsAPINoFileMapping:WideString='Failed to initialize the API: file mapping creation failed';
lsAPINoEvent:WideString='Failed to initialize the API: event creation failed';
lsAPIAlreadyRunning:WideString='API is already running for the current session';
lsShellExtCopyHere:WideString='SuperCopier copy here';
lsShellExtMoveHere:WideString='SuperCopier move here';
lsAlreadyRunningText:WideString='%s'+#13#10+'You can''t run SuperCopier more than once per session';
lsAlreadyRunningCaption:WideString='SuperCopier is already running';
lsUnknown:WideString='Unknown';
procedure TranslateAllStrings;
// /!\ Toujours ajouter les chaines а la fin et remplacer celles enlevйes par des lsDummy !!!!
const LOC_STRINGS_ARRAY:array[1..57] of PWideString=(
@lsCopyDisplayName,
@lsMoveDisplayName,
@lsCopyOf1,
@lsCopyOf2,
@lsConfirmCopylistAdd,
@lsCreatingCopyList,
@lsChooseDestDir,
@lsAll,
@lsFile,
@lsSpeed,
@lsRemaining,
@lsCopyWindowCancellingCaption,
@lsCopyWindowPausedCaption,
@lsCopyWindowWaitingCaption,
@lsCollisionFileData,
@lsRenameAction,
@lsDeleteAction,
@lsListAction,
@lsCopyAction,
@lsUpdateTimeAction,
@lsUpdateAttributesAction,
@lsUpdateSecurityAction,
@lsBytes,
@lsKBytes,
@lsMBytes,
@lsGBytes,
@lsChooseFolderToAdd,
@lsRenamingHelpCaption,
@lsRenamingHelpText,
@lsAdvancedHelpCaption,
@lsAdvancedHelpText,
@lsCollisionNotifyTitle,
@lsCollisionNotifyText,
@lsCopyErrorNotifyTitle,
@lsCopyErrorNotifyText,
@lsGenericErrorNotifyTitle,
@lsGenericErrorNotifyText,
@lsCopyEndNotifyTitle,
@lsCopyEndNotifyText,
@lsDummy,
@lsDummy,
@lsDiskSpaceNotifyTitle,
@lsCopyWindowCopyEndCaption,
@lsCopyWindowCopyEndErrorsCaption,
@lsDummy,
@lsDummy,
@lsDummy,
@lsAPINoMutex,
@lsAPINoFileMapping,
@lsAPINoEvent,
@lsShellExtCopyHere,
@lsShellExtMoveHere,
@lsAPIAlreadyRunning,
@lsAlreadyRunningText,
@lsAlreadyRunningCaption,
@lsAPINoSemaphore,
@lsUnknown
);
implementation
procedure TranslateAllStrings;
var i:Integer;
begin
for i:=Low(LOC_STRINGS_ARRAY) to High(LOC_STRINGS_ARRAY) do
LocEngine.TranslateString(i,LOC_STRINGS_ARRAY[i]^);
end;
end.