167 Commits

Author SHA1 Message Date
un-pogaz
b0d58ade70 add 'code' dictionary to codespell setting 2025-03-23 16:02:05 +01:00
Kovid Goyal
464b68bd98
automatic fixes from ruf version 11 for spurious uses of int() 2025-03-15 08:38:07 +05:30
un-pogaz
ed2930712d various whitespace (extra-edit)
!partial 'E203,E222,E241,E271,E272'
2025-01-24 11:14:24 +01:00
un-pogaz
8d28380515 add/remove blank-line (extra-edit)
ruff 'E302,E303,E304,E305,W391'
2025-01-24 11:14:21 +01:00
un-pogaz
6c54a656ba write better list/set/dict comprehensions (auto-fix)
ruff 'C4'
2025-01-24 11:14:17 +01:00
un-pogaz
19994000c9 use f-string instead of format call (extra-edit)
ruff 'UP030,UP032' --extend-exclude "src/calibre/*" !partial
2025-01-24 11:14:16 +01:00
un-pogaz
02854d8b8c convert some legacy percent format (extra-edit) 2025-01-24 11:14:16 +01:00
un-pogaz
047ebcffe4 convert some legacy percent format (manual)
ruff 'UP031'
2025-01-24 11:14:16 +01:00
un-pogaz
0560b429bf convert some legacy percent format (auto-fix)
ruff 'UP031'
2025-01-24 11:14:16 +01:00
wrvsrx
342d9f6900
Avoid reordering subcommands 2024-06-17 00:06:11 +08:00
Kovid Goyal
068de19869
Vendor polib used in setup
Trying to keep it available system-wide is too much pain.
2024-05-02 11:36:48 +05:30
Kovid Goyal
b5c688c94d
be editor neutral 2024-04-06 11:59:44 +05:30
Kovid Goyal
53b74283a4
sort imports in all python files 2024-03-30 13:02:22 +05:30
Kovid Goyal
21b4869f22
Revert prevention of pushes to transifex
Hopefully, its working now
2024-03-02 09:53:10 +05:30
Kovid Goyal
8bb265ae6a
transifex is stalling on pushes, temporarily disable so release can be done 2024-03-01 08:38:58 +05:30
Kovid Goyal
05a398750e
Better filtering of translated languages 2023-08-27 20:41:41 +05:30
Kovid Goyal
9b12e0cb8d
Fix #2033192 [English appears three times and Spanish two times in the Choose language drop-down menu](https://bugs.launchpad.net/calibre/+bug/2033192) 2023-08-27 20:28:00 +05:30
Kovid Goyal
724848e364
... 2023-07-13 19:42:49 +05:30
Kovid Goyal
aaeeb51573
Add country name translations from the iso-codes project 2023-07-13 18:28:11 +05:30
Kovid Goyal
d9d2e798ca
Use the translations for language names from the iso-codes project 2023-07-13 17:59:22 +05:30
Kovid Goyal
a209713677
Remove the in src copy of the ISO lang and country code data
Instead download it when building the resources
2023-07-13 14:17:40 +05:30
Kovid Goyal
5a74da0443
Remove unused code 2023-07-13 11:32:44 +05:30
Kovid Goyal
98343d3720
Use common name as country name 2023-07-13 11:02:17 +05:30
Kovid Goyal
9ae6fdac9d
Fix changelog translations for a language not being used unless more than 50% of the changelog is translated into that language. Fixes #2024278 [[Enhancement] Untranslated text on the homepage](https://bugs.launchpad.net/calibre/+bug/2024278) 2023-06-18 12:22:52 +05:30
Kovid Goyal
16b94a79ef
DRYer 2023-01-19 11:07:42 +05:30
Kovid Goyal
a8129ad1ea
Fix #1987335 [sr@latin in languages](https://bugs.launchpad.net/calibre/+bug/1987335) 2022-08-23 08:04:07 +05:30
Kovid Goyal
13867e75fc
Replace a couple more Qt 5 references 2022-07-06 19:19:32 +05:30
Kovid Goyal
50a2be5ce7
Fix pgettext() not being recognized when extracting translatable strings. Fixes #1970038 [The "Miscellaneous" string is not translatable in some cases](https://bugs.launchpad.net/calibre/+bug/1970038) 2022-04-24 08:49:52 +05:30
Kovid Goyal
aec6b7c174
Use the new transifex client, which is dog-slow and not API compatible with the old one
Le Sigh.
https://github.com/transifex/cli/issues/5
2022-03-03 12:23:03 +05:30
Kovid Goyal
24c460faec
also upgrade code in setup folder 2022-01-08 12:15:18 +05:30
Eli Schwartz
887f620406
py3 porting cleanup: remove unneeded indirect import of builtins
filter, map, range, and zip were proxied through polyglot.builtins to
ensure that their `future_builtins` forms were used. In python3 this is
no longer needed and they don't need to be imported at all, from
anywhere. So, don't.
2021-10-20 21:43:43 -04:00
Zbigniew Jędrzejewski-Szmek
9d63b6ae56 Drop (object) from class definitions
Python2 had old-style classes (no "(object)"), and new style classes (with
"object"). Under Py3 this is a noop, so let's drop it to make the code
a bit shorter.
2021-09-30 09:23:56 +02:00
Kovid Goyal
65eda67d7c
Python 3.7 compat 2021-02-23 09:59:16 +05:30
Kovid Goyal
c26a981001
py3 compat in POT generation 2020-11-12 11:15:16 +05:30
Kovid Goyal
27811374ba
py3 compat 2020-09-20 08:32:21 +05:30
Kovid Goyal
b7608b71f9
py3 compat 2020-09-02 11:17:00 +05:30
Kovid Goyal
2a928a25f9
Pull translations in parallel 2020-08-23 14:34:43 +05:30
Kovid Goyal
acb42d737d
py3 compat 2020-08-23 14:30:43 +05:30
Kovid Goyal
c203373b9b
DRYer 2020-08-23 14:25:08 +05:30
Kovid Goyal
a40efa5a5f
Install Qt source and gettext for POT 2020-08-23 14:14:50 +05:30
Kovid Goyal
8f15a04d8a
py3 compat 2020-08-23 14:02:13 +05:30
Kovid Goyal
37022b6a91
Dont require git master on CI in POT 2020-08-23 11:35:19 +05:30
Kovid Goyal
6811bb0cf7
Speed up compiling translations
Avoids calling a separate msgfmt binary for ever .po file since there
are almost 4000 of them. Instead use msgfmt.py
2020-08-22 18:48:02 +05:30
Kovid Goyal
2865326de3
Sjorten compile transations output 2020-08-22 18:48:02 +05:30
Kovid Goyal
764e8bff7e
Remove py3 conditionals 2020-08-22 18:47:56 +05:30
Kovid Goyal
9ff27782de
Remove useless __future__ imports
Not needed on python3
2020-08-22 18:47:55 +05:30
Kovid Goyal
29cd8d64ea
Change shebangs to python from python2
Also remove a few other miscellaneous references to python2
2020-08-22 18:47:51 +05:30
Kovid Goyal
c7b66aada8
Dont use calibre-debug to build pot files 2020-07-31 23:26:02 +05:30
Kovid Goyal
e0ab635448
Cant generate website strings on github 2020-07-31 22:28:33 +05:30
Kovid Goyal
0137c2a74b
Make dir if it does not exist 2020-07-31 22:05:24 +05:30