From 27217c8c57cc1bfbcc1171d1171dde495ee65765 Mon Sep 17 00:00:00 2001 From: MatthieuLP Date: Wed, 19 Jul 2023 14:32:54 +0200 Subject: [PATCH] related to #1931 Escape translations --- language/fr_FR/common.lang.php | 2 +- themes/default/template/index.tpl | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/language/fr_FR/common.lang.php b/language/fr_FR/common.lang.php index a34e0a703..36932156d 100644 --- a/language/fr_FR/common.lang.php +++ b/language/fr_FR/common.lang.php @@ -432,4 +432,4 @@ $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”.'; +$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/template/index.tpl b/themes/default/template/index.tpl index e30ad9c47..ae2a16d13 100644 --- a/themes/default/template/index.tpl +++ b/themes/default/template/index.tpl @@ -18,15 +18,15 @@ fullname_of_cat = {$fullname_of}; search_id = {$SEARCH_ID}; {/if} -str_word_widget_label = "{'Search for words'|@translate}"; -str_tags_widget_label = "{'Tag'|@translate}"; -str_album_widget_label = "{'Album'|@translate}"; -str_author_widget_label = "{'Author'|@translate}"; -str_added_by_widget_label = "{'Added by'|@translate}"; -str_filetypes_widget_label = "{'File type'|@translate}"; +str_word_widget_label = "{'Search for words'|@translate|escape:javascript}"; +str_tags_widget_label = "{'Tag'|@translate|escape:javascript}"; +str_album_widget_label = "{'Album'|@translate|escape:javascript}"; +str_author_widget_label = "{'Author'|@translate|escape:javascript}"; +str_added_by_widget_label = "{'Added by'|@translate|escape:javascript}"; +str_filetypes_widget_label = "{'File type'|@translate|escape:javascript}"; -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}"; +str_empty_search_top_alt = "{'Fill in the filters to start a search'|@translate|escape:javascript}"; +str_empty_search_bot_alt = "{'Pre-established filters are proposed, but you can add or remove them using the "Choose filters" button.'|@translate|escape:javascript}"; {/footer_script}