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
Kovid Goyal
28c7e43940
Fix #1860831 [Two Portuguese when to choose the language]( https://bugs.launchpad.net/calibre/+bug/1860831 )
2020-04-04 17:26:47 +05:30
Kovid Goyal
2cd43e0fcd
Fix #1869464 [Entries in context menu is not being translated]( https://bugs.launchpad.net/calibre/+bug/1869464 )
2020-03-28 13:47:35 +05:30
Kovid Goyal
9864af035a
Use inverted name for ISO 639 names in preference
2020-02-26 22:17:15 +05:30
Kovid Goyal
d51fa29acd
Also generate ISO 639 POT file automatically from the db. Fixes #1860856 [String not found in Transifex]( https://bugs.launchpad.net/calibre/+bug/1860856 )
2020-01-26 14:29:28 +05:30
Kovid Goyal
e307caafe8
Generate locales.zip parent dir if needed
2020-01-07 21:33:17 +05:30
Kovid Goyal
6de56e8f93
Compile changelog translations
2019-12-25 16:47:01 +05:30
Kovid Goyal
ff5039dd31
Split website and changelog translations
2019-12-25 09:58:58 +05:30
Kovid Goyal
4feb684c89
Exclude improperly named entries from ISO-639-3
...
Fixes #1851909 [Some strange languages is shown in the list](https://bugs.launchpad.net/calibre/+bug/1851909 )
2019-11-09 13:46:46 +05:30
Kovid Goyal
aa6eaca0be
Code to auto-fix duplicated language name translations
2019-11-02 10:37:45 +05:30
Kovid Goyal
77af13c5f3
Update ISO 3166 database
2019-11-02 09:31:05 +05:30
Kovid Goyal
1b93d540b7
Update the ISO 639-3 language database
2019-11-02 09:21:28 +05:30
Eli Schwartz
d50a6ddc1b
use context managers to open files
2019-07-25 01:30:54 -04:00
Kovid Goyal
ed85704799
Undo the fudge for tanslations failing on macOS as it causes another test to fail
2019-06-11 16:14:15 +05:30
Kovid Goyal
edd44a559a
...
2019-06-11 15:15:12 +05:30
Kovid Goyal
3139dff9eb
Ignore weird failure when building website translation on Travis on macOS
2019-06-11 14:59:00 +05:30
Kovid Goyal
d6b6d4c892
Use unicode keys for the ISO lang code maps
...
This means the same stored maps can be used on python2 and 3
2019-04-10 14:10:06 +05:30
Kovid Goyal
67814d2186
py3: misc fixes to get bootstrapping (almost) working
2019-03-31 19:58:00 +05:30
Kovid Goyal
4a3c9ca32f
py3: Fix checking of iso639 translations
2019-03-31 18:38:32 +05:30
Kovid Goyal
e73dbb0f99
py3: Port calls to json.dump()
2019-03-31 18:30:59 +05:30
Kovid Goyal
d1e30dfcac
Get rid of some xrange
2019-03-13 15:34:10 +05:30
Eli Schwartz
cbc42bec23
python3: add unicode/unichr wrappers to polyglot
2019-03-13 06:41:38 +05:30
Kovid Goyal
addf9af51a
Fix generation of trnaslation template for website
2019-03-07 10:22:39 +05:30
Kovid Goyal
dca2d1a51c
String changes
2018-12-10 08:36:28 +05:30
Kovid Goyal
f39f3951f4
dict fixes in the setup package
2018-09-10 20:54:35 +05:30
Kovid Goyal
d8e24e4a19
Use msgpack instead of pickle for a couple more databases
2018-09-10 17:36:57 +05:30
Kovid Goyal
1d54c2f874
Use msgpack instead of pickle for ISO 639 and 3166 databases
2018-09-10 17:14:03 +05:30