mirror of
https://github.com/Hopiu/django-rosetta.git
synced 2026-04-05 14:30:58 +00:00
If file system not case sensitive, transform string to lower so that it is correctly unique in set.
This commit is contained in:
parent
18001e170a
commit
bf8322f48a
1 changed files with 2 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue