builder: move some language-related code into a Languages module

Mostly code motion, no behaviour changes.
builder: output translated notes also in --notes