Figure localization for pdf and ebooks

This branch implements figure localization for pdfs and ebooks generation. 

The process uses the original figure files and tries to override them with the localized ones. The localized files can be obtained by translating source files in SVG format.

This has been tested with localization in french and fallback in english. It needs some more testing with other languages.