Skip to content

Commit

Permalink
fix parsing of locale section in weokspaxce.Workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
nomed committed Jan 3, 2018
1 parent fd1be2d commit a6f0562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cubes/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def __init__(self, config=None, stores=None, load_base_model=True,
self.ns_languages = defaultdict(dict)
for section in config.sections():
if section.startswith("locale"):
lang = section[9:]
lang = section[7:]
# namespace -> path
for nsname, path in config.items(section):
if nsname == "defalt":
Expand Down

1 comment on commit a6f0562

@nomed
Copy link
Author

@nomed nomed commented on a6f0562 Jan 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when using [locale XX] lang was always to None

Please sign in to comment.