From d58f6c23cc71146bcd7a24ace1ee0219af55f4df Mon Sep 17 00:00:00 2001 From: "COLA@Redmine.local" Date: Sun, 12 Feb 2017 19:58:50 +0100 Subject: [PATCH] Added setting to enable/disable using project names instead of identifier. --- app/views/settings/_dmsf_settings.html.erb | 9 +++++++++ config/locales/cs.yml | 5 ++++- config/locales/de.yml | 5 ++++- config/locales/en.yml | 3 +++ config/locales/es.yml | 5 ++++- config/locales/fr.yml | 5 ++++- config/locales/it.yml | 5 ++++- config/locales/ja.yml | 5 ++++- config/locales/pl.yml | 5 ++++- config/locales/pt-BR.yml | 5 ++++- config/locales/ru.yml | 5 ++++- config/locales/sl.yml | 5 ++++- config/locales/zh-TW.yml | 5 ++++- config/locales/zh.yml | 5 ++++- 14 files changed, 60 insertions(+), 12 deletions(-) diff --git a/app/views/settings/_dmsf_settings.html.erb b/app/views/settings/_dmsf_settings.html.erb index ff5b56d2..62022bc8 100644 --- a/app/views/settings/_dmsf_settings.html.erb +++ b/app/views/settings/_dmsf_settings.html.erb @@ -202,6 +202,15 @@

+

+ <%= content_tag(:label, l(:label_webdav_use_project_names)) %> + <%= check_box_tag('settings[dmsf_webdav_use_project_names]', true, @settings['dmsf_webdav_use_project_names']) %> + + <%= l(:note_webdav_use_project_names) %>
+ <%= l(:label_default)%>: <%= l(:general_text_No)%> +
+

+
<%= l(:label_full_text) %> diff --git a/config/locales/cs.yml b/config/locales/cs.yml index d8d62549..dc7ddc0d 100644 --- a/config/locales/cs.yml +++ b/config/locales/cs.yml @@ -355,4 +355,7 @@ cs: label_dmsf_keep_documents_locked: Ponechat dokumenty zamčené note_dmsf_keep_documents_locked: Dokumenty zůstanou i po schválení zamčené. note_global: (globální) - field_dmsf_not_inheritable: Není dědičné \ No newline at end of file + field_dmsf_not_inheritable: Není dědičné + + label_webdav_use_project_names: Use project name for project folder + note_webdav_use_project_names: Use project names instead of project identifier for project folders. diff --git a/config/locales/de.yml b/config/locales/de.yml index dcfe7a49..3d9d029f 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -352,4 +352,7 @@ de: label_dmsf_keep_documents_locked: Keep documents locked note_dmsf_keep_documents_locked: Documents will be kept locked when approved note_global: (global) - field_dmsf_not_inheritable: Not inheritable \ No newline at end of file + field_dmsf_not_inheritable: Not inheritable + + label_webdav_use_project_names: Use project name for project folder + note_webdav_use_project_names: Use project names instead of project identifier for project folders. diff --git a/config/locales/en.yml b/config/locales/en.yml index 0d8f245a..4f909279 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -356,3 +356,6 @@ en: note_dmsf_keep_documents_locked: Documents will be kept locked when approved note_global: (global) field_dmsf_not_inheritable: Not inheritable + + label_webdav_use_project_names: Use project name for project folder + note_webdav_use_project_names: Use project names instead of project identifier for project folders. diff --git a/config/locales/es.yml b/config/locales/es.yml index 0cac72fe..3194918b 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -355,4 +355,7 @@ es: label_dmsf_keep_documents_locked: Keep documents locked note_dmsf_keep_documents_locked: Documents will be kept locked when approved note_global: (global) - field_dmsf_not_inheritable: Not inheritable \ No newline at end of file + field_dmsf_not_inheritable: Not inheritable + + label_webdav_use_project_names: Use project name for project folder + note_webdav_use_project_names: Use project names instead of project identifier for project folders. diff --git a/config/locales/fr.yml b/config/locales/fr.yml index b9929766..1e48b134 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -355,4 +355,7 @@ fr: label_dmsf_keep_documents_locked: Keep documents locked note_dmsf_keep_documents_locked: Documents will be kept locked when approved note_global: (global) - field_dmsf_not_inheritable: Not inheritable \ No newline at end of file + field_dmsf_not_inheritable: Not inheritable + + label_webdav_use_project_names: Use project name for project folder + note_webdav_use_project_names: Use project names instead of project identifier for project folders. diff --git a/config/locales/it.yml b/config/locales/it.yml index ae10895f..50b1e09d 100644 --- a/config/locales/it.yml +++ b/config/locales/it.yml @@ -355,4 +355,7 @@ it: # Italian strings thx 2 Matteo Arceci! label_dmsf_keep_documents_locked: Keep documents locked note_dmsf_keep_documents_locked: Documents will be kept locked when approved note_global: (global) - field_dmsf_not_inheritable: Not inheritable \ No newline at end of file + field_dmsf_not_inheritable: Not inheritable + + label_webdav_use_project_names: Use project name for project folder + note_webdav_use_project_names: Use project names instead of project identifier for project folders. diff --git a/config/locales/ja.yml b/config/locales/ja.yml index 2b800a59..4a97a71d 100644 --- a/config/locales/ja.yml +++ b/config/locales/ja.yml @@ -355,4 +355,7 @@ ja: label_dmsf_keep_documents_locked: Keep documents locked note_dmsf_keep_documents_locked: Documents will be kept locked when approved note_global: (global) - field_dmsf_not_inheritable: Not inheritable \ No newline at end of file + field_dmsf_not_inheritable: Not inheritable + + label_webdav_use_project_names: Use project name for project folder + note_webdav_use_project_names: Use project names instead of project identifier for project folders. diff --git a/config/locales/pl.yml b/config/locales/pl.yml index 19e94eb7..2ee7d34d 100644 --- a/config/locales/pl.yml +++ b/config/locales/pl.yml @@ -355,4 +355,7 @@ pl: label_dmsf_keep_documents_locked: Keep documents locked note_dmsf_keep_documents_locked: Documents will be kept locked when approved note_global: (global) - field_dmsf_not_inheritable: Not inheritable \ No newline at end of file + field_dmsf_not_inheritable: Not inheritable + + label_webdav_use_project_names: Use project name for project folder + note_webdav_use_project_names: Use project names instead of project identifier for project folders. diff --git a/config/locales/pt-BR.yml b/config/locales/pt-BR.yml index d7cd3e24..e63bf12a 100644 --- a/config/locales/pt-BR.yml +++ b/config/locales/pt-BR.yml @@ -355,4 +355,7 @@ pt-BR: label_dmsf_keep_documents_locked: Keep documents locked note_dmsf_keep_documents_locked: Documents will be kept locked when approved note_global: (global) - field_dmsf_not_inheritable: Not inheritable \ No newline at end of file + field_dmsf_not_inheritable: Not inheritable + + label_webdav_use_project_names: Use project name for project folder + note_webdav_use_project_names: Use project names instead of project identifier for project folders. diff --git a/config/locales/ru.yml b/config/locales/ru.yml index 7be56919..7fb2c19f 100644 --- a/config/locales/ru.yml +++ b/config/locales/ru.yml @@ -355,4 +355,7 @@ ru: label_dmsf_keep_documents_locked: Keep documents locked note_dmsf_keep_documents_locked: Documents will be kept locked when approved note_global: (global) - field_dmsf_not_inheritable: Not inheritable \ No newline at end of file + field_dmsf_not_inheritable: Not inheritable + + label_webdav_use_project_names: Use project name for project folder + note_webdav_use_project_names: Use project names instead of project identifier for project folders. diff --git a/config/locales/sl.yml b/config/locales/sl.yml index 9cbace5d..d7a10f6f 100644 --- a/config/locales/sl.yml +++ b/config/locales/sl.yml @@ -355,4 +355,7 @@ sl: label_dmsf_keep_documents_locked: Keep documents locked note_dmsf_keep_documents_locked: Documents will be kept locked when approved note_global: (global) - field_dmsf_not_inheritable: Not inheritable \ No newline at end of file + field_dmsf_not_inheritable: Not inheritable + + label_webdav_use_project_names: Use project name for project folder + note_webdav_use_project_names: Use project names instead of project identifier for project folders. diff --git a/config/locales/zh-TW.yml b/config/locales/zh-TW.yml index f191b8cd..369c869e 100644 --- a/config/locales/zh-TW.yml +++ b/config/locales/zh-TW.yml @@ -355,4 +355,7 @@ zh-TW: label_dmsf_keep_documents_locked: Keep documents locked note_dmsf_keep_documents_locked: Documents will be kept locked when approved note_global: (global) - field_dmsf_not_inheritable: Not inheritable \ No newline at end of file + field_dmsf_not_inheritable: Not inheritable + + label_webdav_use_project_names: Use project name for project folder + note_webdav_use_project_names: Use project names instead of project identifier for project folders. diff --git a/config/locales/zh.yml b/config/locales/zh.yml index 6b3a6ec6..65aa5a9b 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -355,4 +355,7 @@ zh: label_dmsf_keep_documents_locked: Keep documents locked note_dmsf_keep_documents_locked: Documents will be kept locked when approved note_global: (global) - field_dmsf_not_inheritable: Not inheritable \ No newline at end of file + field_dmsf_not_inheritable: Not inheritable + + label_webdav_use_project_names: Use project name for project folder + note_webdav_use_project_names: Use project names instead of project identifier for project folders.