From 545a4519d1aa900c79f4d855feae89f702cab404 Mon Sep 17 00:00:00 2001 From: 1redmine Date: Thu, 22 May 2025 12:38:54 +0200 Subject: [PATCH] Add a warning about searhingin sub-folders #1596 --- app/controllers/dmsf_controller.rb | 4 ++++ config/locales/cs.yml | 14 ++++++++------ config/locales/de.yml | 3 +++ config/locales/en.yml | 2 ++ config/locales/es.yml | 2 ++ config/locales/fa.yml | 2 ++ config/locales/fr.yml | 2 ++ config/locales/hu.yml | 2 ++ config/locales/it.yml | 2 ++ config/locales/ja.yml | 2 ++ config/locales/ko.yml | 2 ++ config/locales/nl.yml | 2 ++ config/locales/pl.yml | 2 ++ config/locales/pt-BR.yml | 2 ++ config/locales/sl.yml | 2 ++ config/locales/uk.yml | 2 ++ config/locales/zh-TW.yml | 2 ++ config/locales/zh.yml | 2 ++ 18 files changed, 45 insertions(+), 6 deletions(-) diff --git a/app/controllers/dmsf_controller.rb b/app/controllers/dmsf_controller.rb index 17e6b4ad..33ee67c1 100644 --- a/app/controllers/dmsf_controller.rb +++ b/app/controllers/dmsf_controller.rb @@ -93,6 +93,10 @@ class DmsfController < ApplicationController if @query.valid? respond_to do |format| format.html do + # Warn about searching in sub-folders + if @folder && params['set_filter'].present? && params['f'].present? + flash[:warning] = l(:notice_search_in_subfolders) + end @dmsf_count = @query.dmsf_count @dmsf_pages = Paginator.new @dmsf_count, per_page_option, params['page'] render layout: !request.xhr? diff --git a/config/locales/cs.yml b/config/locales/cs.yml index 1bf3f834..bc2525d9 100644 --- a/config/locales/cs.yml +++ b/config/locales/cs.yml @@ -155,7 +155,7 @@ cs: permission_force_file_unlock: Vynucené odemknutí souboru permission_manage_workflows: Spravovat schvalovací procesy permission_file_delete: Mazat dokumenty - permission_display_system_folders: Zobrazit systémové adresáře + permission_display_system_folders: Zobrazit systémové složky permission_file_approval: File approval permission_email_documents: Email documents label_file: Soubor @@ -366,7 +366,7 @@ cs: field_dmsf_not_inheritable: Není dědičné label_webdav_use_project_names: Použít názvy projektů - note_webdav_use_project_names: Použít názvy projektů místo identifikátorů pro názvy adresářů. + note_webdav_use_project_names: Použít názvy projektů místo identifikátorů pro názvy složek. label_last_approver: Poslední schvalovatel @@ -389,8 +389,8 @@ cs: např.: XAPIAN_CJK_NGRAM=true ruby plugins/redmine_dmsf/extra/xapian_indexer.rb -fv" label_dmsf_fast_links: Rychlé odkazy - text_dmsf_fast_links_info: Při vytváření odkazů budete moci zadat přímo ID cílového adresáře za účelem zrychlení - procesu vytváření odkazů nebo kopírování dokumentů a adresářů. + text_dmsf_fast_links_info: Při vytváření odkazů budete moci zadat přímo ID cílové složky za účelem zrychlení + procesu vytváření odkazů nebo kopírování dokumentů a složek. label_dmsf_permissions: Povolený přístup pro label_inherited_permissions: Zděděný přístup pro @@ -410,14 +410,14 @@ cs: dmsf_webdav_ignore_1b_file_for_authentication: Ignorovat 1b soubor poslaný kvůli autentizaci dmsf_webdav_ignore_1b_file_for_authentication_info: Total Commander WebDAV plugin - text_not_empty: Adresář není prázdný. + text_not_empty: Složka není prázdná. label_scroll_down: Posunout se dolů note_webdav_disabled: WebDAV je zablokovaný. Kontaktujte administrátora. dmsf_copy: "Kopie (%{n})" label_empty_trash_bin: Vysypat koš label_dmsf_projects_as_subfolders: Podprojekty jako podaresáře - note_dmsf_projects_as_subfolders: Přidá podprojekty jako podadresáře do pohledu DMS + note_dmsf_projects_as_subfolders: Přidá podprojekty jako podsložky do pohledu DMS only_approval_zero_minor_version: Schvalovat pouze hlavní verze title_assignment_minor: Přiřazení není dovoleno, podružná verze musí být nula title_start_minor: Zahájení není dovoleno, podružná verze musí být nula @@ -492,6 +492,8 @@ cs: label_dmsf_commit: Potvrdit label_dmsf_upload_commit: Nahrát a potvrdit + notice_search_in_subfolders: Vyhledávání v podsložkách není rekurzivní. Pro rekurzivní vyhledávání běžte do nejvyšší úrovně. + easy_pages: modules: dmsf_locked_documents: My locked documents diff --git a/config/locales/de.yml b/config/locales/de.yml index 38fbd0b9..7642fe5b 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -487,6 +487,9 @@ de: label_dmsf_commit: Commit label_dmsf_upload_commit: Hochladen und Commit + notice_search_in_subfolders: Die Suche in Unterordnern ist nicht rekursiv. Für eine rekursive Suche gehen Sie auf die + oberste Ebene. + easy_pages: modules: dmsf_locked_documents: Von mir gesperrte Dokumente diff --git a/config/locales/en.yml b/config/locales/en.yml index af56a3dd..903aa4d5 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -491,6 +491,8 @@ en: label_dmsf_commit: Commit label_dmsf_upload_commit: Upload and commit + notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level. + easy_pages: modules: dmsf_locked_documents: My locked documents diff --git a/config/locales/es.yml b/config/locales/es.yml index b607123b..6ccc097c 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -488,6 +488,8 @@ es: text_dmsf_webdav_digest_reset: You are supposed to enter your password to generate a new DMS WebDAV digest. notice_webdav_digest_reset: Your DMS WebDAV digest was reset. + notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level. + label_dmsf_commit: Commit label_dmsf_upload_commit: Upload and commit diff --git a/config/locales/fa.yml b/config/locales/fa.yml index bea3276a..2611dddd 100644 --- a/config/locales/fa.yml +++ b/config/locales/fa.yml @@ -470,6 +470,8 @@ fa: label_dmsf_commit: Commit label_dmsf_upload_commit: Upload and commit + notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level. + easy_pages: modules: dmsf_locked_documents: اسناد قفل شده‌ی من diff --git a/config/locales/fr.yml b/config/locales/fr.yml index d0a5aaf7..63fc4d1b 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -492,6 +492,8 @@ fr: label_dmsf_commit: Commit label_dmsf_upload_commit: Upload and commit + notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level. + easy_pages: modules: dmsf_locked_documents: My locked documents diff --git a/config/locales/hu.yml b/config/locales/hu.yml index 6f16435e..a944517a 100644 --- a/config/locales/hu.yml +++ b/config/locales/hu.yml @@ -492,6 +492,8 @@ hu: label_dmsf_commit: Commit label_dmsf_upload_commit: Upload and commit + notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level. + easy_pages: modules: dmsf_locked_documents: My locked documents diff --git a/config/locales/it.yml b/config/locales/it.yml index d84b9840..3398564e 100644 --- a/config/locales/it.yml +++ b/config/locales/it.yml @@ -491,6 +491,8 @@ it: # Italian strings thx 2 Matteo Arceci! label_dmsf_commit: Commit label_dmsf_upload_commit: Upload and commit + notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level. + easy_pages: modules: dmsf_locked_documents: My locked documents diff --git a/config/locales/ja.yml b/config/locales/ja.yml index 5a6a82bd..a8011ee7 100644 --- a/config/locales/ja.yml +++ b/config/locales/ja.yml @@ -493,6 +493,8 @@ ja: label_dmsf_commit: Commit label_dmsf_upload_commit: Upload and commit + notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level. + easy_pages: modules: dmsf_locked_documents: 自分がロック中の文書 diff --git a/config/locales/ko.yml b/config/locales/ko.yml index 61cf2e2b..d72b8916 100644 --- a/config/locales/ko.yml +++ b/config/locales/ko.yml @@ -491,6 +491,8 @@ ko: label_dmsf_commit: Commit label_dmsf_upload_commit: Upload and commit + notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level. + easy_pages: modules: dmsf_locked_documents: 내 잠긴 파일 diff --git a/config/locales/nl.yml b/config/locales/nl.yml index 75d29914..d212299f 100644 --- a/config/locales/nl.yml +++ b/config/locales/nl.yml @@ -491,6 +491,8 @@ nl: label_dmsf_commit: Commit label_dmsf_upload_commit: Upload and commit + notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level. + easy_pages: modules: dmsf_locked_documents: My locked documents diff --git a/config/locales/pl.yml b/config/locales/pl.yml index ccbb5554..333da0a5 100644 --- a/config/locales/pl.yml +++ b/config/locales/pl.yml @@ -490,6 +490,8 @@ pl: label_dmsf_commit: Commit label_dmsf_upload_commit: Upload and commit + notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level. + easy_pages: modules: dmsf_locked_documents: My locked documents diff --git a/config/locales/pt-BR.yml b/config/locales/pt-BR.yml index af264e82..f71faf96 100644 --- a/config/locales/pt-BR.yml +++ b/config/locales/pt-BR.yml @@ -491,6 +491,8 @@ pt-BR: label_dmsf_commit: Commit label_dmsf_upload_commit: Upload and commit + notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level. + easy_pages: modules: dmsf_locked_documents: My locked documents diff --git a/config/locales/sl.yml b/config/locales/sl.yml index 3225f8fe..64fdec07 100644 --- a/config/locales/sl.yml +++ b/config/locales/sl.yml @@ -492,6 +492,8 @@ sl: label_dmsf_commit: Commit label_dmsf_upload_commit: Upload and commit + notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level. + easy_pages: modules: dmsf_locked_documents: My locked documents diff --git a/config/locales/uk.yml b/config/locales/uk.yml index bab0df4f..2c95ae9c 100644 --- a/config/locales/uk.yml +++ b/config/locales/uk.yml @@ -493,6 +493,8 @@ uk: label_dmsf_commit: Commit label_dmsf_upload_commit: Upload and commit + notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level. + easy_pages: modules: dmsf_locked_documents: Мої заблоковані документи diff --git a/config/locales/zh-TW.yml b/config/locales/zh-TW.yml index ae78ea36..b0bc2eea 100644 --- a/config/locales/zh-TW.yml +++ b/config/locales/zh-TW.yml @@ -490,6 +490,8 @@ zh-TW: label_dmsf_commit: Commit label_dmsf_upload_commit: Upload and commit + notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level. + easy_pages: modules: dmsf_locked_documents: My locked documents diff --git a/config/locales/zh.yml b/config/locales/zh.yml index b205ce1d..78c1692f 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -492,6 +492,8 @@ zh: label_dmsf_commit: Commit label_dmsf_upload_commit: Upload and commit + notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level. + easy_pages: modules: dmsf_locked_documents: My locked documents