Replace _get_locale_repository_path() in base.views with files.get_locale_directory()
Move _get_locale_paths() in base.views to files.get_locale_paths() and replaced function with the same name