diff --git a/language/en_UK/common.lang.php b/language/en_UK/common.lang.php index 78a66a7a3..3a74c7d43 100644 --- a/language/en_UK/common.lang.php +++ b/language/en_UK/common.lang.php @@ -426,4 +426,6 @@ $lang['You can try to edit your filters and perform a new search.'] = 'You can t $lang['File type'] = 'File type'; $lang['Choose filters'] = 'Choose filters'; $lang['Clear'] = 'Clear'; +$lang['Fill in the filters to start a search'] = 'Fill in the filters to start a search'; +$lang['Pre-established filters are proposed, but you can add or remove them using the "Choose filters" button.'] = 'Pre-established filters are proposed, but you can add or remove them using the "Choose filters" button.'; ?> diff --git a/language/fr_FR/common.lang.php b/language/fr_FR/common.lang.php index 15a7981f0..a34e0a703 100644 --- a/language/fr_FR/common.lang.php +++ b/language/fr_FR/common.lang.php @@ -431,3 +431,5 @@ $lang['You can try to edit your filters and perform a new search.'] = 'Vous pouv $lang['File type'] = 'Type de fichier'; $lang['Choose filters'] = 'Choisir les filtres'; $lang['Clear'] = 'Vider'; +$lang['Fill in the filters to start a search'] = 'Complétez les filtres pour lancer une recherche'; +$lang['Pre-established filters are proposed, but you can add or remove them using the "Choose filters" button.'] = 'Des filtres préétablis vous sont proposés, mais vous pouvez aussi en ajouter ou en retirer grâce au bouton “Choisir les filtres”.'; diff --git a/themes/default/js/mcs.js b/themes/default/js/mcs.js index c11579a5c..2b55c9326 100644 --- a/themes/default/js/mcs.js +++ b/themes/default/js/mcs.js @@ -233,6 +233,11 @@ $(document).ready(function () { PS_params.filetypes = global_params.fields.filetypes.length > 0 ? global_params.fields.filetypes : ''; } + // Adapt no result message + if ($(".filter-filled").length === 0) { + $(".mcs-no-result .text .top").html(str_empty_search_top_alt); + $(".mcs-no-result .text .bot").html(str_empty_search_bot_alt); + } /** * Filter Manager diff --git a/themes/default/template/index.tpl b/themes/default/template/index.tpl index 3d108bbf0..e30ad9c47 100644 --- a/themes/default/template/index.tpl +++ b/themes/default/template/index.tpl @@ -25,6 +25,9 @@ str_author_widget_label = "{'Author'|@translate}"; str_added_by_widget_label = "{'Added by'|@translate}"; str_filetypes_widget_label = "{'File type'|@translate}"; +str_empty_search_top_alt = "{'Fill in the filters to start a search'|@translate}"; +str_empty_search_bot_alt = "{'Pre-established filters are proposed, but you can add or remove them using the "Choose filters" button.'|@translate}"; + {/footer_script} {if isset($errors) or isset($infos)} @@ -522,8 +525,8 @@ str_filetypes_widget_label = "{'File type'|@translate}"; {else if !empty($SEARCH_ID)}
- {'No results are available.'|@translate} - {'You can try to edit your filters and perform a new search.'|translate} + {'No results are available.'|@translate} + {'You can try to edit your filters and perform a new search.'|translate}
{/if}