Still quite a few details to work out, but this shows the basic idea of re-using the theme mechanism to handle language plugins. Comments and questions welcome.