|
|
#16 |
|
Generally Awesome Person
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
|
|
|
|
|
|
#17 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yes, just like you call get_resources() or get_icons()
|
|
|
|
| Advert | |
|
|
|
|
#18 | ||
|
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,138
Karma: 5005503
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Excellent.
Quote:
It does, however, need to be wrapped with a try/except or a calibre version number check if a plugin still wants to support earlier versions. Code:
# pulls in translation files for _() strings
try:
load_translations()
except:
pass # load_translations() added in calibre 1.9
Quote:
The description on the Preferences -> Plugins comes from InterfaceActionBase.description and can be translated. But the desc on the Get Plugins list isn't. I assume it--and the name--are coming from a web server with the plugin list. I don't expect anything to be done about this right now, I just wanted to clarify that there are places the user will see the untranslated name. |
||
|
|
|
|
|
#19 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you are using try:/except: dont use a bare except: , use
Code:
try: load_translations() except NameError: pass |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| M92. Translation to French, Spain, Italian and other languages. Need your Support! | Booxtor | Onyx Boox | 99 | 03-18-2014 06:41 AM |
| Best eBook reader for reading French (English speaker learning French) | eVeNtInE | Which one should I buy? | 13 | 08-24-2012 05:25 AM |
| Free (ADE-ePub) Harlequin.fr romance novels in translation [French Language] | ATDrake | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 05-19-2012 04:20 PM |
| French Translation app | Rickbrit | Kobo Tablets | 0 | 01-04-2012 04:38 PM |
| French translation dictionaries in PRS 350/650? | glazwegian | Sony Reader | 15 | 01-20-2011 04:32 AM |