Well, thinking about it, both this 'set_language' and 'set_default_language' condition can now be squashed into a single one. I'll probably do it and change the function name to 'set_language', if you don't have any objections to that.