From 1a9a8e2e4b6f12e597723b9c4b4f23f781c9f270 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 26 Dec 2023 19:34:56 +0100 Subject: [PATCH] fixes #2077 escape strings in new album editor --- admin/themes/default/template/cat_modify.tpl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/admin/themes/default/template/cat_modify.tpl b/admin/themes/default/template/cat_modify.tpl index 716495726..fea0b7501 100644 --- a/admin/themes/default/template/cat_modify.tpl +++ b/admin/themes/default/template/cat_modify.tpl @@ -28,15 +28,15 @@ const str_dont_delete_photos = '{'delete only album, not photos'|@translate|esca const str_delete_orphans = '{'delete album and the %d orphan photos'|@translate|escape:javascript}'; const str_delete_all_photos = '{'delete album and all %d photos, even the %d associated to other albums'|@translate|escape:javascript}'; -str_albums_found = '{"%d albums found"|translate}'; -str_album_found = '{"1 album found"|translate}'; +str_albums_found = '{"%d albums found"|translate|escape:javascript}'; +str_album_found = '{"1 album found"|translate|escape:javascript}'; str_result_limit = '{"%d+ albums found, try to refine the search"|translate|escape:javascript}'; -str_orphan = '{'This photo is an orphan'|@translate}'; -str_no_search_in_progress = '{'No search in progress'|@translate}'; -str_already_in_related_cats = '{'This albums is already in related categories list'|@translate}'; -str_album_comment_allow = '{'Comments allowed for sub-albums'|@translate}'; -str_album_comment_disallow = '{'Comments disallowed for sub-albums'|@translate}'; -str_root = '{'Root'|@translate}'; +str_orphan = '{'This photo is an orphan'|@translate|escape:javascript}'; +str_no_search_in_progress = '{'No search in progress'|@translate|escape:javascript}'; +str_already_in_related_cats = '{'This albums is already in related categories list'|@translate|escape:javascript}'; +str_album_comment_allow = '{'Comments allowed for sub-albums'|@translate|escape:javascript}'; +str_album_comment_disallow = '{'Comments disallowed for sub-albums'|@translate|escape:javascript}'; +str_root = '{'Root'|@translate|escape:javascript}'; {/footer_script}