Skip to content

Commit

Permalink
Merge pull request #6086 from mzimandl/kw-fixes
Browse files Browse the repository at this point in the history
link to reenter query when keywords result is empty
  • Loading branch information
tomachalek authored Jan 9, 2024
2 parents 1336d7b + e4628e6 commit 42e3ac9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
3 changes: 2 additions & 1 deletion public/files/js/translations/messages.cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,7 @@
"kwords__undefined_value": "N/A",
"kwords__undefined_value_explained": "Z důvodu nulové frekvence v referenčním korpusu nelze aplikovat příslušný výpočet",
"kwords__max_list_size_explained_{limit}": "Seznam je omezen na maximálně {limit, plural, one{# položku} few{# položky} other{# položek}}",
"kwords__no_result": "Žádný odpovídající výsledek"
"kwords__no_result": "Žádný odpovídající výsledek",
"kwords__query_again": "Zadat dotaz znovu"
}
}
3 changes: 2 additions & 1 deletion public/files/js/translations/messages.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,7 @@
"kwords__undefined_value": "N/A",
"kwords__undefined_value_explained": "Due to the zero frequency in the reference corpus, the corresponding calculation cannot be applied",
"kwords__max_list_size_explained_{limit}": "The result list is limited to at most {limit, plural, one{# item} few{# items} other{# items}}",
"kwords__no_result": "No matching result"
"kwords__no_result": "No matching result",
"kwords__query_again": "Query again"
}
}
3 changes: 2 additions & 1 deletion public/files/js/translations/messages.sl.json
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,7 @@
"kwords__undefined_value": "N/A",
"kwords__undefined_value_explained": "Due to the zero frequency in the reference corpus, the corresponding calculation cannot be applied UNTRANSLATED",
"kwords__max_list_size_explained_{limit}": "The result list is limited to at most {limit, plural, one{# item} few{# items} other{# items}} UNTRANSLATED",
"kwords__no_result": "Ni rezultatov"
"kwords__no_result": "Ni rezultatov",
"kwords__query_again": "Query again UNTRANSLATED"
}
}
3 changes: 2 additions & 1 deletion public/files/js/translations/messages.szl.json
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,7 @@
"kwords__undefined_value": "N/A",
"kwords__undefined_value_explained": "Due to the zero frequency in the reference corpus, the corresponding calculation cannot be applied UNTRANSLATED",
"kwords__max_list_size_explained_{limit}": "The result list is limited to at most {limit, plural, one{# item} few{# items} other{# items}} UNTRANSLATED",
"kwords__no_result": "No matching result"
"kwords__no_result": "No matching result",
"kwords__query_again": "Query again UNTRANSLATED"
}
}
5 changes: 4 additions & 1 deletion public/files/js/views/keywords/result/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ export function init({

if (props.data.length === 0) {
return <S.KeywordsResult>
<p className="no-result">{he.translate('kwords__no_result')}</p>
<p className="no-result">
{he.translate('kwords__no_result')}<br/>
<a href={he.createActionLink('keywords/form', {q: `~${props.queryId}`})}>Zadat znovu</a>
</p>
</S.KeywordsResult>
}
return (
Expand Down

0 comments on commit 42e3ac9

Please sign in to comment.