95 Commits

Author SHA1 Message Date
Safihre
b942e06297 Introduce Ruff linter for improved code quality
Integrates the Ruff linter into the CI workflow alongside Black. This enhances code quality and consistency by catching common issues. Addresses an initial `F821` (undefined name) finding in `__init__.py` identified by Ruff, ensuring explicit module referencing.
2026-05-13 14:25:06 +02:00
jcfp
a72bb62a9d Check nsis exists before use (#3374) 2026-04-10 12:18:45 +02:00
Safihre
71b6550661 Language use in NSIS should be stable 2026-04-06 22:38:08 +02:00
Safihre
468ab93568 Update extract_pot and pygettext
Seems we accidentally forgot some translations
2026-03-31 14:02:40 +02:00
Safihre
978be46be4 Refactor .mo file generation
Updated msgfmt to latest version
2026-03-31 13:41:49 +02:00
Safihre
2122503762 Update copyright to 2026 2026-02-09 16:44:38 +01:00
Safihre
3384beed24 Make black 26.1.0 happy again - almost 2026-01-19 12:42:51 +01:00
jcfp
e2f613da6c stop catching BaseException (#3062) 2025-04-09 15:27:22 +02:00
jcfp
d4874970cd fix root dir check in make_mo (#3061) 2025-04-05 14:17:11 +02:00
Safihre
a15bad6fb4 Use base SABnzbd version in translation files 2025-03-24 12:37:44 +01:00
thezoggy
dd0122865a bump copyright year (#3034) 2025-02-17 14:06:12 +01:00
thezoggy
9f6a9f9912 normalize and update copyright year 2024-01-02 09:42:17 +01:00
Safihre
7cbbff727f Remove (almost) all references to unused team@sabnzbd.org 2023-07-21 11:33:51 +02:00
Safihre
488719de1e Convert various re statements to walrus operator 2023-06-21 21:38:32 +02:00
Safihre
6492cfb430 Update copyright year to 2023 2023-01-25 22:39:49 +01:00
thezoggy
fb04b58b57 selenium syntax update (#2271)
* handle sab path with spaces

* fix py3.10 win "Unable to remove cache dir"

* remove unused imports

* update selenium find_element(s) syntax

* Fix selenium_wrapper usage

Co-authored-by: Safihre <safihre@sabnzbd.org>
2022-08-19 22:25:48 +02:00
Safihre
9c7b61070b Update copyright year to 2022 2022-01-07 09:29:32 +01:00
Safihre
d65eacea41 Correctly parse helpful_warning in extract_pot 2021-12-27 14:59:50 +01:00
Safihre
404aeb026d Correctly name the helpful_warning function and option
Yes, this will break current users of the old name. Too bad.
2021-12-27 11:25:52 +01:00
Safihre
faf1a44944 Black formatting update 2021-04-26 10:52:11 +02:00
Safihre
32f6ec63f2 Add NSIS-file to automated pot-file updates 2021-01-27 12:26:55 +01:00
Safihre
f0bfb08c2e Update copyright year to 2021 2021-01-03 20:43:19 +01:00
Safihre
7d9f9b4d1f Add UTF8 BOM manually to NSIS file 2020-08-26 14:58:38 +02:00
Safihre
b7dcd051b1 Split the make_mo.py command for NSIS 2020-08-19 22:21:19 +02:00
Safihre
c953498a9d Correct spelling error warning_helpful
1f554816b6
Thanks @albino1
2020-08-16 09:05:58 +02:00
Safihre
f242053d6c Also parse warning_helpfull correctly for translations 2020-08-14 22:27:09 +02:00
Safihre
2540a8174f Squashed Transifex update (3) 2020-06-29 17:57:22 +02:00
Safihre
eac5f20937 Use GNU gettext formatting for POT-translation files 2020-06-29 13:56:06 +02:00
Safihre
f294f8c740 Unify header used in POT-files
Removing header generated by pygettext so it doesn't change all the time
2020-06-28 12:19:19 +02:00
Safihre
af5acd16f7 Correct translation template file 2020-06-27 21:17:09 +02:00
Safihre
7e5a43e95c Revert "Code-formatting: optimize imports"
This reverts commit db5ff8c7e1.

Does not work on Python 3.4/3.6. Not really sure why, but don't want to investigate right now.
2020-06-14 11:29:54 +02:00
Safihre
db5ff8c7e1 Code-formatting: optimize imports 2020-06-14 10:21:33 +02:00
Safihre
233ab2ee6e Restore Windows Service functionality 2020-05-05 11:14:53 +02:00
Safihre
6d8c264e90 Update copyright year to 2020 2020-04-25 16:30:38 +02:00
Safihre
b0a50a2eac Remove deprecated parameter from gettext 2020-02-28 16:57:26 +01:00
Safihre
441cb042a2 Py3: Restore translating of Windows-installer file 2020-02-21 16:25:31 +01:00
Safihre
a9185b4aee Py3: Add pygettext to repo and basic test of POT extraction
Python is deprecating pygettext.py so we better have our own, just like msgfmt.py
2019-03-06 08:54:22 +01:00
Safihre
20ea1d0284 Py3: Code-format tools-files 2019-02-26 08:29:00 +01:00
Safihre
dbff981050 Py3: Rework Email notification
Also applied code-formatter on it.
2019-02-17 16:09:20 +01:00
Safihre
0d49dbc6e9 Py3: Remove unicoder-function 2019-02-01 20:19:24 +01:00
Safihre
2c095e97c9 Py3: Encoding-parameter of POpen is not available in Python 3.5 2019-01-29 09:26:29 +01:00
Safihre
d7bea6f134 Merge branch 'develop' into py3 2018-12-25 10:54:56 +01:00
Safihre
60afb7f444 Update copyright year to 2019 2018-12-24 11:51:48 +01:00
Safihre
0ae5c7f8aa Code improvements 2018-11-28 09:23:11 +01:00
svms
24cef0b5aa Fix locale compilation in Python 3 (#1176)
* fix locale generation for Python 3

* remove unused import

* Fix compilation on Windows
2018-10-12 21:48:19 +02:00
Safihre
2341ea44ec Py3: Fixes after merge from develop
And set the shebang to Python 3 specifc
2018-10-12 21:05:19 +02:00
Safihre
579e07adc3 Merge branch 'develop' into py3 2018-10-12 10:10:10 +02:00
Safihre
01bd0bdce0 Small cleanup of generated POT file 2018-09-07 10:11:00 +02:00
Safihre
7a7ce47769 Remove redundant parentheses 2018-09-05 11:26:38 +02:00
Safihre
6cf701599c Merge branch 'develop' into py3 2018-05-30 15:07:10 +02:00