|
|
#31 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,571
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
|
|
|
|
|
#32 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,636
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
transifex has a command line client that might be able to do it. It will probably download all .po file and then you can use msgfmt --statistics to filter out those without translations.
|
|
|
|
| Advert | |
|
|
|
|
#33 | |
|
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,155
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
Code:
[main] host = https://www.transifex.com [calibre-plugins.fanfictiondownloader] file_filter = translations/<lang>.po source_lang = en type = PO Code:
set PYTHONIOENCODING=UTF-8
c:\Python27\tx.exe pull --minimum-perc=90 -f -a
cd translations
for %%f in (*.po) do (
"C:\Program Files (x86)\Calibre2\calibre-debug.exe" -c "from calibre.translations.msgfmt import main; main()" %%~nf
)
cd ..
Since I also setup Transifix to automatically update from the .pot files in my source repositories, that's all I need to do, aside from check for new translations periodically. |
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Thesis survey for authors, graphical designers, translators and editors | Yves Gorat | Writers' Corner | 2 | 02-16-2013 08:22 AM |
| PRS-T1 Using a reader in co-operative text processing (editors, translators, academics?) | Janie Jones | Sony Reader | 7 | 01-12-2012 03:48 PM |
| Call for translators | kovidgoyal | Calibre | 104 | 11-13-2011 07:39 AM |
| Active german translators? | Manichean | Calibre | 7 | 04-21-2011 08:34 AM |
| Translators Wanted | eBookLuke | Writer2ePub | 5 | 01-26-2011 09:57 AM |