qBittorrent
qBittorrent copied to clipboard
NSIS: Add Filipino translation
Added a Filipino translation
Hello?
Is it enough to just add such a file? Shouldn't it also be referred from some config file?
It needs additional lines for filipino language in the file "translations.nsi". Location: dist\windows\translations.nsi I've prepared one already, so probably that can be included to this PR: http://www.should.keepfree.de/qbt/translations.nsi
Not to loose the work of @IverCoder I've made a pull request for that :)
There is a shortcoming of NSIS. The language ids (eg ${LANG_ARABIC}) are kinda predefined. They are pulled in from the files/translations available in C:\Program Files (x86)\NSIS\Contrib\Language files.
There's probably a way to define more IDs (or use the raw numerical value), however there isn't documentation on that. And personally I can't be bothered to spend time figuring this out.
So in short, this PR can't be merged as-is because it won't be picked up by the scripts.
So at least first filipino needs to be added to NSIS ( https://forums.winamp.com/forum/developer-center/nsis-discussion/nsis-translations/133401-how-to-help-translating?s=&threadid=157119 ) and later it can be implemented to qbittorrent ...
This PR is stale because it has been 60 days with no activity. This PR will be automatically closed within 7 days if there is no further activity.
NSIS could get the filipino (tagalog) language with the next releases :)
Have a look here: https://forums.winamp.com/forum/developer-center/nsis-discussion/nsis-translations/4620731-filipino-tagalog-translation-of-nsis Perhaps a native speaker should investigate?
This PR is stale because it has been 60 days with no activity. This PR will be automatically closed within 7 days if there is no further activity.
whats the harm in merging this ?
https://forums.winamp.com/forum/developer-center/nsis-discussion/nsis-translations/4620731-filipino-tagalog-translation-of-nsis As long as no native speaker is verifying or updating my google translation in NSIS it will not be implemented there. After that the PR in qbittorrent is able to be accepted - that's the reason.
This PR is stale because it has been 60 days with no activity. This PR will be automatically closed within 7 days if there is no further activity.
Bump https://github.com/qbittorrent/qBittorrent/pull/18935#issuecomment-1842521566
@schnurlos do you have any experience with NSIS? Read my comment https://github.com/qbittorrent/qBittorrent/pull/18935#issuecomment-1567309779
Let me summarize how qbittorrent loads NSIS languages:
- In dist/windows/translations.nsh it enables all the included MUI translations (aka builtin NSIS translations) and all of qbt's translations for qbt's strings
- It presents a MUI dialog to the user to select a language: https://github.com/qbittorrent/qBittorrent/blob/f265eb0166f57a5dd866a5461b7bf2ab3076ee9f/dist/windows/installer.nsh#L117
- NSIS does string translation in this way:
- A string variable named
custom_varis used in code like this$(custom_var). The$()wraps and denotes a translatable string var - For every translatable string var you provide a translation using the LangString function. example:
(each file inLangString inst_startmenu ${LANG_FRENCH} "Créer un Raccourci dans le Menu Démarrer"dist/windows/installer-translations/is loaded fromtranslation.nshand each one uses LangString for their respective locale) The 2nd argument of LangString is alanguage_id. Now, refer to step 1 above. Each!insertmacro MUI_LANGUAGE <lang>sets the language id for that language. And that id is somehow used to populate the language selection dialog in step 2. However, the NSIS docs don't mention how to define/register your own language id and populate the dialog for your own language that isn't included as builtin in NSIS. - A string variable named
If you have knowledge on how to achieve this, please share it. Otherwise, there's no point in merging this PR. The language won't be shown as a choice to the end user.
Take notice of PR #20501
This PR is stale because it has been 60 days with no activity. This PR will be automatically closed within 7 days if there is no further activity.
This PR was closed because it has been stalled for some time with no activity.