Maintenance: Improved translatable source strings.

This commit is contained in:
Martin Gruner 2022-01-21 17:06:41 +01:00
parent fd816b3c71
commit b2ecb71043
14 changed files with 28 additions and 33 deletions

View file

@ -142,7 +142,7 @@ class ChannelEmailAccountOverview extends App.Controller
e.preventDefault() e.preventDefault()
id = $(e.target).closest('.action').data('id') id = $(e.target).closest('.action').data('id')
new App.ControllerConfirm( new App.ControllerConfirm(
message: __('Sure?') message: __('Are you sure?')
callback: => callback: =>
@ajax( @ajax(
id: 'email_delete' id: 'email_delete'

View file

@ -95,7 +95,7 @@ class ChannelFacebook extends App.ControllerSubContent
e.preventDefault() e.preventDefault()
id = $(e.target).closest('.action').data('id') id = $(e.target).closest('.action').data('id')
new App.ControllerConfirm( new App.ControllerConfirm(
message: __('Sure?') message: __('Are you sure?')
callback: => callback: =>
@ajax( @ajax(
id: 'facebook_delete' id: 'facebook_delete'

View file

@ -145,7 +145,7 @@ class ChannelAccountOverview extends App.ControllerSubContent
e.preventDefault() e.preventDefault()
id = $(e.target).closest('.action').data('id') id = $(e.target).closest('.action').data('id')
new App.ControllerConfirm( new App.ControllerConfirm(
message: __('Sure?') message: __('Are you sure?')
callback: => callback: =>
@ajax( @ajax(
id: 'google_delete' id: 'google_delete'

View file

@ -136,7 +136,7 @@ class ChannelAccountOverview extends App.ControllerSubContent
e.preventDefault() e.preventDefault()
id = $(e.target).closest('.action').data('id') id = $(e.target).closest('.action').data('id')
new App.ControllerConfirm( new App.ControllerConfirm(
message: __('Sure?') message: __('Are you sure?')
callback: => callback: =>
@ajax( @ajax(
id: 'microsoft365_delete' id: 'microsoft365_delete'

View file

@ -63,7 +63,7 @@ class ChannelTelegram extends App.ControllerSubContent
e.preventDefault() e.preventDefault()
id = $(e.target).closest('.action').data('id') id = $(e.target).closest('.action').data('id')
new App.ControllerConfirm( new App.ControllerConfirm(
message: __('Sure?') message: __('Are you sure?')
callback: => callback: =>
@ajax( @ajax(
id: 'telegram_delete' id: 'telegram_delete'

View file

@ -102,7 +102,7 @@ class ChannelTwitter extends App.ControllerSubContent
e.preventDefault() e.preventDefault()
id = $(e.target).closest('.action').data('id') id = $(e.target).closest('.action').data('id')
new App.ControllerConfirm( new App.ControllerConfirm(
message: __('Sure?') message: __('Are you sure?')
callback: => callback: =>
@ajax( @ajax(
id: 'twitter_delete' id: 'twitter_delete'

View file

@ -63,7 +63,7 @@ class ProfileTokenAccess extends App.ControllerSubContent
) )
new App.ControllerConfirm( new App.ControllerConfirm(
message: __('Sure?') message: __('Are you sure?')
callback: callback callback: callback
container: @el.closest('.content') container: @el.closest('.content')
) )

View file

@ -52,7 +52,7 @@ class Maintenance extends App.ControllerSubContent
) )
if value if value
new App.ControllerConfirm( new App.ControllerConfirm(
message: __('Sure?') message: __('Are you sure?')
callback: callback callback: callback
onCancel: => onCancel: =>
@modeSetting.prop('checked', false) @modeSetting.prop('checked', false)

View file

@ -130,9 +130,9 @@ class Edit extends App.ControllerModal
class DestroyConfirm extends App.ControllerModal class DestroyConfirm extends App.ControllerModal
buttonClose: true buttonClose: true
buttonCancel: true buttonCancel: true
buttonSubmit: __('yes') buttonSubmit: __('Yes')
buttonClass: 'btn--danger' buttonClass: 'btn--danger'
head: __('Confirm') head: __('Confirmation')
small: true small: true
content: -> content: ->

View file

@ -127,7 +127,7 @@ class Remove extends App.ControllerModal
buttonCancel: true buttonCancel: true
buttonSubmit: __('Discard Changes') buttonSubmit: __('Discard Changes')
buttonClass: 'btn--danger' buttonClass: 'btn--danger'
head: __('Confirm') head: __('Confirmation')
content: -> content: ->
App.i18n.translateContent('Tab has changed, do you really want to close it?') App.i18n.translateContent('Tab has changed, do you really want to close it?')

View file

@ -63,7 +63,7 @@ class Delete
) )
new App.ControllerConfirm( new App.ControllerConfirm(
message: __('Sure?') message: __('Are you sure?')
callback: callback callback: callback
container: ui.el.closest('.content') container: ui.el.closest('.content')
) )

View file

@ -60,7 +60,7 @@ class App.WidgetTemplate extends App.Controller
return if !params['id'] return if !params['id']
template = App.Template.find(params['id']) template = App.Template.find(params['id'])
if confirm('Sure?') if confirm(__('Are you sure?'))
@id = false @id = false
template.destroy() template.destroy()

View file

@ -1,7 +1,7 @@
<form class="update-box bulkAction-form" role="form"> <form class="update-box bulkAction-form" role="form">
<div class="bulkAction-firstStep js-action-step"> <div class="bulkAction-firstStep js-action-step">
<div id="form-ticket-bulk" class="form-inline form-inline--enclosed flex"></div> <div id="form-ticket-bulk" class="form-inline form-inline--enclosed flex"></div>
<div class="btn btn--primary js-confirm"><%- @T('Confirm') %></div> <div class="btn btn--primary js-confirm"><%- @T('Confirmation') %></div>
</div> </div>
<div class="hide bulkAction-secondStep js-confirm-step"> <div class="hide bulkAction-secondStep js-confirm-step">
<div id="form-ticket-bulk-comment" class="form-inline"></div> <div id="form-ticket-bulk-comment" class="form-inline"></div>

View file

@ -847,7 +847,17 @@ msgstr ""
msgid "Are you sure you want to reload? You have unsaved changes that will get lost" msgid "Are you sure you want to reload? You have unsaved changes that will get lost"
msgstr "" msgstr ""
#: app/assets/javascripts/app/controllers/_channel/email.coffee
#: app/assets/javascripts/app/controllers/_channel/facebook.coffee
#: app/assets/javascripts/app/controllers/_channel/google.coffee
#: app/assets/javascripts/app/controllers/_channel/microsoft365.coffee
#: app/assets/javascripts/app/controllers/_channel/telegram.coffee
#: app/assets/javascripts/app/controllers/_channel/twitter.coffee
#: app/assets/javascripts/app/controllers/_profile/token_access.coffee
#: app/assets/javascripts/app/controllers/data_privacy.coffee #: app/assets/javascripts/app/controllers/data_privacy.coffee
#: app/assets/javascripts/app/controllers/maintenance.coffee
#: app/assets/javascripts/app/controllers/ticket_zoom/article_action/delete.coffee
#: app/assets/javascripts/app/controllers/widget/template.coffee
msgid "Are you sure?" msgid "Are you sure?"
msgstr "" msgstr ""
@ -1879,18 +1889,15 @@ msgstr ""
msgid "Configure Base" msgid "Configure Base"
msgstr "" msgstr ""
#: app/assets/javascripts/app/controllers/tag.coffee
#: app/assets/javascripts/app/controllers/taskbar_widget.coffee
#: app/assets/javascripts/app/views/agent_ticket_view/bulk.jst.eco
msgid "Confirm"
msgstr ""
#: app/assets/javascripts/app/controllers/_plugin/keyboard_shortcuts.coffee #: app/assets/javascripts/app/controllers/_plugin/keyboard_shortcuts.coffee
msgid "Confirm/submit dialog" msgid "Confirm/submit dialog"
msgstr "" msgstr ""
#: app/assets/javascripts/app/controllers/_application_controller/_modal_generic_confirm.coffee #: app/assets/javascripts/app/controllers/_application_controller/_modal_generic_confirm.coffee
#: app/assets/javascripts/app/controllers/_application_controller/_modal_generic_destroy_confirm.coffee #: app/assets/javascripts/app/controllers/_application_controller/_modal_generic_destroy_confirm.coffee
#: app/assets/javascripts/app/controllers/tag.coffee
#: app/assets/javascripts/app/controllers/taskbar_widget.coffee
#: app/assets/javascripts/app/views/agent_ticket_view/bulk.jst.eco
msgid "Confirmation" msgid "Confirmation"
msgstr "" msgstr ""
@ -8714,18 +8721,6 @@ msgstr ""
msgid "Support of multilingual Knowledge Base." msgid "Support of multilingual Knowledge Base."
msgstr "" msgstr ""
#: app/assets/javascripts/app/controllers/_channel/email.coffee
#: app/assets/javascripts/app/controllers/_channel/facebook.coffee
#: app/assets/javascripts/app/controllers/_channel/google.coffee
#: app/assets/javascripts/app/controllers/_channel/microsoft365.coffee
#: app/assets/javascripts/app/controllers/_channel/telegram.coffee
#: app/assets/javascripts/app/controllers/_channel/twitter.coffee
#: app/assets/javascripts/app/controllers/_profile/token_access.coffee
#: app/assets/javascripts/app/controllers/maintenance.coffee
#: app/assets/javascripts/app/controllers/ticket_zoom/article_action/delete.coffee
msgid "Sure?"
msgstr ""
#: db/seeds/schedulers.rb #: db/seeds/schedulers.rb
msgid "Sync calendars with ical feeds." msgid "Sync calendars with ical feeds."
msgstr "" msgstr ""
@ -10534,6 +10529,7 @@ msgstr ""
#: app/assets/javascripts/app/controllers/_application_controller/_modal_generic_confirm.coffee #: app/assets/javascripts/app/controllers/_application_controller/_modal_generic_confirm.coffee
#: app/assets/javascripts/app/controllers/_ui_element/ticket_perform_action.coffee #: app/assets/javascripts/app/controllers/_ui_element/ticket_perform_action.coffee
#: app/assets/javascripts/app/controllers/tag.coffee
msgid "Yes" msgid "Yes"
msgstr "" msgstr ""
@ -11624,7 +11620,6 @@ msgid "within next (relative)"
msgstr "" msgstr ""
#: app/assets/javascripts/app/controllers/_ui_element/boolean.coffee #: app/assets/javascripts/app/controllers/_ui_element/boolean.coffee
#: app/assets/javascripts/app/controllers/tag.coffee
#: app/assets/javascripts/app/views/object_manager/attribute/boolean.jst.eco #: app/assets/javascripts/app/views/object_manager/attribute/boolean.jst.eco
msgid "yes" msgid "yes"
msgstr "" msgstr ""