Maintenance: Improved translatable source string.

This commit is contained in:
Martin Gruner 2022-02-16 08:41:51 +01:00
parent c68a376388
commit 502aa2cde3
5 changed files with 17 additions and 18 deletions

View file

@ -224,7 +224,7 @@ class FormController < ApplicationController
def fingerprint_exists?
return true if params[:fingerprint].present? && params[:fingerprint].length > 30
Rails.logger.info 'No fingerprint given!'
Rails.logger.info "The required parameter 'fingerprint' is missing or invalid."
raise Exceptions::Forbidden
end
end

View file

@ -30,7 +30,7 @@ class Integration::ExchangeController < ApplicationController
Sequencer.process('Import::Exchange::AvailableFolders',
parameters: { ews_config: ews_config })
.tap do |res|
raise __('No folders found for given user credentials.') if res[:folders].blank?
raise __('No folders were found for the given user credentials.') if res[:folders].blank?
end
end
end
@ -43,7 +43,7 @@ class Integration::ExchangeController < ApplicationController
parameters: { ews_folder_ids: params[:folders],
ews_config: ews_config })
.tap do |res|
raise __('No entries found in selected folder(s).') if res[:attributes].blank?
raise __('No entries were found in the selected folder(s).') if res[:attributes].blank?
end
end
end

View file

@ -6,8 +6,8 @@ class CoreWorkflow::Result
attr_accessor :payload, :user, :assets, :assets_in_result, :result, :rerun
def initialize(payload:, user:, assets: {}, assets_in_result: true, result: {})
raise ArgumentError, __('No payload->class_name given!') if !payload['class_name']
raise ArgumentError, __('No payload->screen given!') if !payload['screen']
raise ArgumentError, __("The required parameter 'payload->class_name' is missing.") if !payload['class_name']
raise ArgumentError, __("The required parmeter 'payload->screen' is missing.") if !payload['screen']
@payload = payload
@user = user

View file

@ -4,7 +4,7 @@
<%= zt 'This page is invisible to the public.' if !object.visible? %>
<% if object.kind_of?(CanBePublished) && object.published_at.present? && object.published_at > Time.current %>
<%= zt 'Will be published on ' %>
<%= zt 'Will be published on' %>
<%= time_tag object.published_at %>
<% end %>
</span>
@ -13,4 +13,3 @@
<%= link_to zt(edit_kb_link_label(object)), build_kb_link(object), class: 'topbar-btn', target: :_blank %>
</div>
</div>

View file

@ -6364,7 +6364,7 @@ msgid "No email!"
msgstr ""
#: app/controllers/integration/exchange_controller.rb
msgid "No entries found in selected folder(s)."
msgid "No entries were found in the selected folder(s)."
msgstr ""
#: app/assets/javascripts/app/controllers/_ui_element/_application_selector.coffee
@ -6373,7 +6373,7 @@ msgid "No filter."
msgstr ""
#: app/controllers/integration/exchange_controller.rb
msgid "No folders found for given user credentials."
msgid "No folders were found for the given user credentials."
msgstr ""
#: app/assets/javascripts/app/controllers/ticket_zoom/sidebar_git_issue.coffee
@ -6388,14 +6388,6 @@ msgstr ""
msgid "No oauth_token_secret param!"
msgstr ""
#: app/models/core_workflow/result.rb
msgid "No payload->class_name given!"
msgstr ""
#: app/models/core_workflow/result.rb
msgid "No payload->screen given!"
msgstr ""
#: app/assets/javascripts/app/views/settings/proxy.jst.eco
#: db/seeds/settings.rb
msgid "No proxy for the following hosts."
@ -8929,10 +8921,18 @@ msgstr ""
msgid "The required parameter 'id' is missing."
msgstr ""
#: app/models/core_workflow/result.rb
msgid "The required parameter 'payload->class_name' is missing."
msgstr ""
#: app/controllers/users_controller.rb
msgid "The required parameter 'signup' is missing."
msgstr ""
#: app/models/core_workflow/result.rb
msgid "The required parmeter 'payload->screen' is missing."
msgstr ""
#: app/controllers/users_controller.rb
msgid "The resized image is invalid."
msgstr ""
@ -10275,7 +10275,7 @@ msgid "Will be published"
msgstr ""
#: app/views/knowledge_base/public/_top_banner.html.erb
msgid "Will be published on "
msgid "Will be published on"
msgstr ""
#: db/seeds/settings.rb