Add translation of library blocks

Signed-off-by: Michael Buesch <m@bues.ch>