Skip to content

Commit

Permalink
Merge branch 'EricSoroos-5586_fix_license_localization'
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Aug 19, 2021
2 parents 7afb080 + 6438879 commit 8fb4629
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ckan/lib/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2691,7 +2691,8 @@ def license_options(existing_license_id=None):
license_ids.insert(0, existing_license_id)
return [
(license_id,
register[license_id].title if license_id in register else license_id)
_(register[license_id].title)
if license_id in register else license_id)
for license_id in license_ids]


Expand Down
2 changes: 0 additions & 2 deletions ckan/model/license.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ def load_licenses(self, license_url):
for license in license_data:
if isinstance(license, string_types):
license = license_data[license]
if license.get('title'):
license['title'] = _(license['title'])
self._create_license_list(license_data, license_url)

def _create_license_list(self, license_data, license_url=''):
Expand Down

0 comments on commit 8fb4629

Please sign in to comment.