OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[39561] Improve translation of whitelist error
Oliver Günther4a5a9050b616
diff --git a/config/locales/en.yml b/config/locales/en.ymlindex 43b09a0729e..b11a057e2e7 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -647,7 +647,9 @@ en:attachment:attributes:content_type:- not_whitelisted: "is set to '%{value}', which is not whitelisted for uploading."+ blank: "The content type of the file cannot be blank."+ not_whitelisted: "The file was rejected by an automatic filter. '%{value}' is not whitelisted for upload."+ format: "%{message}"capability:context:global: 'Global'diff --git a/spec/requests/api/v3/attachments/attachment_resource_shared_examples.rb b/spec/requests/api/v3/attachments/attachment_resource_shared_examples.rbindex 00946f95489..3233e69d49a 100644--- a/spec/requests/api/v3/attachments/attachment_resource_shared_examples.rb+++ b/spec/requests/api/v3/attachments/attachment_resource_shared_examples.rb@@ -299,7 +299,7 @@ shared_examples 'an APIv3 attachment resource', type: :request, content_type: :jlet(:request_parts) { { metadata: metadata.to_json, wrongFileSection: file } }it_behaves_like 'constraint violation' do- let(:message) { "Content type #{I18n.t('activerecord.errors.messages.blank')}" }+ let(:message) { "The content type of the file cannot be blank" }endend@@ -586,7 +586,7 @@ shared_examples 'an APIv3 attachment resource', type: :request, content_type: :jlet(:request_parts) { { metadata: metadata.to_json, wrongFileSection: file } }it_behaves_like 'constraint violation' do- let(:message) { "Content type #{I18n.t('activerecord.errors.messages.blank')}" }+ let(:message) { "The content type of the file cannot be blank." }endend