Skip to content

Commit 25026d0

Browse files
Example of integrating a non-builtin language
1 parent 86c4b84 commit 25026d0

File tree

4 files changed

+223
-0
lines changed

4 files changed

+223
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
!insertmacro LANGFILE_EXT Filipino
2+
${LangFileString} inst_qbt_req "qBittorrent (kailangan)"
3+
${LangFileString} inst_desktop "Gumawa ng Shortcut sa Desktop"
4+
${LangFileString} inst_startmenu "Gumawa ng Shortcut sa Start Menu"
5+
${LangFileString} inst_startup "Buksan rin ang qBittorrent pagkabukas ng Windows"
6+
${LangFileString} inst_torrent "Buksan ang mga .torrent file gamit ang qBittorrent"
7+
${LangFileString} inst_magnet "Buksan ang mga magnet link gamit ang qBittorrent"
8+
${LangFileString} inst_firewall "Magdagdag ng patakaran sa Windows Firewall"
9+
${LangFileString} inst_pathlimit "Tanggalin ang limitasyon ng Windows sa haba ng path (260 karakter na limitasyon sa MAX_PATH, kailangan ang Windows 10 1607 o mas bago)"
10+
${LangFileString} inst_firewallinfo "Idinaragdag ang patakaran sa Windows Firewall"
11+
${LangFileString} inst_warning "Tumatakbo pa ang qBittorrent. Pakisara ang aplikasyon bago mag-install."
12+
${LangFileString} inst_uninstall_question "Ia-uninstall ang kasalukuyang bersyon. Mananatili ang mga setting at torrent ng gumagamit."
13+
${LangFileString} inst_unist "Ina-uninstall ang nakaraang bersyon."
14+
${LangFileString} launch_qbt "Buksan ang qBittorrent."
15+
${LangFileString} inst_requires_64bit "Gagana lang ang installer na ito sa 64-bit Windows."
16+
${LangFileString} inst_requires_win10 "Kailangan ng installer na ito ang Windows 10 1809 o mas bago."
17+
${LangFileString} inst_uninstall_link_description "I-uninstall ang qBittorrent"
18+
${LangFileString} remove_files "Tanggalin ang mga file"
19+
${LangFileString} remove_shortcuts "Tanggalin ang mga shortcut"
20+
${LangFileString} remove_associations "Tanggalin ang mga asosiyasyon sa file"
21+
${LangFileString} remove_registry "Tanggalin ang mga registry key"
22+
${LangFileString} remove_conf "Tanggalin ang mga file ng kompigurasyon"
23+
${LangFileString} remove_firewall "Tanggalin ang patakaran sa Windows Firewall"
24+
${LangFileString} remove_firewallinfo "Tinatanggal ang patakaran sa Windows Firewall"
25+
${LangFileString} remove_cache "Tanggalin ang mga torrent at naka-cache na datos"
26+
${LangFileString} uninst_warning "Tumatakbo pa ang qBittorrent. Pakisara ang aplikasyon bago mag-uninstall."
27+
${LangFileString} uninst_tor_warn "Hindi tatanggalin ang asosiyasyon sa .torrent. Nakaugnay na ito sa:"
28+
${LangFileString} uninst_mag_warn "Hindi tatanggalin ang asosiyasyon sa magnet. Nakaugnay na ito sa:"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
# Header, don't edit
2+
NLF v6
3+
# Start editing here
4+
# Language ID
5+
1124
6+
# Font and size - dash (-) means default
7+
-
8+
-
9+
# Codepage - dash (-) means ASCII code page
10+
-
11+
# RTL - anything else than RTL means LTR
12+
-
13+
# Translation by ..... (any credits should go here)
14+
# ^Branding
15+
Nullsoft Install System %s
16+
# ^SetupCaption
17+
$(^Name) Setup
18+
# ^UninstallCaption
19+
$(^Name) Uninstall
20+
# ^LicenseSubCaption
21+
: License Agreement
22+
# ^ComponentsSubCaption
23+
: Installation Options
24+
# ^DirSubCaption
25+
: Installation Folder
26+
# ^InstallingSubCaption
27+
: Installing
28+
# ^CompletedSubCaption
29+
: Completed
30+
# ^UnComponentsSubCaption
31+
: Uninstallation Options
32+
# ^UnDirSubCaption
33+
: Uninstallation Folder
34+
# ^ConfirmSubCaption
35+
: Confirmation
36+
# ^UninstallingSubCaption
37+
: Uninstalling
38+
# ^UnCompletedSubCaption
39+
: Completed
40+
# ^BackBtn
41+
< &Back
42+
# ^NextBtn
43+
&Next >
44+
# ^AgreeBtn
45+
I &Agree
46+
# ^AcceptBtn
47+
I &accept the terms of the License Agreement
48+
# ^DontAcceptBtn
49+
I &do not accept the terms of the License Agreement
50+
# ^InstallBtn
51+
&Install
52+
# ^UninstallBtn
53+
&Uninstall
54+
# ^CancelBtn
55+
Cancel
56+
# ^CloseBtn
57+
&Close
58+
# ^BrowseBtn
59+
B&rowse...
60+
# ^ShowDetailsBtn
61+
Show &details
62+
# ^ClickNext
63+
Click Next to continue.
64+
# ^ClickInstall
65+
Click Install to start the installation.
66+
# ^ClickUninstall
67+
Click Uninstall to start the uninstallation.
68+
# ^Name
69+
Name
70+
# ^Completed
71+
Completed
72+
# ^LicenseText
73+
Please review the license agreement before installing $(^NameDA). If you accept all terms of the agreement, click I Agree.
74+
# ^LicenseTextCB
75+
Please review the license agreement before installing $(^NameDA). If you accept all terms of the agreement, click the check box below. $_CLICK
76+
# ^LicenseTextRB
77+
Please review the license agreement before installing $(^NameDA). If you accept all terms of the agreement, select the first option below. $_CLICK
78+
# ^UnLicenseText
79+
Please review the license agreement before uninstalling $(^NameDA). If you accept all terms of the agreement, click I Agree.
80+
# ^UnLicenseTextCB
81+
Please review the license agreement before uninstalling $(^NameDA). If you accept all terms of the agreement, click the check box below. $_CLICK
82+
# ^UnLicenseTextRB
83+
Please review the license agreement before uninstalling $(^NameDA). If you accept all terms of the agreement, select the first option below. $_CLICK
84+
# ^Custom
85+
Custom
86+
# ^ComponentsText
87+
Check the components you want to install and uncheck the components you don't want to install. $_CLICK
88+
# ^ComponentsSubText1
89+
Select the type of install:
90+
# ^ComponentsSubText2_NoInstTypes
91+
Select components to install:
92+
# ^ComponentsSubText2
93+
Or, select the optional components you wish to install:
94+
# ^UnComponentsText
95+
Check the components you want to uninstall and uncheck the components you don't want to uninstall. $_CLICK
96+
# ^UnComponentsSubText1
97+
Select the type of uninstall:
98+
# ^UnComponentsSubText2_NoInstTypes
99+
Select components to uninstall:
100+
# ^UnComponentsSubText2
101+
Or, select the optional components you wish to uninstall:
102+
# ^DirText
103+
Setup will install $(^NameDA) in the following folder. To install in a different folder, click Browse and select another folder. $_CLICK
104+
# ^DirSubText
105+
Destination Folder
106+
# ^DirBrowseText
107+
Select the folder to install $(^NameDA) in:
108+
# ^UnDirText
109+
Setup will uninstall $(^NameDA) from the following folder. To uninstall from a different folder, click Browse and select another folder. $_CLICK
110+
# ^UnDirSubText
111+
""
112+
# ^UnDirBrowseText
113+
Select the folder to uninstall $(^NameDA) from:
114+
# ^SpaceAvailable
115+
"Space available: "
116+
# ^SpaceRequired
117+
"Space required: "
118+
# ^UninstallingText
119+
$(^NameDA) will be uninstalled from the following folder. $_CLICK
120+
# ^UninstallingSubText
121+
Uninstalling from:
122+
# ^FileError
123+
Error opening file for writing: \r\n\r\n$0\r\n\r\nClick Abort to stop the installation,\r\nRetry to try again, or\r\nIgnore to skip this file.
124+
# ^FileError_NoIgnore
125+
Error opening file for writing: \r\n\r\n$0\r\n\r\nClick Retry to try again, or\r\nCancel to stop the installation.
126+
# ^CantWrite
127+
"Can't write: "
128+
# ^CopyFailed
129+
Copy failed
130+
# ^CopyTo
131+
"Copy to "
132+
# ^Registering
133+
"Registering: "
134+
# ^Unregistering
135+
"Unregistering: "
136+
# ^SymbolNotFound
137+
"Could not find symbol: "
138+
# ^CouldNotLoad
139+
"Could not load: "
140+
# ^CreateFolder
141+
"Create folder: "
142+
# ^CreateShortcut
143+
"Create shortcut: "
144+
# ^CreatedUninstaller
145+
"Created uninstaller: "
146+
# ^Delete
147+
"Delete file: "
148+
# ^DeleteOnReboot
149+
"Delete on reboot: "
150+
# ^ErrorCreatingShortcut
151+
"Error creating shortcut: "
152+
# ^ErrorCreating
153+
"Error creating: "
154+
# ^ErrorDecompressing
155+
Error decompressing data! Corrupted installer?
156+
# ^ErrorRegistering
157+
Error registering DLL
158+
# ^ExecShell
159+
"ExecShell: "
160+
# ^Exec
161+
"Execute: "
162+
# ^Extract
163+
"Extract: "
164+
# ^ErrorWriting
165+
"Extract: error writing to file "
166+
# ^InvalidOpcode
167+
Installer corrupted: invalid opcode
168+
# ^NoOLE
169+
"No OLE for: "
170+
# ^OutputFolder
171+
"Output folder: "
172+
# ^RemoveFolder
173+
"Remove folder: "
174+
# ^RenameOnReboot
175+
"Rename on reboot: "
176+
# ^Rename
177+
"Rename: "
178+
# ^Skipped
179+
"Skipped: "
180+
# ^CopyDetails
181+
Copy Details To Clipboard
182+
# ^LogInstall
183+
Log install process
184+
# ^Byte
185+
B
186+
# ^Kilo
187+
K
188+
# ^Mega
189+
M
190+
# ^Giga
191+
G
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!insertmacro LANGFILE "Filipino" = "Filipino" = ; See \Include\LangFile.nsh for a description of these parameters

dist/windows/translations.nsh

+3
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,6 @@
116116
!insertmacro LANGFILE_INCLUDE_WITHDEFAULT "${__FILEDIR__}\installer-translations\UzbekExtra.nsh" "${__FILEDIR__}\installer-translations\EnglishExtra.nsh"
117117
!insertmacro MUI_LANGUAGE "Welsh"
118118
!insertmacro LANGFILE_INCLUDE_WITHDEFAULT "${__FILEDIR__}\installer-translations\WelshExtra.nsh" "${__FILEDIR__}\installer-translations\EnglishExtra.nsh"
119+
120+
!insertmacro MUI_LANGUAGEEX "${__FILEDIR__}\installer-translations\StubNSIS" "Filipino"
121+
!insertmacro LANGFILE_INCLUDE_WITHDEFAULT "${__FILEDIR__}\installer-translations\FilipinoExtra.nsh" "${__FILEDIR__}\installer-translations\EnglishExtra.nsh"

0 commit comments

Comments
 (0)