Thank you David.
I prepared the translation file for Italian following your suggestion, added the .mo file to the translation directory of the unzipped plugin, repackaged it and tested the modified beta version in calibre 3.7 on Ubuntu Gnome 17.10. You can find the .po file zipped attached.
I am quite satisfied with the translation but at this time I can make the following observations:
1: if I choose 'Trova annotazioni' ('Find annotations') I can see a red text saying: 'no annotated books in library' instead of the Italian translation;
2: if I choose 'Recupera le annotazioni da Amazon Kindle' (''Fetch annotations from Amazon Kindle') with the contextual menu when I selected a book on my Kindle reader that is present also in the calibre library then a pop-up appears with the untranslated title 'Select a book to receive annotations', the translated content but then if I push the button for more details the text appears again in English; furthermore, nothing happens although a book is selected;
3: if I choose 'Recupera le annotazioni da Amazon Kindle' (''Fetch annotations from Amazon Kindle') with the contextual menu when I selected a book in the calibre library that is present and annotated on the kindle reader I got the error: ValueError:'Confidence' is not in the list, with the following details:
Code:
calibre, version 3.7.0
ERRORE: Eccezione non gestita: <b>ValueError</b>:'Confidence' is not in list
calibre 3.7 embedded-python: True is64bit: True
Linux-4.10.0-32-generic-x86_64-with-debian-stretch-sid Linux ('64bit', 'ELF')
('Linux', '4.10.0-32-generic', '#36-Ubuntu SMP Tue Aug 8 12:10:06 UTC 2017')
Python 2.7.12
Linux: ('debian', 'stretch/sid', '')
Interface language: it
Successfully initialized third party plugins: Annotations (1, 6, 1) && Generate Cover (1, 5, 21) && Count Pages (1, 8, 0) && EpubMerge (2, 1, 1)
Traceback (most recent call last):
File "calibre_plugins.annotations.action", line 362, in fetch_usb_device_annotations
File "calibre_plugins.annotations.action", line 281, in fetch_device_annotations
File "calibre_plugins.annotations.annotated_books", line 283, in __init__
ValueError: 'Confidence' is not in list
That's it for now. I am available to help you debug the plugin.
Ciao,
Dario