Skip to content

Commit

Permalink
Swap path / domain in locale dict in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
phw committed Aug 24, 2023
1 parent 83f6b6f commit 75def55
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,13 +683,13 @@ def cflags_to_include_dirs(cflags):

def _picard_get_locale_files():
locales = []
path_domain = {
'po': 'picard',
os.path.join('po', 'attributes'): 'picard-attributes',
os.path.join('po', 'constants'): 'picard-constants',
os.path.join('po', 'countries'): 'picard-countries',
domain_path = {
'picard': 'po',
'picard-attributes': os.path.join('po', 'attributes'),
'picard-constants': os.path.join('po', 'constants'),
'picard-countries': os.path.join('po', 'countries'),
}
for path, domain in path_domain.items():
for domain, path in domain_path.items():
for filepath in glob.glob(os.path.join(path, '*.po')):
filename = os.path.basename(filepath)
locale = os.path.splitext(filename)[0]
Expand Down

0 comments on commit 75def55

Please sign in to comment.