If file system not case sensitive, transform string to lower so that it is correctly unique in set.

This commit is contained in:
Jim 2019-03-22 10:38:15 +00:00
parent 18001e170a
commit bf8322f48a

View file

@ -116,6 +116,8 @@ def find_pos(lang, project_apps=True, django_apps=False, third_party_apps=False)
if path not in rosetta_settings.ROSETTA_EXCLUDED_PATHS:
for lang_ in langs:
dirname = os.path.join(path, lang_, 'LC_MESSAGES')
if not case_sensitive_file_system:
dirname = dirname.lower()
for fn in rosetta_settings.POFILENAMES:
filename = os.path.join(dirname, fn)
if os.path.isfile(filename):