133 Commits

Author SHA1 Message Date
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
Kovid Goyal
ce377076b9
Some py3 fixes for the setup module 2018-09-10 16:04:47 +05:30
Flaviu Tamas
0889ee85ec
Fix syntax errors
Command used:

futurize --no-diffs -f libfuturize.fixes.fix_print_with_import -f lib2to3.fixes.fix_throw -f lib2to3.fixes.fix_numliterals -f lib2to3.fixes.fix_except -f lib2to3.fixes.fix_exec -f lib2to3.fixes.fix_raise -f lib2to3.fixes.fix_tuple_params -f lib2to3.fixes.fix_ne -j20 -w -n setup recipes src manual setup.py recipes/*.recipe

And manual adjustments of print((...)) -> print(...)
2018-09-10 12:11:28 +05:30
Kovid Goyal
baee2d2546
Content server: When updating interface data do not transmit translations if they have not been changed. Saves ~30-60KB bandwidth when using non-English interface language. 2018-03-24 10:50:24 +05:30
Kovid Goyal
5ac2ae511f
Also check for the C1 control chars 2018-01-05 12:35:51 +05:30
Kovid Goyal
0053ee6456
Add a check for ASCII control codes in translation files 2018-01-05 12:31:57 +05:30
Kovid Goyal
31e693cd09
Reduce the threshold for website translations to be included 2017-08-24 00:18:46 +05:30
Kovid Goyal
b6ef1092ce
Also write lang names to website locales zip file 2017-08-23 10:57:21 +05:30
Kovid Goyal
d554fbeb81
Compile the website translations 2017-08-23 09:46:27 +05:30