forked from ethereum/mist
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzipdll.nsh
More file actions
executable file
·419 lines (312 loc) · 12.3 KB
/
zipdll.nsh
File metadata and controls
executable file
·419 lines (312 loc) · 12.3 KB
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
;ZipDLL include file for NSIS
;Written by Tim Kosse (mailto:[email protected])
;some improvements by deguix
;Supported languages with their translators in alphabetical order:
;Arabic translation by asdfuae
;Brazilian Portuguese translation by "deguix"
;Chinese, Simplified translation by Kii Ali <[email protected]>
;Chinese, Traditional traslation by "matini" and Kii Ali <[email protected]>
;Croatian translation by "iostriz"
;Danish translation by Claus Futtrup
;French translation by "veekee"
;German translation by Tim Kosse
;Hungarian translation by Toth Laszlo
;Korean translation by Seongab Kim
;Lithuanian translation by Vytautas Krivickas
;Polish translation by Krzysztof Galuszka
;Russion translation by Sergey
;Spanish translation by "dark_boy"
!ifndef ZIPDLL_USED
!define ZIPDLL_USED
!macro ZIPDLL_EXTRACT SOURCE DESTINATION FILE
!define "FILE_${FILE}"
!ifndef FILE_<ALL>
Push "${FILE}"
!endif
IfFileExists "${DESTINATION}" +2
CreateDirectory "${DESTINATION}"
Push "${DESTINATION}"
IfFileExists "${SOURCE}" +2
SetErrors
Push "${SOURCE}"
;The strings that will be translated are (ready to copy,
;remove leading semicolons in your language block):
!ifdef LANG_ENGLISH
;English is default language of ZipDLL, no need to push the untranslated strings
;StrCmp $LANGUAGE ${LANG_ENGLISH} 0 +1
;Push " Error: %s"
;Push "Could not get file attributes."
;Push "Error: Could not get file attributes."
;Push "Could not extract %s"
;Push " Error: Could not extract %s"
;!ifdef FILE_<ALL>
;Push " Extract: %s"
;Push " Extracting %d files and directories"
;Push "Extracting contents of %s to %s"
;!else
;Push "Specified file does not exist in archive."
;Push "Error: Specified file does not exist in archive."
;Push "Extracting the file %s from %s to %s"
;!endif
;Push "/TRANSLATE"
!endif
!ifdef LANG_HUNGARIAN
StrCmp $LANGUAGE ${LANG_HUNGARIAN} 0 +10
Push " Hiba: %s"
Push "Nem olvasható a fájl attribútumai."
Push "Hiba: Nem olvasható a fájl attribútumai."
Push "Nem sikerült kicsomagolni a(z) %s"
Push " Hiba: Nem sikerült kicsomagolni a(z) %s"
!ifdef FILE_<ALL>
Push " Kicsomagolás: %s"
Push " %d fájl és mappa kicsomagolása"
Push "%s tartalom kicsomagolása a %s helyre"
!else
Push "A megadott fájl nem található az arhívumban."
Push "Hiba: A megadott fájl nem található az arhívumban."
Push "%s fájl kcsomagolása a(z) %s fájlból a %s helyre"
!endif
Push "/TRANSLATE"
!endif
!ifdef LANG_FRENCH
StrCmp $LANGUAGE ${LANG_FRENCH} 0 +10
Push " Erreur : %s"
Push "Impossible de récupérer les informations sur le fichier."
Push "Erreur : Impossible de récupérer les informations sur le fichier."
Push "Impossible de décompresser %s."
Push " Erreur : Impossible de décompresser %s."
!ifdef FILE_<ALL>
Push " Décompression : %s"
Push " Décompression de %d fichiers et répertoires"
Push "Décompression des données de %s vers %s"
!else
Push "Le fichier spécifié n'existe pas dans l'archive"
Push "Erreur : Le fichier spécifié n'existe pas dans l'archive"
Push "Décompression du fichier %s depuis %s vers %s"
!endif
Push "/TRANSLATE"
!endif
!ifdef LANG_GERMAN
StrCmp $LANGUAGE ${LANG_GERMAN} 0 +10
Push " Fehler: %s"
Push "Dateiattribute konnten nicht ermittelt werden."
Push "Fehler: Dateiattribute konnten nicht ermittelt werden."
Push "%s konnte nicht dekomprimiert werden."
Push " Fehler: %s konnte nicht dekomprimiert werden."
!ifdef FILE_<ALL>
Push " Dekomprimiere: %s"
Push " Dekomprimiere %d Dateien und Verzeichnisse"
Push "Dekomprimiere Inhalt von %s nach %s"
!else
Push "Die angegebene Datei existiert nicht im Archiv"
Push "Fehler: Die angegebene Datei existiert nicht im Archiv"
Push "Dekomprimiere Datei %s von %s nach %s"
!endif
Push "/TRANSLATE"
!endif
!ifdef LANG_SPANISH
StrCmp $LANGUAGE ${LANG_SPANISH} 0 +10
Push " Error: %s"
Push "No se obtuvieron atributos del archivo"
Push "Error: No se obtuvieron atributos del archivo"
Push "No se pudo extraer %s"
Push " Error: No se pudo extraer %s"
!ifdef FILE_<ALL>
Push " Extraer: %s"
Push " Extrayendo %d archivos y directorios"
Push "Extraer archivos de %s a %s"
!else
Push "Archivo especificado no existe en el ZIP"
Push "Error: El archivo especificado no existe en el ZIP"
Push "Extrayendo el archivo %s de %s a %s"
!endif
Push "/TRANSLATE"
!endif
!ifdef LANG_PORTUGUESEBR
StrCmp $LANGUAGE ${LANG_PORTUGUESEBR} 0 +10
Push " Erro: %s"
Push "Não se pode ler os atributos do arquivo"
Push "Error: Não se pode ler os atributos do arquivo"
Push "Não se pode extrair %s"
Push " Erro: Não se pode extrair %s"
!ifdef FILE_<ALL>
Push " Extraindo: %s"
Push " Extraindo %d arquivos e diretórios"
Push "Extraindo arquivos de %s a %s"
!else
Push "O arquivo especificado não existe no ZIP"
Push "Erro: O arquivo especificado não existe no ZIP"
Push "Extraindo o arquivo %s de %s a %s"
!endif
Push "/TRANSLATE"
!endif
!ifdef LANG_TRADCHINESE
StrCmp $LANGUAGE ${LANG_TRADCHINESE} 0 +11
Push " ¿ù»~: %s"
Push "µLªk¨ú±oÀÉ®×ÄݩʡC"
Push "¿ù»~: µLªk¨ú±oÀÉ®×ÄݩʡC"
Push "µLªk¸ÑÀ£ÁY %s"
Push " ¿ù»~¡GµLªk¸ÑÀ£ÁY %s"
!ifdef FILE_<ALL>
Push " ¸ÑÀ£ÁY¡G%s"
Push " ¥¿¦b¸ÑÀ£ÁY %d ÀÉ®×»P¥Ø¿ý"
Push "¥¿¦b¸ÑÀ£ÁY %s ªº¤º®e¨ì %s"
!else
Push "«ü©wªºÀɮר䣦s¦b©óÀ£ÁY¥]¡C"
Push "¿ù»~¡G«ü©wªºÀɮר䣦s¦b©óÀ£ÁY¥]¡C"
Push "¥¿¦b¸ÑÀ£ÁYÀÉ®× %s ¡A±q %s ¨ì %s"
!endif
Push "/TRANSLATE"
!endif
!ifdef LANG_SIMPCHINESE
StrCmp $LANGUAGE ${LANG_SIMPCHINESE} 0 +11
Push " ´íÎó: %s"
Push "ÎÞ·¨È¡µÃÎļþÊôÐÔ¡£"
Push "´íÎó: ÎÞ·¨È¡µÃÎļþÊôÐÔ¡£"
Push "ÎÞ·¨½âѹËõ %s"
Push " ´íÎó£ºÎÞ·¨½âѹËõ %s"
!ifdef FILE_<ALL>
Push " ½âѹËõ£º%s"
Push " ÕýÔÚ½âѹËõ %d ÎļþÓëĿ¼"
Push "ÕýÔÚ½âѹËõ %s µÄÄÚÈݵ½ %s"
!else
Push "Ö¸¶¨µÄÎļþ²¢²»´æÔÚÓÚѹËõ°ü¡£"
Push "´íÎó£ºÖ¸¶¨µÄÎļþ²¢²»´æÔÚÓÚѹËõ°ü¡£"
Push "ÕýÔÚ½âѹËõÎļþ %s £¬´Ó %s µ½ %s"
!endif
Push "/TRANSLATE"
!endif
!ifdef LANG_LITHUANIAN
StrCmp $LANGUAGE ${LANG_LITHUANIAN} 0 +10
Push " Klaida: %s"
Push "Negaleta gauti bylos nuorodu."
Push "Klaida: Negaleta gauti bylos nuorodu."
Push "Negaleta ištraukti %s"
Push " Klaida: Negaleta ištraukti %s"
!ifdef FILE_<ALL>
Push " Ištraukiam : %s"
Push " Ištraukiame %d bylas ir katalogus"
Push "Ištraukiame viska is %s i %s"
!else
Push "Parinkta byla nesurasta šiame archyve."
Push "Klaida: Parinkta byla nesurasta šiame archyve."
Push "Ištraukiame byla %s iš %s i %s"
!endif
Push "/TRANSLATE"
!endif
!ifdef "LANG_POLISH"
strcmp $LANGUAGE ${LANG_POLISH} 0 +10
Push " B³¹d: %s"
Push "Nie mo¿e pobraæ atrybutu pliku."
Push "B³¹d: Nie mo¿e pobraæ atrybutu pliku."
Push "Nie mo¿e rozpakowaæ %s."
Push " B³¹d: Nie mo¿e rozpakowaæ %s."
!ifdef FILE_<ALL>
Push " Rozpakuj: %s"
Push " Rozpakowywanie %d plików i katalogów"
Push "Rozpakowywanie zawartoœci %s do %s"
!else
Push "Plik nie istnieje w archiwum"
Push "B³¹d: Plik nie istnieje w archiwum"
Push "Rozpakowywanie pliku %s z %s do %s"
!endif
Push "/TRANSLATE"
!endif
!ifdef "LANG_KOREAN"
strcmp $LANGUAGE ${LANG_KOREAN} 0 +10
Push " 오류 : %s"
Push "파일 속성을 얻어올 수 없습니다."
Push "오류: 파일 속성을 얻어올 수 없습니다."
Push "%s을(를) 풀 수 없습니다."
Push " 오류: %s을(를) 풀 수 없습니다."
!ifdef FILE_<ALL>
Push " 풀기 : %s"
Push " %d개의 파일과 폴더를 푸는 중"
Push "%s의 내용을 %s에 푸는 중"
!else
Push "지정된 파일이 압축 파일 안에 없습니다."
Push "오류: 지정된 파일이 압축 파일 안에 없습니다."
Push "%s 파일을 %s에서 %s로 푸는 중"
!endif
Push "/TRANSLATE"
!endif
!ifdef "LANG_RUSSIAN"
strcmp $LANGUAGE ${LANG_RUSSIAN} 0 +10
Push " Îøèáêà: %s"
Push "Íå ìîãó ïîëó÷èòü àòðèáóòû ôàéëà."
Push "Îøèáêà: Íå ìîãó ïîëó÷èòü àòðèáóòû ôàéëà."
Push "Íå ìîãó èçâëå÷ü %s"
Push " Îøèáêà: Íå ìîãó èçâëå÷ü %s"
!ifdef LANG_<ALL>
Push " Èçâëåêàþ : %s"
Push " Èçâëå÷åíèå %d ôàéëîâ è ïàïîê"
Push "Ñïèñîê èçâëåêàåìûõ ôàéëîâ èç %s â %s"
!else
Push "Èçâëåêàåìûé ôàéë íå îáíàðóæåí â àðõèâå."
Push "Îøèáêà: SÈçâëåêàåìûé ôàéë íå îáíàðóæåí â àðõèâå."
Push "Èçâëå÷åíèå ôàéëà %s èç %s â %s"
!endif
Push "/TRANSLATE"
!endif
!ifdef LANG_ARABIC
StrCmp $LANGUAGE ${LANG_ARABIC} 0 +10
Push " ÎØÇÁ: %s"
Push "áã íÍÕá Úáì ÎÕÇÆÕ ÇáãáÝ."
Push "ÎØÇÁ: áã íÍÕá Úáì ÎÕÇÆÕ ÇáãáÝ."
Push "áÇ íãßä ÇÓÊÎÑÇÌ %s"
Push " ÎØÇÁ: áÇ íãßä ÇÓÊÎÑÇÌ %s"
!ifdef FILE_<ALL>
Push " ÇÓÊÎÑÇÌ : %s"
Push " ÇÓÊÎÑÇÌ ãÌáÏÇÊ æ ãáÝÇÊ %d"
Push "ÇÓÊÎÑÇÌ ãÍÊæíÇÊ %s Åáì %s"
!else
Push "ÇáãáÝ ÛíÑ ãæÌæÏ Ýí ÇáÓÌá."
Push "ÎØÇÁ: ÇáãáÝ ÛíÑ ãæÌæÏ Ýí ÇáÓÌá."
Push "ÇÓÊÎÑÇÌ ÇáãáÝ %s ãä %s Åáì %s"
!endif
Push "/TRANSLATE"
!endif
!ifdef LANG_DANISH
StrCmp $LANGUAGE ${LANG_DANISH} 0 +10
Push " Fejl: %s"
Push "Kunne ikke læse fil attributter."
Push "Fejl: Kunne ikke læse fil attributter."
Push "Kunne ikke udpakke %s"
Push " Fejl: Kunne ikke udpakke %s"
!ifdef FILE_<ALL>
Push " Udpakker: %s"
Push " Udpakker %d filer og mapper"
Push "Udpakker indhold fra %s til %s"
!else
Push "Specificeret fil eksisterer ikke i filarkivet"
Push "Fejl: Specificeret fil eksisterer ikke i filarkivet"
Push "Udpakker fil %s fra %s til %s"
!endif
Push "/TRANSLATE"
!endif
!ifdef LANG_CROATIAN
StrCmp $LANGUAGE ${LANG_CROATIAN} 0 +10
Push " Greška: %s"
Push "Ne mogu dohvatiti atribute datoteke."
Push "Greška: Ne mogu dohvatiti atribute datoteke."
Push "Ne mogu ekstrahirati %s"
Push " Greška: Ne mogu ekstrahirati %s"
!ifdef FILE_<ALL>
Push " Ekstrakcija: %s"
Push " Ekstrakcija %d datoteka i mapa"
Push "Ekstrakcija sadržaja %s u %s"
!else
Push "Tražena datoteka ne postoji u arhivi."
Push "Greška: Tražena datoteka ne postoji u arhivi."
Push "Ekstrakcija datoteke %s iz %s u %s"
!endif
Push "/TRANSLATE"
!endif
!ifdef FILE_<ALL>
ZipDLL::extractall
!else
ZipDLL::extractfile
!endif
!undef "FILE_${FILE}"
!macroend
!endif