From 10d893957ec754b71561ccc541923e90419a377f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Mon, 20 Jun 2022 13:27:17 +0200 Subject: [PATCH] #1369 Other languages and the main view --- app/models/dmsf_query.rb | 12 ++++++------ app/views/settings/_dmsf_columns.html.erb | 2 +- config/locales/cs.yml | 8 ++++++++ config/locales/de.yml | 8 ++++++++ config/locales/es.yml | 8 ++++++++ config/locales/fr.yml | 8 ++++++++ config/locales/hu.yml | 8 ++++++++ config/locales/it.yml | 8 ++++++++ config/locales/ja.yml | 8 ++++++++ config/locales/ko.yml | 8 ++++++++ config/locales/nl.yml | 8 ++++++++ config/locales/pl.yml | 8 ++++++++ config/locales/pt-BR.yml | 8 ++++++++ config/locales/sl.yml | 8 ++++++++ config/locales/zh-TW.yml | 8 ++++++++ config/locales/zh.yml | 8 ++++++++ 16 files changed, 119 insertions(+), 7 deletions(-) diff --git a/app/models/dmsf_query.rb b/app/models/dmsf_query.rb index 73b621d7..dfad9d53 100644 --- a/app/models/dmsf_query.rb +++ b/app/models/dmsf_query.rb @@ -30,13 +30,13 @@ class DmsfQuery < Query # Standard columns self.available_columns = [ QueryColumn.new(:id, sortable: 'id', caption: +'#'), - DmsfTitleQueryColumn.new(:title, sortable: 'title', frozen: true), - QueryColumn.new(:size, sortable: 'size'), - DmsfModifiedQueryColumn.new(:modified, sortable: 'updated'), + DmsfTitleQueryColumn.new(:title, sortable: 'title', frozen: true, caption: :label_column_title), + QueryColumn.new(:size, sortable: 'size', caption: :label_column_size), + DmsfModifiedQueryColumn.new(:modified, sortable: 'updated', caption: :label_column_modified), DmsfVersionQueryColumn.new(:version, sortable: %(major_version minor_version patch_version), - caption: :label_dmsf_version), - QueryColumn.new(:workflow, sortable: 'workflow'), - QueryColumn.new(:author, sortable: %(firstname lastname)) + caption: :label_column_version), + QueryColumn.new(:workflow, sortable: 'workflow', caption: :label_column_workflow), + QueryColumn.new(:author, sortable: %(firstname lastname), caption: :label_column_author) ] def initialize(attributes=nil, *args) diff --git a/app/views/settings/_dmsf_columns.html.erb b/app/views/settings/_dmsf_columns.html.erb index 9526bf51..02a2f4bf 100644 --- a/app/views/settings/_dmsf_columns.html.erb +++ b/app/views/settings/_dmsf_columns.html.erb @@ -26,7 +26,7 @@ <% columns.concat(extra_columns) if defined?(extra_columns) %> <% index = columns.index(l(:field_project)) %> <%# Move Project to the second position %> - <% if index %> + <% if index %> <% columns.insert(0, columns.delete_at(index)) %> <% end %> <% cfs = DmsfFileRevisionCustomField.visible.order(:position) %> diff --git a/config/locales/cs.yml b/config/locales/cs.yml index fca7e5d8..f460aa18 100644 --- a/config/locales/cs.yml +++ b/config/locales/cs.yml @@ -447,6 +447,14 @@ cs: restartovat aplikaci. note_dmsf_office_bin_not_available: "Příkaz LibreOfficu pro příkazovou řádku '%{value}' není k dispozici" + label_column_id: ID + label_column_title: Název + label_column_size: Velikost + label_column_modified: Změněno + label_column_version: Verze + label_column_workflow: Schvalování + label_column_author: Autor + easy_pages: modules: dmsf_locked_documents: My locked documents diff --git a/config/locales/de.yml b/config/locales/de.yml index e9a4c68c..8a76b3ea 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -443,6 +443,14 @@ de: application to take it any effect. note_dmsf_office_bin_not_available: "LibreOffice's command line binary '%{value}' not available" + label_column_id: ID + label_column_title: Titel + label_column_size: Größe + label_column_modified: Geändert + label_column_version: Version + label_column_workflow: Workflow + label_column_author: Autor + easy_pages: modules: dmsf_locked_documents: Von mir gesperrte Dokumente diff --git a/config/locales/es.yml b/config/locales/es.yml index 021efe02..6b583880 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -447,6 +447,14 @@ es: application to take it any effect. note_dmsf_office_bin_not_available: "LibreOffice's command line binary '%{value}' not available" + label_column_id: ID + label_column_title: Title + label_column_size: Size + label_column_modified: Modified + label_column_version: Version + label_column_workflow: Workflow + label_column_author: Author + easy_pages: modules: dmsf_locked_documents: My locked documents diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 1250a6ce..f8dc470e 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -447,6 +447,14 @@ fr: application to take it any effect. note_dmsf_office_bin_not_available: "LibreOffice's command line binary '%{value}' not available" + label_column_id: ID + label_column_title: Title + label_column_size: Size + label_column_modified: Modified + label_column_version: Version + label_column_workflow: Workflow + label_column_author: Author + easy_pages: modules: dmsf_locked_documents: My locked documents diff --git a/config/locales/hu.yml b/config/locales/hu.yml index ab58ef6d..d6f6e305 100644 --- a/config/locales/hu.yml +++ b/config/locales/hu.yml @@ -446,6 +446,14 @@ hu: application to take it any effect. note_dmsf_office_bin_not_available: "LibreOffice's command line binary '%{value}' not available" + label_column_id: ID + label_column_title: Title + label_column_size: Size + label_column_modified: Modified + label_column_version: Version + label_column_workflow: Workflow + label_column_author: Author + easy_pages: modules: dmsf_locked_documents: My locked documents diff --git a/config/locales/it.yml b/config/locales/it.yml index c5af22de..1ad28d26 100644 --- a/config/locales/it.yml +++ b/config/locales/it.yml @@ -447,6 +447,14 @@ it: # Italian strings thx 2 Matteo Arceci! application to take it any effect. note_dmsf_office_bin_not_available: "LibreOffice's command line binary '%{value}' not available" + label_column_id: ID + label_column_title: Title + label_column_size: Size + label_column_modified: Modified + label_column_version: Version + label_column_workflow: Workflow + label_column_author: Author + easy_pages: modules: dmsf_locked_documents: My locked documents diff --git a/config/locales/ja.yml b/config/locales/ja.yml index 98bdc7d7..3818b22c 100644 --- a/config/locales/ja.yml +++ b/config/locales/ja.yml @@ -448,6 +448,14 @@ ja: application to take it any effect. note_dmsf_office_bin_not_available: "LibreOffice's command line binary '%{value}' not available" + label_column_id: ID + label_column_title: Title + label_column_size: Size + label_column_modified: Modified + label_column_version: Version + label_column_workflow: Workflow + label_column_author: Author + easy_pages: modules: dmsf_locked_documents: 自分がロック中の文書 diff --git a/config/locales/ko.yml b/config/locales/ko.yml index 80365ab0..4dcd7656 100644 --- a/config/locales/ko.yml +++ b/config/locales/ko.yml @@ -447,6 +447,14 @@ ko: application to take it any effect. note_dmsf_office_bin_not_available: "LibreOffice's command line binary '%{value}' not available" + label_column_id: ID + label_column_title: Title + label_column_size: Size + label_column_modified: Modified + label_column_version: Version + label_column_workflow: Workflow + label_column_author: Author + easy_pages: modules: dmsf_locked_documents: 내 잠긴 파일 diff --git a/config/locales/nl.yml b/config/locales/nl.yml index 9e20559c..d50651bd 100644 --- a/config/locales/nl.yml +++ b/config/locales/nl.yml @@ -447,6 +447,14 @@ nl: application to take it any effect. note_dmsf_office_bin_not_available: "LibreOffice's command line binary '%{value}' not available" + label_column_id: ID + label_column_title: Title + label_column_size: Size + label_column_modified: Modified + label_column_version: Version + label_column_workflow: Workflow + label_column_author: Author + easy_pages: modules: dmsf_locked_documents: My locked documents diff --git a/config/locales/pl.yml b/config/locales/pl.yml index 06696585..f3139853 100644 --- a/config/locales/pl.yml +++ b/config/locales/pl.yml @@ -447,6 +447,14 @@ pl: application to take it any effect. note_dmsf_office_bin_not_available: "LibreOffice's command line binary '%{value}' not available" + label_column_id: ID + label_column_title: Title + label_column_size: Size + label_column_modified: Modified + label_column_version: Version + label_column_workflow: Workflow + label_column_author: Author + easy_pages: modules: dmsf_locked_documents: My locked documents diff --git a/config/locales/pt-BR.yml b/config/locales/pt-BR.yml index 7b92d49e..99702e22 100644 --- a/config/locales/pt-BR.yml +++ b/config/locales/pt-BR.yml @@ -447,6 +447,14 @@ pt-BR: application to take it any effect. note_dmsf_office_bin_not_available: "LibreOffice's command line binary '%{value}' not available" + label_column_id: ID + label_column_title: Title + label_column_size: Size + label_column_modified: Modified + label_column_version: Version + label_column_workflow: Workflow + label_column_author: Author + easy_pages: modules: dmsf_locked_documents: My locked documents diff --git a/config/locales/sl.yml b/config/locales/sl.yml index 0477a144..d304bbf1 100644 --- a/config/locales/sl.yml +++ b/config/locales/sl.yml @@ -447,6 +447,14 @@ sl: application to take it any effect. note_dmsf_office_bin_not_available: "LibreOffice's command line binary '%{value}' not available" + label_column_id: ID + label_column_title: Title + label_column_size: Size + label_column_modified: Modified + label_column_version: Version + label_column_workflow: Workflow + label_column_author: Author + easy_pages: modules: dmsf_locked_documents: My locked documents diff --git a/config/locales/zh-TW.yml b/config/locales/zh-TW.yml index 6298ef72..a76a461b 100644 --- a/config/locales/zh-TW.yml +++ b/config/locales/zh-TW.yml @@ -446,6 +446,14 @@ zh-TW: application to take it any effect. note_dmsf_office_bin_not_available: "LibreOffice's command line binary '%{value}' not available" + label_column_id: ID + label_column_title: Title + label_column_size: Size + label_column_modified: Modified + label_column_version: Version + label_column_workflow: Workflow + label_column_author: Author + easy_pages: modules: dmsf_locked_documents: My locked documents diff --git a/config/locales/zh.yml b/config/locales/zh.yml index c1a213e5..0005e488 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -447,6 +447,14 @@ zh: application to take it any effect. note_dmsf_office_bin_not_available: "LibreOffice's command line binary '%{value}' not available" + label_column_id: ID + label_column_title: Title + label_column_size: Size + label_column_modified: Modified + label_column_version: Version + label_column_workflow: Workflow + label_column_author: Author + easy_pages: modules: dmsf_locked_documents: My locked documents