Skip to content

Commit

Permalink
Example of integrating a non-builtin language
Browse files Browse the repository at this point in the history
  • Loading branch information
sledgehammer999 committed Mar 3, 2024
1 parent 86c4b84 commit 25026d0
Show file tree
Hide file tree
Showing 4 changed files with 223 additions and 0 deletions.
28 changes: 28 additions & 0 deletions dist/windows/installer-translations/FilipinoExtra.nsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
!insertmacro LANGFILE_EXT Filipino
${LangFileString} inst_qbt_req "qBittorrent (kailangan)"
${LangFileString} inst_desktop "Gumawa ng Shortcut sa Desktop"
${LangFileString} inst_startmenu "Gumawa ng Shortcut sa Start Menu"
${LangFileString} inst_startup "Buksan rin ang qBittorrent pagkabukas ng Windows"
${LangFileString} inst_torrent "Buksan ang mga .torrent file gamit ang qBittorrent"
${LangFileString} inst_magnet "Buksan ang mga magnet link gamit ang qBittorrent"
${LangFileString} inst_firewall "Magdagdag ng patakaran sa Windows Firewall"
${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)"
${LangFileString} inst_firewallinfo "Idinaragdag ang patakaran sa Windows Firewall"
${LangFileString} inst_warning "Tumatakbo pa ang qBittorrent. Pakisara ang aplikasyon bago mag-install."
${LangFileString} inst_uninstall_question "Ia-uninstall ang kasalukuyang bersyon. Mananatili ang mga setting at torrent ng gumagamit."
${LangFileString} inst_unist "Ina-uninstall ang nakaraang bersyon."
${LangFileString} launch_qbt "Buksan ang qBittorrent."
${LangFileString} inst_requires_64bit "Gagana lang ang installer na ito sa 64-bit Windows."
${LangFileString} inst_requires_win10 "Kailangan ng installer na ito ang Windows 10 1809 o mas bago."
${LangFileString} inst_uninstall_link_description "I-uninstall ang qBittorrent"
${LangFileString} remove_files "Tanggalin ang mga file"
${LangFileString} remove_shortcuts "Tanggalin ang mga shortcut"
${LangFileString} remove_associations "Tanggalin ang mga asosiyasyon sa file"
${LangFileString} remove_registry "Tanggalin ang mga registry key"
${LangFileString} remove_conf "Tanggalin ang mga file ng kompigurasyon"
${LangFileString} remove_firewall "Tanggalin ang patakaran sa Windows Firewall"
${LangFileString} remove_firewallinfo "Tinatanggal ang patakaran sa Windows Firewall"
${LangFileString} remove_cache "Tanggalin ang mga torrent at naka-cache na datos"
${LangFileString} uninst_warning "Tumatakbo pa ang qBittorrent. Pakisara ang aplikasyon bago mag-uninstall."
${LangFileString} uninst_tor_warn "Hindi tatanggalin ang asosiyasyon sa .torrent. Nakaugnay na ito sa:"
${LangFileString} uninst_mag_warn "Hindi tatanggalin ang asosiyasyon sa magnet. Nakaugnay na ito sa:"
191 changes: 191 additions & 0 deletions dist/windows/installer-translations/StubNSIS/Filipino.nlf
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
# Header, don't edit
NLF v6
# Start editing here
# Language ID
1124
# Font and size - dash (-) means default
-
-
# Codepage - dash (-) means ASCII code page
-
# RTL - anything else than RTL means LTR
-
# Translation by ..... (any credits should go here)
# ^Branding
Nullsoft Install System %s
# ^SetupCaption
$(^Name) Setup
# ^UninstallCaption
$(^Name) Uninstall
# ^LicenseSubCaption
: License Agreement
# ^ComponentsSubCaption
: Installation Options
# ^DirSubCaption
: Installation Folder
# ^InstallingSubCaption
: Installing
# ^CompletedSubCaption
: Completed
# ^UnComponentsSubCaption
: Uninstallation Options
# ^UnDirSubCaption
: Uninstallation Folder
# ^ConfirmSubCaption
: Confirmation
# ^UninstallingSubCaption
: Uninstalling
# ^UnCompletedSubCaption
: Completed
# ^BackBtn
< &Back
# ^NextBtn
&Next >
# ^AgreeBtn
I &Agree
# ^AcceptBtn
I &accept the terms of the License Agreement
# ^DontAcceptBtn
I &do not accept the terms of the License Agreement
# ^InstallBtn
&Install
# ^UninstallBtn
&Uninstall
# ^CancelBtn
Cancel
# ^CloseBtn
&Close
# ^BrowseBtn
B&rowse...
# ^ShowDetailsBtn
Show &details
# ^ClickNext
Click Next to continue.
# ^ClickInstall
Click Install to start the installation.
# ^ClickUninstall
Click Uninstall to start the uninstallation.
# ^Name
Name
# ^Completed
Completed
# ^LicenseText
Please review the license agreement before installing $(^NameDA). If you accept all terms of the agreement, click I Agree.
# ^LicenseTextCB
Please review the license agreement before installing $(^NameDA). If you accept all terms of the agreement, click the check box below. $_CLICK
# ^LicenseTextRB
Please review the license agreement before installing $(^NameDA). If you accept all terms of the agreement, select the first option below. $_CLICK
# ^UnLicenseText
Please review the license agreement before uninstalling $(^NameDA). If you accept all terms of the agreement, click I Agree.
# ^UnLicenseTextCB
Please review the license agreement before uninstalling $(^NameDA). If you accept all terms of the agreement, click the check box below. $_CLICK
# ^UnLicenseTextRB
Please review the license agreement before uninstalling $(^NameDA). If you accept all terms of the agreement, select the first option below. $_CLICK
# ^Custom
Custom
# ^ComponentsText
Check the components you want to install and uncheck the components you don't want to install. $_CLICK
# ^ComponentsSubText1
Select the type of install:
# ^ComponentsSubText2_NoInstTypes
Select components to install:
# ^ComponentsSubText2
Or, select the optional components you wish to install:
# ^UnComponentsText
Check the components you want to uninstall and uncheck the components you don't want to uninstall. $_CLICK
# ^UnComponentsSubText1
Select the type of uninstall:
# ^UnComponentsSubText2_NoInstTypes
Select components to uninstall:
# ^UnComponentsSubText2
Or, select the optional components you wish to uninstall:
# ^DirText
Setup will install $(^NameDA) in the following folder. To install in a different folder, click Browse and select another folder. $_CLICK
# ^DirSubText
Destination Folder
# ^DirBrowseText
Select the folder to install $(^NameDA) in:
# ^UnDirText
Setup will uninstall $(^NameDA) from the following folder. To uninstall from a different folder, click Browse and select another folder. $_CLICK
# ^UnDirSubText
""
# ^UnDirBrowseText
Select the folder to uninstall $(^NameDA) from:
# ^SpaceAvailable
"Space available: "
# ^SpaceRequired
"Space required: "
# ^UninstallingText
$(^NameDA) will be uninstalled from the following folder. $_CLICK
# ^UninstallingSubText
Uninstalling from:
# ^FileError
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.
# ^FileError_NoIgnore
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.
# ^CantWrite
"Can't write: "
# ^CopyFailed
Copy failed
# ^CopyTo
"Copy to "
# ^Registering
"Registering: "
# ^Unregistering
"Unregistering: "
# ^SymbolNotFound
"Could not find symbol: "
# ^CouldNotLoad
"Could not load: "
# ^CreateFolder
"Create folder: "
# ^CreateShortcut
"Create shortcut: "
# ^CreatedUninstaller
"Created uninstaller: "
# ^Delete
"Delete file: "
# ^DeleteOnReboot
"Delete on reboot: "
# ^ErrorCreatingShortcut
"Error creating shortcut: "
# ^ErrorCreating
"Error creating: "
# ^ErrorDecompressing
Error decompressing data! Corrupted installer?
# ^ErrorRegistering
Error registering DLL
# ^ExecShell
"ExecShell: "
# ^Exec
"Execute: "
# ^Extract
"Extract: "
# ^ErrorWriting
"Extract: error writing to file "
# ^InvalidOpcode
Installer corrupted: invalid opcode
# ^NoOLE
"No OLE for: "
# ^OutputFolder
"Output folder: "
# ^RemoveFolder
"Remove folder: "
# ^RenameOnReboot
"Rename on reboot: "
# ^Rename
"Rename: "
# ^Skipped
"Skipped: "
# ^CopyDetails
Copy Details To Clipboard
# ^LogInstall
Log install process
# ^Byte
B
# ^Kilo
K
# ^Mega
M
# ^Giga
G
1 change: 1 addition & 0 deletions dist/windows/installer-translations/StubNSIS/Filipino.nsh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!insertmacro LANGFILE "Filipino" = "Filipino" = ; See \Include\LangFile.nsh for a description of these parameters
3 changes: 3 additions & 0 deletions dist/windows/translations.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,6 @@
!insertmacro LANGFILE_INCLUDE_WITHDEFAULT "${__FILEDIR__}\installer-translations\UzbekExtra.nsh" "${__FILEDIR__}\installer-translations\EnglishExtra.nsh"
!insertmacro MUI_LANGUAGE "Welsh"
!insertmacro LANGFILE_INCLUDE_WITHDEFAULT "${__FILEDIR__}\installer-translations\WelshExtra.nsh" "${__FILEDIR__}\installer-translations\EnglishExtra.nsh"

!insertmacro MUI_LANGUAGEEX "${__FILEDIR__}\installer-translations\StubNSIS" "Filipino"
!insertmacro LANGFILE_INCLUDE_WITHDEFAULT "${__FILEDIR__}\installer-translations\FilipinoExtra.nsh" "${__FILEDIR__}\installer-translations\EnglishExtra.nsh"

0 comments on commit 25026d0

Please sign in to comment.