Refactor Window class, implement new language switching.