qBittorrent/dist/windows/README.txt

73 lines
2.9 KiB
Text
Raw Normal View History

2013-02-02 05:28:07 +04:00
TRANSLATORS:
1. Use an editor that has NSIS syntax highlighting(eg Notepad++/Geany). This will
2013-02-02 05:28:07 +04:00
make your life easier.
2. Open the relevant .nsi file that exists in the folder named
2013-02-02 05:28:07 +04:00
"installer-translations"
3. Lines starting with ";" are considered comments. These include the
2013-02-02 05:28:07 +04:00
english message to help you with the translation.
4. Edit only the part inside the quotation marks(""). Unless you know
2013-02-02 05:28:07 +04:00
what you are doing.
2020-08-05 17:33:14 +03:00
5. Save the files with UTF-8 encoding, without BOM
(this should be the default in any modern text editor).
6. Submit your changes: 1) as a pull request to the official git repo or
2013-02-02 05:28:07 +04:00
2) open an issue to the bugtracker and attach them or 3) via email or
2015-05-04 02:09:30 +03:00
4)the same way you provide the translations for qbt itself
2013-02-02 05:28:07 +04:00
PACKAGERS:
You will need NSIS 3 to make the installer. UPX is an optional requirement.
2012-09-18 23:52:09 +04:00
1. Open the config.nsi file in an editor and change line that contains
"!define QBT_VERSION "3.0.3"" to the version of qbittorrent you just built.
2. config.nsi contains some other defines that control the installer output. Read the comments in that file.
3. 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.
4. The script you need to compile is "qbittorrent.nsi". It includes all other necessary scripts.
5. The script expects the following file tree:
2012-09-18 23:52:09 +04:00
The installer script expects the following file tree:
Root:
2013-02-02 05:28:07 +04:00
installer-translations
afrikaans.nsi
....
(all the .nsi files found here in every source release)
welsh.nsi
2012-09-18 23:52:09 +04:00
translations
qt_ar.qm
2013-02-02 05:28:07 +04:00
...
(All the .qm files found in the 'translations' folder of your Qt install. Those files differ between Qt5 and Qt6.
You will need the files that conform to this globbing expression 'qt_??.qm qt_??_??.qm qtbase_??.qm qtbase_??_??.qm'.
Some of those files will be stubs. Filter any file that is smaller than 10KB in size.
Alternatively you can use the 'gather_qt_translations.py' script found in the same folder as this file.
Run it with '--help' to see its usage.)
2012-09-18 23:52:09 +04:00
qt_zh_TW.qm
2013-02-02 05:28:07 +04:00
installer.nsi
2012-09-18 23:52:09 +04:00
license.txt
config.nsi
helper.nsi
2012-09-18 23:52:09 +04:00
qbittorrent.exe
qbittorrent.pdb
2012-09-18 23:52:09 +04:00
qbittorrent.nsi
qt.conf
2013-02-02 05:28:07 +04:00
translations.nsi
UAC.nsh
2013-02-02 05:28:07 +04:00
uninstaller.nsi
6. "license.txt" is a text file that contains the text rendered
from src\gui\gpl.html
7. "qbittorrent.exe" is the compiled binary file.
8. "qbittorrent.pdb" is the compiled binary's PDB file.
2012-09-18 23:52:09 +04:00
2013-02-02 05:28:07 +04:00
SCRIPT HACKERS:
2012-09-18 23:52:09 +04:00
2013-02-02 05:28:07 +04:00
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.
2013-02-02 05:28:07 +04:00
Don't worry though, NSIS throws warnings for this when compiling the scripts.