Browse Source

Maintenance: Improved translatable source strings.

Martin Gruner 3 years ago
parent
commit
c84416aec0

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

@@ -59,7 +59,7 @@ class App.ManageKnowledgeBase extends App.ControllerTabs
       @renderNonExistant()
 
   renderNonExistant: ->
-    @renderScreenError(detail: __('No Knowledge Base. Please create first Knowledge Base'), el: @$('.page-content'))
+    @renderScreenError(detail: __('There is no Knowledge Base yet. Please create one.'), el: @$('.page-content'))
     @headerSwitchInput.prop('checked', false)
 
     @modal = new App.KnowledgeBaseNewModal(

+ 1 - 1
app/assets/javascripts/app/controllers/agent_ticket_create.coffee

@@ -219,7 +219,7 @@ class App.TicketCreate extends App.Controller
         @log 'debug', 'form hash changed', diff, data
         App.TaskManager.update(@taskKey, { 'state': data })
 
-        # check it task title in task need to be updated
+        # check it task title in task needs to be updated
         if @latestTitle isnt data.title
           @latestTitle = data.title
           App.TaskManager.touch(@taskKey)

+ 1 - 1
app/assets/javascripts/app/controllers/agent_ticket_create/form_hander_signature.coffee

@@ -9,7 +9,7 @@ class TicketCreateFormHanderSignature
       if group && group.signature_id
         signature = App.Signature.find(group.signature_id)
 
-    # check if signature need to be added
+    # check if signature needs to be added
     type = ui.el.closest('.content').find('[name="formSenderType"]').val()
     if signature &&  signature.body && type is 'email-out'
       signatureFinished = App.Utils.replaceTags(signature.body, { user: App.Session.get(), config: App.Config.all() })

+ 2 - 2
app/assets/javascripts/app/controllers/ticket_zoom/article_action/email_reply.coffee

@@ -12,7 +12,7 @@ class EmailReply extends App.Controller
         href: '#'
       }
 
-      # check if reply all need to be shown
+      # check if reply all needs to be shown
       recipients = []
       if article.sender.name is 'Customer'
         if article.from
@@ -127,7 +127,7 @@ class EmailReply extends App.Controller
     # get current body
     body = ui.el.closest('.ticketZoom').find('.article-add [data-name="body"]').html() || ''
 
-    # check if quote need to be added via user selection of content
+    # check if quote needs to be added via user selection of content
     signaturePosition = 'bottom'
 
     if !@hasUserSelectedContent(ui)

+ 1 - 1
app/assets/javascripts/app/controllers/ticket_zoom/article_view.coffee

@@ -125,7 +125,7 @@ class ArticleViewItem extends App.ControllerObserver
     else
       @el.removeClass('is-internal')
 
-    # check if email link need to be updated
+    # check if email link needs to be updated
     links = clone(article.preferences.links) || []
     if article.type.name is 'email'
       link =

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

@@ -163,7 +163,7 @@ class _i18nSingleton extends Spine.Module
           @dirToSet = locale.dir
           localeFound = true
 
-    # check if locale need to be changed
+    # check if locale needs to be changed
     return if localeToSet is @locale
 
     # set locale

+ 1 - 1
app/assets/javascripts/app/views/import/kayako.jst.eco

@@ -36,7 +36,7 @@
           <%- @T('Enter your email address and password from your %s account which should be used for the import.', 'Kayako') %>
         </p>
         <p>
-          <%- @T('Attention: These will also your login password after the import is completed.') %>
+          <%- @T('Attention: These will also be your login and password after the import is completed.') %>
         </p>
         <div class="form-group">
           <label for="kayako-email"><%- @T('Email') %></label>

+ 1 - 1
app/controllers/application_controller/has_user.rb

@@ -73,7 +73,7 @@ module ApplicationController::HasUser
 
     session[:ping] = Time.zone.now.iso8601
 
-    # check if remote ip need to be updated
+    # check if remote ip needs to be updated
     if session[:user_id]
       if !session[:remote_ip] || session[:remote_ip] != request.remote_ip # rubocop:disable Style/SoleNestedConditional
         session[:remote_ip] = request.remote_ip

+ 2 - 2
app/controllers/monitoring_controller.rb

@@ -311,7 +311,7 @@ curl http://localhost/api/v1/monitoring/amount_check?token=XXX&periode=1h
     raise Exceptions::UnprocessableEntity, 'periode need to have s, m, h or d as last!' if !scale.match?(%r{^(s|m|h|d)$})
 
     periode = params[:periode][0, params[:periode].length - 1]
-    raise Exceptions::UnprocessableEntity, 'periode need to be an integer!' if periode.to_i.zero?
+    raise Exceptions::UnprocessableEntity, 'periode needs to be an integer!' if periode.to_i.zero?
 
     case scale
     when 's'
@@ -334,7 +334,7 @@ curl http://localhost/api/v1/monitoring/amount_check?token=XXX&periode=1h
     state_param = false
     map.each do |row|
       next if params[row[:param]].blank?
-      raise Exceptions::UnprocessableEntity, "#{row[:param]} need to be an integer!" if params[row[:param]].to_i.zero?
+      raise Exceptions::UnprocessableEntity, "#{row[:param]} needs to be an integer!" if params[row[:param]].to_i.zero?
 
       state_param = true
 

+ 1 - 1
app/controllers/reports_controller.rb

@@ -7,7 +7,7 @@ class ReportsController < ApplicationController
   def reporting_config
     if !Report.enabled?
       render json: {
-        error: __('Elasticsearch need to be configured!'),
+        error: __('Elasticsearch needs to be configured!'),
       }
       return
     end

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