qBittorrent/dist/windows
schnurlos bbe8184abe Update of german.nsi
Translation of 64-bit text done.
2017-04-11 18:52:27 +02:00
..
installer-translations Update of german.nsi 2017-04-11 18:52:27 +02:00
nsis plugins Update UAC nsis plugin to 0.2.4c. Building the installer with nsis 3.0 (final) is possible now. Closes #5556. 2016-09-12 17:15:39 +03:00
CMakeLists.txt add basic cmake support 2016-02-29 12:53:43 +01:00
installer.nsi Fix running the uninstaller if the user chose a different path in the installer. Closes #6080. 2017-04-05 03:04:59 +03:00
options.nsi Better 64-bit handling in the installer. 2017-04-04 01:27:12 +03:00
qbittorrent.nsi Change project directory structure. 2015-02-05 19:10:26 +03:00
qt.conf Let windows handle all widgets scaling. 2016-04-04 16:44:44 +08:00
README.txt Update UAC nsis plugin to 0.2.4c. Building the installer with nsis 3.0 (final) is possible now. Closes #5556. 2016-09-12 17:15:39 +03:00
translations.nsi Change project directory structure. 2015-02-05 19:10:26 +03:00
UAC.nsh Update UAC nsis plugin to 0.2.4c. Building the installer with nsis 3.0 (final) is possible now. Closes #5556. 2016-09-12 17:15:39 +03:00
uninstaller.nsi NSIS: set exit code to 0 on install/uninstall success 2017-03-31 14:49:23 +08:00

TRANSLATORS:

1. Use an editor that has NSIS syntax highlighting(eg Notepad++/Geany). This will
   make your life easier.
2. Open the relevant .nsi file that exists in the folder named
   "installer-translations"
3. Lines starting with ";" are considered comments. These include the
   english message to help you with the translation.
4. Edit only the part inside the quotation marks(""). Unless you know
   what you are doing.
5. Save the files with utf8 encoding and BOM.
6. Submit your changes: 1) as a pull request to the official git repo or
   2) open an issue to the bugtracker and attach them or 3) via email or
   4)the same way you provide the translations for qbt itself

PACKAGERS:

You will need NSIS and upx to make the installer. You need a unicode version of NSIS.
I tested with NSIS 3.0 (final).

1. Open the options.nsi file in an editor and change line that contains
   "!define PROG_VERSION "3.0.3"" to the version of qbittorrent you just built.
2. Extract the plugins found in the folder "nsis plugins" into your
   NSIS's unicode Plugin directory(usually C:\Program Files\NSIS\Plugins\x86-unicode).
   Only the *.dll files are needed. Use the unicode version of the dlls.
3. The script you need to compile is "qbittorrent.nsi". It includes all other necessary scripts.
4. The script expects the following file tree:

The installer script expects the following file tree:

Root:
installer-translations
	afrikaans.nsi
	....
	(all the .nsi files found here in every source release)
	welsh.nsi
translations
	qt_ar.qm
	...
        (all the .qm files found in the 'translations' folder of your Qt install. Those files differ between Qt4 and Qt5.
	 If you want to distribute Qt4 translations it is better to use the ones found in this repo under the path "dist/qt-translations".
	 They contain extra languages not distributed via the official qt4 sources.
	 Don't forget to edit the filelist in installer.nsi + uninstaller.nsi to include all your .qm files.)
	qt_zh_TW.qm
installer.nsi
license.txt
options.nsi
qbittorrent.exe
qbittorrent.nsi
qt.conf
translations.nsi
UAC.nsh
uninstaller.nsi


5. "license.txt" is a text file that contains the text rendered
   from src\gui\gpl.html or the text contained in COPYING
6. "qbittorrent.exe" is the compiled binary file.

SCRIPT HACKERS:

If you add any new LangString variable to the scripts you NEED to provide
"translations" of it to all the .nsi files inside "installer-translations.
You can always leave the english string but you have to use all the LANG_<lang name>
for the given variable. Otherwise, if the user chooses a language that you
haven't provided a LANG_<lang name> for your variable then your string will be empty.
Don't worry though, NSIS throws warnings for this when compiling the scripts.