If we don't add a new event as mentioned in my previous comment, I think we could clean this up by changing it into just a call to `setLanguageOverrideForPath()` followed by `_updateLanguage()`, just like the else case below.  That keeps the code that sends the event, etc. unified in one place...