renamed "getLanguageFromPath" to "getLanguageForPath"