View Single Post
Old 06-27-2012, 02:54 PM   #25
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,733
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
The brackets on import just means you don't have to put a line continuation character of \ at the end of each line when you do multiline importing.

The _() indicate a language translation lookup. Since plugins that aren't bundled with calibre aren't hooked into calibre's translation mechanism, there isn't much point in using that syntax, unless you are using some text that you know exists inside calibre itself and hence will get translated.
kiwidude is offline   Reply With Quote