Skip to content

Commit

Permalink
[QOLDEV-955] adjust CAPTCHA error message to use proper interface
Browse files Browse the repository at this point in the history
- Current monkey-patch doesn't work in CKAN 2.11+
  • Loading branch information
ThrawnCA committed Nov 20, 2024
1 parent 9e77637 commit f228abf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckanext/qgov/common/i18n/en_AU/LC_MESSAGES/ckanext-qgov.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
msgid "Login failed. Bad username or password."
msgstr "Login failed. Bad username or password."
6 changes: 6 additions & 0 deletions ckanext/qgov/common/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class QGOVPlugin(SingletonPlugin):
implements(plugins.IResourceController, inherit=True)
implements(plugins.IMiddleware, inherit=True)
implements(plugins.IBlueprint)
implements(plugins.ITranslation, inherit=True)

# IConfigurer

Expand Down Expand Up @@ -258,3 +259,8 @@ def after_create(self, context, data_dict):
get_action('package_resource_reorder')(context, {'id': package_id, 'order': [resource_id]})
except Exception as e:
LOG.error("Failed to move new resource to first position: %s", e)

# ITranslation

def i18n_directory(self):
return os.path.join(os.path.dirname(__file__), 'i18n')

0 comments on commit f228abf

Please sign in to comment.