Skip to content

Commit

Permalink
Merge pull request #1094 from okfn/1094-not-sorry-just-empty
Browse files Browse the repository at this point in the history
Better UX for empty groups/orgs
  • Loading branch information
kindly committed Nov 28, 2013
2 parents a85b4c0 + 75fad56 commit 945acd6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ckan/templates/snippets/search_result_text.html
Expand Up @@ -13,21 +13,21 @@
#}
{% if type == 'dataset' %}
{% set text_query = ungettext('{number} dataset found for "{query}"', '{number} datasets found for "{query}"', count) %}
{% set text_query_none = _('Sorry no datasets found for "{query}"') %}
{% set text_query_none = _('No datasets found for "{query}"') %}
{% set text_no_query = ungettext('{number} dataset found', '{number} datasets found', count) %}
{% set text_no_query_none = _('Sorry no datasets found') %}
{% set text_no_query_none = _('No datasets found') %}

{% elif type == 'group' %}
{% set text_query = ungettext('{number} group found for "{query}"', '{number} groups found for "{query}"', count) %}
{% set text_query_none = _('Sorry no groups found for "{query}"') %}
{% set text_query_none = _('No groups found for "{query}"') %}
{% set text_no_query = ungettext('{number} group found', '{number} groups found', count) %}
{% set text_no_query_none = _('Sorry no groups found') %}
{% set text_no_query_none = _('No groups found') %}

{% elif type == 'organization' %}
{% set text_query = ungettext('{number} organization found for "{query}"', '{number} organizations found for "{query}"', count) %}
{% set text_query_none = _('Sorry no organizations found for "{query}"') %}
{% set text_query_none = _('No organizations found for "{query}"') %}
{% set text_no_query = ungettext('{number} organization found', '{number} organizations found', count) %}
{% set text_no_query_none = _('Sorry no organizations found') %}
{% set text_no_query_none = _('No organizations found') %}
{%- endif -%}

{% if query %}
Expand Down

0 comments on commit 945acd6

Please sign in to comment.