Add language setting

Rebase of #1937