addlanguage functions and restriction to defaultlanguage