120 Commits

Author SHA1 Message Date
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
Kovid Goyal
7de2e366cf
A spot of refactoring 2017-06-22 09:00:49 +05:30
Kovid Goyal
cad405d413
Make the Support calibre button in the User manual translateable 2017-06-21 00:08:23 +05:30
Kovid Goyal
af6d043375
Switch to using msgfmt to check for format errors in translated strings
It catches more than pofilter with fewer false positives.
2017-06-18 10:26:24 +05:30
Kovid Goyal
08308ee14d
Fix python brace format check not being done by pofilter 2017-06-17 18:39:41 +05:30
Kovid Goyal
346b3b4368
Extarct strings from the calibre website for translation 2017-06-12 11:48:23 +05:30
Kovid Goyal
1f2293fc11 Use vim rather than gvim 2017-02-09 23:41:06 +05:30
Kovid Goyal
f0f73830b7 Detect a generic CI server rather than just Travis 2016-07-18 15:59:06 +05:30
Kovid Goyal
51a6d79039 Allow running the translations builder on OSes other than linux where msgfmt is not available 2016-06-26 11:51:39 +05:30
Kovid Goyal
d60a3bff8f ... 2016-06-25 15:26:55 +05:30
Kovid Goyal
49b5bed673 Dont compress CS translations on travis 2016-06-25 14:23:21 +05:30
Kovid Goyal
a545fc497d Refactor the translations builder to use a cache 2016-06-25 14:18:10 +05:30
Kovid Goyal
95bb9e3c8b Cleanup up run() 2016-06-25 10:10:37 +05:30
Kovid Goyal
3882bc2578 ... 2016-06-25 09:41:44 +05:30