Skip to content
⌘ NSIS Forum Archive

Translate ZipDLL

50 posts

Joel#

Translate ZipDLL

I found useful the ZipDLL pluging... I'd like to contrib to translate
the pluging strings to spanish, or be translatable, same as NSISdl, as a new feature in the next version....

👍 😉
CodeSquid#
I'm the author of ZipDLL. I've added your feature request to my todo list. MAYBE I'll have time to make a translateable version this weekend.

PS: I'll do the german translation.
matini#
Could you add a feature to compress files into zip archives on
target system? I think it's useful to do some backup tasks.
CodeSquid#
I've finished the new version, I'll try upload it soon.

I've attached the DLL (source will follow soon) and a small NSIS header file for use with Modern UI which will do all required work for translation. Just use the provided macros and they automatically use the current language (if ZipDLL supports that language)
To add new languages, just look how I've done the German translation in ZipDLL.nsh.

PS: If you're 1337, extract the attached zip with ZipDLL 😁
Joel#
I think is a bug:
1 warning:
install function "ZipDLL_ExtractFileFunc" not referenced - zeroing code (24-53) out
From ZipDll
CodeSquid#
Well, it's not a bug, it just tells you that you haven't used this function...

I tried it to implement the whole stuff within a macro without the use of functions, but I did get serious troubles with goto. I could not use labels which would cause problems if using the same macro twice and relative jumps did not work at all, those were totally unpredictable.
Joel#
Well I'll use it in this way (spanish):


ZipDLL::extractall /TRANSLATE "Extrayendo archivos de %s a %s" \
"Extrayendo %d archivos y directorios" \
"Extraer: %s" "Error: No se pudo extraer %s" \
"No se pudo extraer %s" \
"Error al leer atributos" \
"No se pudieron leer los atributos del archivo" \
"Error: %s" "$INSTDIR\comdlg32.zip" "$SYSDIR"
And works fine 😁
veekee#
here is the french stuff...

the file includes the german+french ... it would be nice if one file includes all languages 😉

btw goooood work 😉
CodeSquid#
Thanks for the french translation. Small problem though: I think you haven't noticed that the strings for extractall and extractfile slightly differ. With your version, calling extractfile could let to strange behaviour or even crashes (due to missing format specifier).
Guest#
vk, please don't forget the space after *and* before the semi-colons in French 🙂
Overall, your translation is good, though.
Joel#
Spanish Translation

Here....

"No such file or directory" is not translated, this error
is when the ZipDll can't copy a extracted file 🙄 ....
CodeSquid#
Attached is a version with both German and Spanish. This version also fixes the "function not referenced" problem.

"No such file or directory" is not translated ...
This would be very difficult to fix, as this string is returned by the used zip library.
veekee#
is is the modified file .. thanks for checking it 😁 😉

yes, i made a mistake and copy/paste the strings (i though these two blocks were identical 🙁... need glasses) !
note : spaces added 😛
Guest#
Sorry to bother you with this space thing, but here's another fixed version (basically the same as yours, but you forgot 1 space in the extractall translation, and 3 in the extractfile translation) 🙂
CodeSquid#
@veekee & Netsabes: Thanks for the french translation.

I've updated the ZipDLL article in the NSIS archive, please use that version for further translations and/or changes.
deguix#
Brazilian Portuguese Translation here... 👍
matini#
I've done the Traditional Chinese translation. 🙂
The archive in CVS has the same strings (the comments) in extractfile
and extractall, so I copied those strings from old file.
CodeSquid#
Thanks for the Traditional Chinese translation (and for the comments fix), the official version has been updated
deguix#
I made some modifications to the ZipDLL.nsh be better as possible, so I did these modifications:

- Supports any UI, not just Modern UI as old versions.
- !insertmacro ZIPDLL_EXTRACT "SOURCE" "DESTINATION" ("FILE"|All) is the only command you will use.
- Removed repetitive strings, as have just one command for all.
- Fixed non-initially spaced 2 strings of Spanish and Brazilian Portuguese.

The file is right here:
Vytautas#
I will do the Lithuanian Translation ASAP. Also I noticed in an earlier post that the reason you used some functions and not macros was because fo errors with labels.

There is a solution to that problem. You should use the ${__LINE__} define, an example of how that could be used can be found in some of my Archive Pages, e.g. Font Installation pages use these quite frequently.

Vytautas