Browse Source

Maintenance: Improved translatable source strings.

Martin Gruner 3 years ago
parent
commit
db0eb45fe1

+ 3 - 3
app/assets/javascripts/app/controllers/_channel/email.coffee

@@ -528,7 +528,7 @@ class ChannelEmailAccountWizard extends App.ControllerWizardModal
           @showAlert('js-intro', __('Account already exists!'))
           @showAlert('js-intro', __('Account already exists!'))
         else
         else
           @showSlide('js-inbound')
           @showSlide('js-inbound')
-          @showAlert('js-inbound', __('Unable to detect your server settings. Manual configuration needed.'))
+          @showAlert('js-inbound', __('The server settings could not be automatically detected. Please configure them manually.'))
           @$('.js-inbound [name="options::user"]').val(@account['meta']['email'])
           @$('.js-inbound [name="options::user"]').val(@account['meta']['email'])
           @$('.js-inbound [name="options::password"]').val(@account['meta']['password'])
           @$('.js-inbound [name="options::password"]').val(@account['meta']['password'])
           @$('.js-inbound [name="options::email"]').val(@account['meta']['email'])
           @$('.js-inbound [name="options::email"]').val(@account['meta']['email'])
@@ -749,7 +749,7 @@ class ChannelEmailAccountWizard extends App.ControllerWizardModal
               @delay(
               @delay(
                 =>
                 =>
                   @showSlide('js-intro')
                   @showSlide('js-intro')
-                  @showAlert('js-intro', __('Unable to verify sending and receiving. Please check your settings.'))
+                  @showAlert('js-intro', __('Email sending and receiving could not be verified. Please check your settings.'))
 
 
                 2300
                 2300
               )
               )
@@ -759,7 +759,7 @@ class ChannelEmailAccountWizard extends App.ControllerWizardModal
               @verify(@account, count + 1)
               @verify(@account, count + 1)
       error: =>
       error: =>
         @showSlide('js-intro')
         @showSlide('js-intro')
-        @showAlert('js-intro', __('Unable to verify sending and receiving. Please check your settings.'))
+        @showAlert('js-intro', __('Email sending and receiving could not be verified. Please check your settings.'))
     )
     )
 
 
   hide: (e) =>
   hide: (e) =>

+ 1 - 1
app/assets/javascripts/app/controllers/_channel/facebook.coffee

@@ -182,7 +182,7 @@ class AppConfig extends App.ControllerModal
           )
           )
           return
           return
         @formEnable(e)
         @formEnable(e)
-        @el.find('.alert').removeClass('hidden').text(data.error || __('Unable to verify App.'))
+        @el.find('.alert').removeClass('hidden').text(data.error || __('App could not be verified.'))
     )
     )
 
 
 class AccountEdit extends App.ControllerModal
 class AccountEdit extends App.ControllerModal

+ 1 - 1
app/assets/javascripts/app/controllers/_channel/google.coffee

@@ -425,7 +425,7 @@ class AppConfig extends App.ControllerModal
           )
           )
           return
           return
         @formEnable(e)
         @formEnable(e)
-        @el.find('.alert').removeClass('hidden').text(data.error || __('Unable to verify App.'))
+        @el.find('.alert').removeClass('hidden').text(data.error || __('App could not be verified.'))
     )
     )
 
 
 App.Config.set('google', { prio: 5000, name: __('Google'), parent: '#channels', target: '#channels/google', controller: App.ChannelGoogle, permission: ['admin.channel_google'] }, 'NavBarAdmin')
 App.Config.set('google', { prio: 5000, name: __('Google'), parent: '#channels', target: '#channels/google', controller: App.ChannelGoogle, permission: ['admin.channel_google'] }, 'NavBarAdmin')

+ 1 - 1
app/assets/javascripts/app/controllers/_channel/microsoft365.coffee

@@ -416,7 +416,7 @@ class AppConfig extends App.ControllerModal
           )
           )
           return
           return
         @formEnable(e)
         @formEnable(e)
-        @el.find('.alert').removeClass('hidden').text(data.error || __('Unable to verify App.'))
+        @el.find('.alert').removeClass('hidden').text(data.error || __('App could not be verified.'))
     )
     )
 
 
 App.Config.set('microsoft365', { prio: 5000, name: __('Microsoft 365'), parent: '#channels', target: '#channels/microsoft365', controller: App.ChannelMicrosoft365, permission: ['admin.channel_microsoft365'] }, 'NavBarAdmin')
 App.Config.set('microsoft365', { prio: 5000, name: __('Microsoft 365'), parent: '#channels', target: '#channels/microsoft365', controller: App.ChannelMicrosoft365, permission: ['admin.channel_microsoft365'] }, 'NavBarAdmin')

+ 1 - 1
app/assets/javascripts/app/controllers/_channel/sms.coffee

@@ -435,7 +435,7 @@ class TestModal extends App.ControllerModal
         data = JSON.parse(xhr.responseText)
         data = JSON.parse(xhr.responseText)
         @formEnable(@el)
         @formEnable(@el)
         @el.find('.js-danger')
         @el.find('.js-danger')
-          .text(@T(data.error || __('Unable to perform test')))
+          .text(@T(data.error || __('SMS test failed.')))
           .removeClass('hide')
           .removeClass('hide')
     )
     )
 
 

+ 1 - 1
app/assets/javascripts/app/controllers/_channel/telegram.coffee

@@ -149,7 +149,7 @@ class BotAdd extends App.ControllerModal
       error: (xhr) =>
       error: (xhr) =>
         data = JSON.parse(xhr.responseText)
         data = JSON.parse(xhr.responseText)
         @formEnable(e)
         @formEnable(e)
-        error_message = App.i18n.translateContent(data.error || __('Unable to save Bot.'))
+        error_message = App.i18n.translateContent(data.error || __('The Telegram bot could not be saved.'))
         @el.find('.alert').removeClass('hidden').text(error_message)
         @el.find('.alert').removeClass('hidden').text(error_message)
     )
     )
 
 

+ 1 - 1
app/assets/javascripts/app/controllers/_channel/twitter.coffee

@@ -189,7 +189,7 @@ class AppConfig extends App.ControllerModal
           )
           )
           return
           return
         @formEnable(e)
         @formEnable(e)
-        @el.find('.alert').removeClass('hidden').text(data.error || __('Unable to verify App.'))
+        @el.find('.alert').removeClass('hidden').text(data.error || __('App could not be verified.'))
     )
     )
 
 
 class AccountEdit extends App.ControllerModal
 class AccountEdit extends App.ControllerModal

+ 3 - 3
app/assets/javascripts/app/controllers/_integration/exchange.coffee

@@ -282,7 +282,7 @@ class ConnectionWizard extends App.ControllerWizardModal
         if !_.isEmpty(detailsRaw)
         if !_.isEmpty(detailsRaw)
           details = JSON.parse(detailsRaw)
           details = JSON.parse(detailsRaw)
         @showSlide('js-discover')
         @showSlide('js-discover')
-        @showAlert('js-discover', details.error || __('Unable to perform backend.'))
+        @showAlert('js-discover', details.error || __('Server operation failed.'))
     )
     )
 
 
   folders: (e) =>
   folders: (e) =>
@@ -323,7 +323,7 @@ class ConnectionWizard extends App.ControllerWizardModal
         if !_.isEmpty(detailsRaw)
         if !_.isEmpty(detailsRaw)
           details = JSON.parse(detailsRaw)
           details = JSON.parse(detailsRaw)
         @showSlide('js-bind')
         @showSlide('js-bind')
-        @showAlert('js-bind', details.error || __('Unable to perform backend.'))
+        @showAlert('js-bind', details.error || __('Server operation failed.'))
     )
     )
 
 
   foldersShow: (alreadyShown) =>
   foldersShow: (alreadyShown) =>
@@ -429,7 +429,7 @@ class ConnectionWizard extends App.ControllerWizardModal
         if !_.isEmpty(detailsRaw)
         if !_.isEmpty(detailsRaw)
           details = JSON.parse(detailsRaw)
           details = JSON.parse(detailsRaw)
         @showSlide('js-folders')
         @showSlide('js-folders')
-        @showAlert('js-folders', details.error || __('Unable to perform backend.'))
+        @showAlert('js-folders', details.error || __('Server operation failed.'))
     )
     )
 
 
   mappingShow: (alreadyShown) =>
   mappingShow: (alreadyShown) =>

+ 1 - 1
app/assets/javascripts/app/controllers/_integration/github.coffee

@@ -60,7 +60,7 @@ class Form extends App.Controller
         details = data.responseJSON || {}
         details = data.responseJSON || {}
         App.Event.trigger 'notify', {
         App.Event.trigger 'notify', {
           type: 'error'
           type: 'error'
-          msg:  App.i18n.translateContent(details.error_human || details.error || __('Unable to save!'))
+          msg:  App.i18n.translateContent(details.error_human || details.error || __('Saving failed.'))
         }
         }
     )
     )
 
 

+ 1 - 1
app/assets/javascripts/app/controllers/_integration/gitlab.coffee

@@ -60,7 +60,7 @@ class Form extends App.Controller
         details = data.responseJSON || {}
         details = data.responseJSON || {}
         App.Event.trigger 'notify', {
         App.Event.trigger 'notify', {
           type: 'error'
           type: 'error'
-          msg:  App.i18n.translateContent(details.error_human || details.error || __('Unable to save!'))
+          msg:  App.i18n.translateContent(details.error_human || details.error || __('Saving failed.'))
         }
         }
     )
     )
 
 

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