updates for using the first URI segment to identify the language of the site when using multiple languages