Browse Source

Maintenance: Improve translatable source strings.

Martin Gruner 2 years ago
parent
commit
8df5da2152

+ 1 - 1
app/assets/javascripts/app/controllers/knowledge_base/public_menu_form.coffee

@@ -65,5 +65,5 @@ class App.KnowledgeBasePublicMenuForm extends App.ControllerModal
     @close()
 
   onError: (xhr) =>
-    @showAlert(xhr.responseJSON?.error_human || __('Couldn\'t save changes'))
+    @showAlert(xhr.responseJSON?.error_human || __('The changes could not be saved.'))
     @formItems.forEach (elem) -> elem.toggleUserInteraction(true)

+ 1 - 1
app/assets/javascripts/app/lib/app_post/html5_upload.coffee

@@ -82,7 +82,7 @@ class App.Html5Upload extends App.Controller
       buttonCancel: 'Cancel'
       buttonCancelClass: 'btn--danger'
       buttonSubmit: false
-      message: message || __('Cannot upload file')
+      message: message || __('The file could not be uploaded.')
       shown: true
       small: true
       container: @inputField.closest('.content')

+ 1 - 1
app/assets/javascripts/app/views/integration/cti.jst.eco

@@ -28,7 +28,7 @@
     <table class="settings-list js-inboundBlockCallerId" style="width: 100%;">
       <thead>
         <tr>
-          <th width="50%"><%- @T('Caller id to block') %>
+          <th width="50%"><%- @T('Caller ID to block') %>
           <th width="40%"><%- @T('Note') %>
           <th width="10%"><%- @T('Action') %>
       </thead>

+ 1 - 1
app/assets/javascripts/app/views/integration/placetel.jst.eco

@@ -44,7 +44,7 @@
     <table class="settings-list js-inboundBlockCallerId" style="width: 100%;">
       <thead>
         <tr>
-          <th width="50%"><%- @T('Caller id to block') %>
+          <th width="50%"><%- @T('Caller ID to block') %>
           <th width="40%"><%- @T('Note') %>
           <th width="10%"><%- @T('Action') %>
       </thead>

+ 1 - 1
app/assets/javascripts/app/views/integration/sipgate.jst.eco

@@ -31,7 +31,7 @@
     <table class="settings-list js-inboundBlockCallerId" style="width: 100%;">
       <thead>
         <tr>
-          <th width="50%"><%- @T('Caller id to block') %>
+          <th width="50%"><%- @T('Caller ID to block') %>
           <th width="40%"><%- @T('Note') %>
           <th width="10%"><%- @T('Action') %>
       </thead>

+ 1 - 1
app/assets/javascripts/app/views/knowledge_base/new_controller.coffee

@@ -53,5 +53,5 @@ class App.KnowledgeBaseNewController extends App.Controller
 
       error: (xhr) =>
         @formEnable(@el)
-        @formController.showAlert(xhr.responseJSON?.error || __("Couldn't create Knowledge Base"))
+        @formController.showAlert(xhr.responseJSON?.error || __('The Knowledge Base could not be created.'))
     )

+ 1 - 1
app/assets/javascripts/app/views/object_manager/index.jst.eco

@@ -16,7 +16,7 @@
     <p>
       <%- @T('Changes were made that require a database update.') %>
       <%- @T("This might take some time during which the system can't be used.") %>
-      <%- @T('Please execute database changes only in a maintenance time-slot.') %>
+      <%- @T('Please execute database changes only in a maintenance window.') %>
     </p>
     <p>
       <%- @T('Changes') %>:

+ 3 - 3
app/controllers/channels_twitter_controller.rb

@@ -35,7 +35,7 @@ class ChannelsTwitterController < ApplicationController
 
   def hmac_signature_by_app(content)
     external_credential = ExternalCredential.find_by(name: 'twitter')
-    raise Exceptions::UnprocessableEntity, __("Could not find external_credential 'twitter'!") if !external_credential
+    raise Exceptions::UnprocessableEntity, __("The required 'ExternalCredential' 'twitter' could not be found.") if !external_credential
 
     hmac_signature_gen(external_credential.credentials[:consumer_secret], content)
   end
@@ -51,8 +51,8 @@ class ChannelsTwitterController < ApplicationController
     if !external_credential && ExternalCredential.exists?(name: 'twitter')
       external_credential = ExternalCredential.find_by(name: 'twitter').credentials
     end
-    raise Exceptions::UnprocessableEntity, __('Could not find external_credential in cache!') if external_credential.blank?
-    raise Exceptions::UnprocessableEntity, __('Could not find external_credential[:consumer_secret] in cache!') if external_credential[:consumer_secret].blank?
+    raise Exceptions::UnprocessableEntity, __('The required value external_credential could not be found in the cache.') if external_credential.blank?
+    raise Exceptions::UnprocessableEntity, __("The required value 'external_credential[:consumer_secret]' could not be found in the cache.") if external_credential[:consumer_secret].blank?
     raise Exceptions::UnprocessableEntity, __("The required parameter 'crc_token' is missing from the Twitter verify payload!") if params['crc_token'].blank?
 
     render json: {

+ 1 - 1
app/controllers/links_controller.rb

@@ -31,7 +31,7 @@ class LinksController < ApplicationController
              end
 
     if !object
-      render json: { error: __('Could not find object!') }, status: :unprocessable_entity
+      render json: { error: __('The object could not be found.') }, status: :unprocessable_entity
       return
     end
 

+ 1 - 1
app/controllers/reports_controller.rb

@@ -139,7 +139,7 @@ class ReportsController < ApplicationController
       end
     end
     if !profile
-      raise Exceptions::UnprocessableEntity, __('Could not find active reporting profile.')
+      raise Exceptions::UnprocessableEntity, __('The active reporting profile could not be found.')
     end
 
     local_config = Report.config

Some files were not shown because too many files changed in this diff