05-29-2013, 03:23 AM | #1 |
Zealot
Posts: 136
Karma: 60
Join Date: Jul 2009
Location: Munich, Germany
Device: Nook Classic rooted; Galaxy S IV with Aldiko, other older devices
|
I18N: are plugins translatable?
I want to present the GUI of my plugin(s) to be (optionally) available in multiple languages. Given they are mainly from a german-language series (and the shop for them), german would be my first choice, closely followed by what I can crowdsource
So far, I have not found any examples or documentation how to achieve this in the python code. This does not mean that I have looked at all the right or necessary places, so does anyone have a hint for me? The official documentation seems to consider only the core of calibre itself... Regards, Hakan |
05-29-2013, 03:35 AM | #2 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There is no infrastructure in calibre for plugin translations. You can however add translation resources to your plugin zip file and load them at plugin startup. See the documentation of the gettext python module. Just be careful not to use the _() global function, as that is used by calibre itself, use some other function for your translations.
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Lost some plugins | DavidJC | Calibre | 4 | 05-03-2013 10:20 PM |
Index of plugins | kiwidude | Plugins | 0 | 01-27-2011 07:19 PM |
Plugins | junkml | Plugins | 32 | 06-19-2009 06:43 AM |
Plugins? | Mitchll | Plugins | 0 | 12-27-2008 02:36 PM |