zipdll.nsh 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. ;ZipDLL include file for NSIS
  2. ;Written by Tim Kosse (mailto:tim.kosse@gmx.de)
  3. ;some improvements by deguix
  4. ;Supported languages with their translators in alphabetical order:
  5. ;Arabic translation by asdfuae
  6. ;Brazilian Portuguese translation by "deguix"
  7. ;Chinese, Simplified translation by Kii Ali <kiiali@cpatch.org>
  8. ;Chinese, Traditional traslation by "matini" and Kii Ali <kiiali@cpatch.org>
  9. ;Croatian translation by "iostriz"
  10. ;Danish translation by Claus Futtrup
  11. ;French translation by "veekee"
  12. ;German translation by Tim Kosse
  13. ;Hungarian translation by Toth Laszlo
  14. ;Korean translation by Seongab Kim
  15. ;Lithuanian translation by Vytautas Krivickas
  16. ;Polish translation by Krzysztof Galuszka
  17. ;Russion translation by Sergey
  18. ;Spanish translation by "dark_boy"
  19. !ifndef ZIPDLL_USED
  20. !define ZIPDLL_USED
  21. !macro ZIPDLL_EXTRACT SOURCE DESTINATION FILE
  22. !define "FILE_${FILE}"
  23. !ifndef FILE_<ALL>
  24. Push "${FILE}"
  25. !endif
  26. IfFileExists "${DESTINATION}" +2
  27. CreateDirectory "${DESTINATION}"
  28. Push "${DESTINATION}"
  29. IfFileExists "${SOURCE}" +2
  30. SetErrors
  31. Push "${SOURCE}"
  32. ;The strings that will be translated are (ready to copy,
  33. ;remove leading semicolons in your language block):
  34. !ifdef LANG_ENGLISH
  35. ;English is default language of ZipDLL, no need to push the untranslated strings
  36. ;StrCmp $LANGUAGE ${LANG_ENGLISH} 0 +1
  37. ;Push " Error: %s"
  38. ;Push "Could not get file attributes."
  39. ;Push "Error: Could not get file attributes."
  40. ;Push "Could not extract %s"
  41. ;Push " Error: Could not extract %s"
  42. ;!ifdef FILE_<ALL>
  43. ;Push " Extract: %s"
  44. ;Push " Extracting %d files and directories"
  45. ;Push "Extracting contents of %s to %s"
  46. ;!else
  47. ;Push "Specified file does not exist in archive."
  48. ;Push "Error: Specified file does not exist in archive."
  49. ;Push "Extracting the file %s from %s to %s"
  50. ;!endif
  51. ;Push "/TRANSLATE"
  52. !endif
  53. !ifdef LANG_HUNGARIAN
  54. StrCmp $LANGUAGE ${LANG_HUNGARIAN} 0 +10
  55. Push " Hiba: %s"
  56. Push "Nem olvasható a fájl attribútumai."
  57. Push "Hiba: Nem olvasható a fájl attribútumai."
  58. Push "Nem sikerült kicsomagolni a(z) %s"
  59. Push " Hiba: Nem sikerült kicsomagolni a(z) %s"
  60. !ifdef FILE_<ALL>
  61. Push " Kicsomagolás: %s"
  62. Push " %d fájl és mappa kicsomagolása"
  63. Push "%s tartalom kicsomagolása a %s helyre"
  64. !else
  65. Push "A megadott fájl nem található az arhívumban."
  66. Push "Hiba: A megadott fájl nem található az arhívumban."
  67. Push "%s fájl kcsomagolása a(z) %s fájlból a %s helyre"
  68. !endif
  69. Push "/TRANSLATE"
  70. !endif
  71. !ifdef LANG_FRENCH
  72. StrCmp $LANGUAGE ${LANG_FRENCH} 0 +10
  73. Push " Erreur : %s"
  74. Push "Impossible de récupérer les informations sur le fichier."
  75. Push "Erreur : Impossible de récupérer les informations sur le fichier."
  76. Push "Impossible de décompresser %s."
  77. Push " Erreur : Impossible de décompresser %s."
  78. !ifdef FILE_<ALL>
  79. Push " Décompression : %s"
  80. Push " Décompression de %d fichiers et répertoires"
  81. Push "Décompression des données de %s vers %s"
  82. !else
  83. Push "Le fichier spécifié n'existe pas dans l'archive"
  84. Push "Erreur : Le fichier spécifié n'existe pas dans l'archive"
  85. Push "Décompression du fichier %s depuis %s vers %s"
  86. !endif
  87. Push "/TRANSLATE"
  88. !endif
  89. !ifdef LANG_GERMAN
  90. StrCmp $LANGUAGE ${LANG_GERMAN} 0 +10
  91. Push " Fehler: %s"
  92. Push "Dateiattribute konnten nicht ermittelt werden."
  93. Push "Fehler: Dateiattribute konnten nicht ermittelt werden."
  94. Push "%s konnte nicht dekomprimiert werden."
  95. Push " Fehler: %s konnte nicht dekomprimiert werden."
  96. !ifdef FILE_<ALL>
  97. Push " Dekomprimiere: %s"
  98. Push " Dekomprimiere %d Dateien und Verzeichnisse"
  99. Push "Dekomprimiere Inhalt von %s nach %s"
  100. !else
  101. Push "Die angegebene Datei existiert nicht im Archiv"
  102. Push "Fehler: Die angegebene Datei existiert nicht im Archiv"
  103. Push "Dekomprimiere Datei %s von %s nach %s"
  104. !endif
  105. Push "/TRANSLATE"
  106. !endif
  107. !ifdef LANG_SPANISH
  108. StrCmp $LANGUAGE ${LANG_SPANISH} 0 +10
  109. Push " Error: %s"
  110. Push "No se obtuvieron atributos del archivo"
  111. Push "Error: No se obtuvieron atributos del archivo"
  112. Push "No se pudo extraer %s"
  113. Push " Error: No se pudo extraer %s"
  114. !ifdef FILE_<ALL>
  115. Push " Extraer: %s"
  116. Push " Extrayendo %d archivos y directorios"
  117. Push "Extraer archivos de %s a %s"
  118. !else
  119. Push "Archivo especificado no existe en el ZIP"
  120. Push "Error: El archivo especificado no existe en el ZIP"
  121. Push "Extrayendo el archivo %s de %s a %s"
  122. !endif
  123. Push "/TRANSLATE"
  124. !endif
  125. !ifdef LANG_PORTUGUESEBR
  126. StrCmp $LANGUAGE ${LANG_PORTUGUESEBR} 0 +10
  127. Push " Erro: %s"
  128. Push "Não se pode ler os atributos do arquivo"
  129. Push "Error: Não se pode ler os atributos do arquivo"
  130. Push "Não se pode extrair %s"
  131. Push " Erro: Não se pode extrair %s"
  132. !ifdef FILE_<ALL>
  133. Push " Extraindo: %s"
  134. Push " Extraindo %d arquivos e diretórios"
  135. Push "Extraindo arquivos de %s a %s"
  136. !else
  137. Push "O arquivo especificado não existe no ZIP"
  138. Push "Erro: O arquivo especificado não existe no ZIP"
  139. Push "Extraindo o arquivo %s de %s a %s"
  140. !endif
  141. Push "/TRANSLATE"
  142. !endif
  143. !ifdef LANG_TRADCHINESE
  144. StrCmp $LANGUAGE ${LANG_TRADCHINESE} 0 +11
  145. Push " ¿ù»~: %s"
  146. Push "µLªk¨ú±oÀÉ®×ÄÝ©Ê¡C"
  147. Push "¿ù»~: µLªk¨ú±oÀÉ®×ÄÝ©Ê¡C"
  148. Push "µLªk¸ÑÀ£ÁY %s"
  149. Push " ¿ù»~¡GµLªk¸ÑÀ£ÁY %s"
  150. !ifdef FILE_<ALL>
  151. Push " ¸ÑÀ£ÁY¡G%s"
  152. Push " ¥¿¦b¸ÑÀ£ÁY %d ÀÉ®×»P¥Ø¿ý"
  153. Push "¥¿¦b¸ÑÀ£ÁY %s ªº¤º®e¨ì %s"
  154. !else
  155. Push "«ü©wªºÀɮר䣦s¦b©óÀ£ÁY¥]¡C"
  156. Push "¿ù»~¡G«ü©wªºÀɮר䣦s¦b©óÀ£ÁY¥]¡C"
  157. Push "¥¿¦b¸ÑÀ£ÁYÀÉ®× %s ¡A±q %s ¨ì %s"
  158. !endif
  159. Push "/TRANSLATE"
  160. !endif
  161. !ifdef LANG_SIMPCHINESE
  162. StrCmp $LANGUAGE ${LANG_SIMPCHINESE} 0 +11
  163. Push " ´íÎó: %s"
  164. Push "ÎÞ·¨È¡µÃÎļþÊôÐÔ¡£"
  165. Push "´íÎó: ÎÞ·¨È¡µÃÎļþÊôÐÔ¡£"
  166. Push "ÎÞ·¨½âѹËõ %s"
  167. Push " ´íÎó£ºÎÞ·¨½âѹËõ %s"
  168. !ifdef FILE_<ALL>
  169. Push " ½âѹËõ£º%s"
  170. Push " ÕýÔÚ½âѹËõ %d ÎļþÓëĿ¼"
  171. Push "ÕýÔÚ½âѹËõ %s µÄÄÚÈݵ½ %s"
  172. !else
  173. Push "Ö¸¶¨µÄÎļþ²¢²»´æÔÚÓÚѹËõ°ü¡£"
  174. Push "´íÎó£ºÖ¸¶¨µÄÎļþ²¢²»´æÔÚÓÚѹËõ°ü¡£"
  175. Push "ÕýÔÚ½âѹËõÎļþ %s £¬´Ó %s µ½ %s"
  176. !endif
  177. Push "/TRANSLATE"
  178. !endif
  179. !ifdef LANG_LITHUANIAN
  180. StrCmp $LANGUAGE ${LANG_LITHUANIAN} 0 +10
  181. Push " Klaida: %s"
  182. Push "Negaleta gauti bylos nuorodu."
  183. Push "Klaida: Negaleta gauti bylos nuorodu."
  184. Push "Negaleta ištraukti %s"
  185. Push " Klaida: Negaleta ištraukti %s"
  186. !ifdef FILE_<ALL>
  187. Push " Ištraukiam : %s"
  188. Push " Ištraukiame %d bylas ir katalogus"
  189. Push "Ištraukiame viska is %s i %s"
  190. !else
  191. Push "Parinkta byla nesurasta šiame archyve."
  192. Push "Klaida: Parinkta byla nesurasta šiame archyve."
  193. Push "Ištraukiame byla %s iš %s i %s"
  194. !endif
  195. Push "/TRANSLATE"
  196. !endif
  197. !ifdef "LANG_POLISH"
  198. strcmp $LANGUAGE ${LANG_POLISH} 0 +10
  199. Push " B³¹d: %s"
  200. Push "Nie mo¿e pobraæ atrybutu pliku."
  201. Push "B³¹d: Nie mo¿e pobraæ atrybutu pliku."
  202. Push "Nie mo¿e rozpakowaæ %s."
  203. Push " B³¹d: Nie mo¿e rozpakowaæ %s."
  204. !ifdef FILE_<ALL>
  205. Push " Rozpakuj: %s"
  206. Push " Rozpakowywanie %d plików i katalogów"
  207. Push "Rozpakowywanie zawartoœci %s do %s"
  208. !else
  209. Push "Plik nie istnieje w archiwum"
  210. Push "B³¹d: Plik nie istnieje w archiwum"
  211. Push "Rozpakowywanie pliku %s z %s do %s"
  212. !endif
  213. Push "/TRANSLATE"
  214. !endif
  215. !ifdef "LANG_KOREAN"
  216. strcmp $LANGUAGE ${LANG_KOREAN} 0 +10
  217. Push " 오류 : %s"
  218. Push "파일 속성을 얻어올 수 없습니다."
  219. Push "오류: 파일 속성을 얻어올 수 없습니다."
  220. Push "%s을(를) 풀 수 없습니다."
  221. Push " 오류: %s을(를) 풀 수 없습니다."
  222. !ifdef FILE_<ALL>
  223. Push " 풀기 : %s"
  224. Push " %d개의 파일과 폴더를 푸는 중"
  225. Push "%s의 내용을 %s에 푸는 중"
  226. !else
  227. Push "지정된 파일이 압축 파일 안에 없습니다."
  228. Push "오류: 지정된 파일이 압축 파일 안에 없습니다."
  229. Push "%s 파일을 %s에서 %s로 푸는 중"
  230. !endif
  231. Push "/TRANSLATE"
  232. !endif
  233. !ifdef "LANG_RUSSIAN"
  234. strcmp $LANGUAGE ${LANG_RUSSIAN} 0 +10
  235. Push " Îøèáêà: %s"
  236. Push "Íå ìîãó ïîëó÷èòü àòðèáóòû ôàéëà."
  237. Push "Îøèáêà: Íå ìîãó ïîëó÷èòü àòðèáóòû ôàéëà."
  238. Push "Íå ìîãó èçâëå÷ü %s"
  239. Push " Îøèáêà: Íå ìîãó èçâëå÷ü %s"
  240. !ifdef LANG_<ALL>
  241. Push " Èçâëåêàþ : %s"
  242. Push " Èçâëå÷åíèå %d ôàéëîâ è ïàïîê"
  243. Push "Ñïèñîê èçâëåêàåìûõ ôàéëîâ èç %s â %s"
  244. !else
  245. Push "Èçâëåêàåìûé ôàéë íå îáíàðóæåí â àðõèâå."
  246. Push "Îøèáêà: SÈçâëåêàåìûé ôàéë íå îáíàðóæåí â àðõèâå."
  247. Push "Èçâëå÷åíèå ôàéëà %s èç %s â %s"
  248. !endif
  249. Push "/TRANSLATE"
  250. !endif
  251. !ifdef LANG_ARABIC
  252. StrCmp $LANGUAGE ${LANG_ARABIC} 0 +10
  253. Push " ÎØÇÁ: %s"
  254. Push "áã íÍÕá Úáì ÎÕÇÆÕ ÇáãáÝ."
  255. Push "ÎØÇÁ: áã íÍÕá Úáì ÎÕÇÆÕ ÇáãáÝ."
  256. Push "áÇ íãßä ÇÓÊÎÑÇÌ %s"
  257. Push " ÎØÇÁ: áÇ íãßä ÇÓÊÎÑÇÌ %s"
  258. !ifdef FILE_<ALL>
  259. Push " ÇÓÊÎÑÇÌ : %s"
  260. Push " ÇÓÊÎÑÇÌ ãÌáÏÇÊ æ ãáÝÇÊ %d"
  261. Push "ÇÓÊÎÑÇÌ ãÍÊæíÇÊ %s Åáì %s"
  262. !else
  263. Push "ÇáãáÝ ÛíÑ ãæÌæÏ Ýí ÇáÓÌá."
  264. Push "ÎØÇÁ: ÇáãáÝ ÛíÑ ãæÌæÏ Ýí ÇáÓÌá."
  265. Push "ÇÓÊÎÑÇÌ ÇáãáÝ %s ãä %s Åáì %s"
  266. !endif
  267. Push "/TRANSLATE"
  268. !endif
  269. !ifdef LANG_DANISH
  270. StrCmp $LANGUAGE ${LANG_DANISH} 0 +10
  271. Push " Fejl: %s"
  272. Push "Kunne ikke læse fil attributter."
  273. Push "Fejl: Kunne ikke læse fil attributter."
  274. Push "Kunne ikke udpakke %s"
  275. Push " Fejl: Kunne ikke udpakke %s"
  276. !ifdef FILE_<ALL>
  277. Push " Udpakker: %s"
  278. Push " Udpakker %d filer og mapper"
  279. Push "Udpakker indhold fra %s til %s"
  280. !else
  281. Push "Specificeret fil eksisterer ikke i filarkivet"
  282. Push "Fejl: Specificeret fil eksisterer ikke i filarkivet"
  283. Push "Udpakker fil %s fra %s til %s"
  284. !endif
  285. Push "/TRANSLATE"
  286. !endif
  287. !ifdef LANG_CROATIAN
  288. StrCmp $LANGUAGE ${LANG_CROATIAN} 0 +10
  289. Push " Greška: %s"
  290. Push "Ne mogu dohvatiti atribute datoteke."
  291. Push "Greška: Ne mogu dohvatiti atribute datoteke."
  292. Push "Ne mogu ekstrahirati %s"
  293. Push " Greška: Ne mogu ekstrahirati %s"
  294. !ifdef FILE_<ALL>
  295. Push " Ekstrakcija: %s"
  296. Push " Ekstrakcija %d datoteka i mapa"
  297. Push "Ekstrakcija sadržaja %s u %s"
  298. !else
  299. Push "Tražena datoteka ne postoji u arhivi."
  300. Push "Greška: Tražena datoteka ne postoji u arhivi."
  301. Push "Ekstrakcija datoteke %s iz %s u %s"
  302. !endif
  303. Push "/TRANSLATE"
  304. !endif
  305. !ifdef FILE_<ALL>
  306. ZipDLL::extractall
  307. !else
  308. ZipDLL::extractfile
  309. !endif
  310. !undef "FILE_${FILE}"
  311. !macroend
  312. !endif