Maintenance: Improved translatable source strings.

This commit is contained in:
Martin Gruner 2022-01-26 08:17:54 +01:00
parent 63ae3d0838
commit b5b1c88b54
13 changed files with 24 additions and 30 deletions

View file

@ -77,7 +77,7 @@ class ProfileCalendarSubscriptions extends App.ControllerSubContent
=>
@notify(
type: 'success'
msg: App.i18n.translateContent('Successful!')
msg: App.i18n.translateContent('Update successful.')
)
true
)

View file

@ -55,7 +55,7 @@ class ProfileLanguage extends App.ControllerSubContent
App.Event.trigger('ui:rerender')
@notify(
type: 'success'
msg: App.i18n.translateContent('Successful!')
msg: App.i18n.translateContent('Update successful.')
)
,
true

View file

@ -45,7 +45,7 @@ class ProfileLinkedAccounts extends App.ControllerSubContent
success: (data, status, xhr) =>
@notify(
type: 'success'
msg: App.i18n.translateContent('Successful!')
msg: App.i18n.translateContent('Update successful.')
)
update = =>
@render()

View file

@ -176,7 +176,7 @@ class ProfileNotification extends App.ControllerSubContent
App.Event.trigger('ui:rerender')
@notify(
type: 'success'
msg: App.i18n.translateContent('Successful!')
msg: App.i18n.translateContent('Update successful.')
)
,
true

View file

@ -69,7 +69,7 @@ class App.SettingsAreaLogo extends App.Controller
if data.result is 'ok'
App.Event.trigger 'notify', {
type: 'success'
msg: App.i18n.translateContent('Update successful!')
msg: App.i18n.translateContent('Update successful.')
timeout: 2000
}
for setting in data.settings

View file

@ -79,7 +79,7 @@ class App.SettingsAreaSwitch extends App.Controller
ui.formEnable(e)
App.Event.trigger 'notify', {
type: 'success'
msg: App.i18n.translateContent('Update successful!')
msg: App.i18n.translateContent('Update successful.')
timeout: 2000
}

View file

@ -115,7 +115,7 @@ class App.SettingsAreaTicketNumber extends App.Controller
ui.formEnable(e)
App.Event.trigger 'notify', {
type: 'success'
msg: App.i18n.translateContent('Update successful!')
msg: App.i18n.translateContent('Update successful.')
timeout: 2000
}

View file

@ -78,7 +78,7 @@ class App.SettingsForm extends App.Controller
if count == 0
App.Event.trigger('notify', {
type: 'success'
msg: App.i18n.translateContent('Update successful!')
msg: App.i18n.translateContent('Update successful.')
timeout: 2000
})

View file

@ -19,7 +19,9 @@ class App.KnowledgeBaseDeleteAction
@dialog = new App.ControllerConfirm(
head: __('Delete')
message: "Are you sure you want to delete \"#{translation?.title}\"?"
# ControllerConfirm performs another (unneeded) translateContent which does also escape special characters, so
# use translatePlain here.
message: App.i18n.translatePlain('Do you really want to delete "%s"?', translation?.title)
callback: @doDelete
container: @parentController.el
onSubmit: ->

View file

@ -110,9 +110,7 @@ class App.KnowledgeBaseSidebarAttachments extends App.Controller
class DeleteConfirm extends App.ControllerConfirm
content: ->
sentence = App.i18n.translateContent('Are you sure you want to delete')
"#{sentence} #{@attachment.filename}?"
buttonSubmit: __('delete')
App.i18n.translateContent('Do you really want to delete "%s"?', @attachment.filename)
onSubmit: ->
@formDisable(@el)

View file

@ -71,7 +71,7 @@ class Maintenance extends App.ControllerSubContent
App.Setting.set('maintenance_login_message', params.message)
@notify
type: 'success'
msg: App.i18n.translateContent('Update successful!')
msg: App.i18n.translateContent('Update successful.')
removeAll: true
sendMessage: (e) ->

View file

@ -17,7 +17,7 @@ class App.Setting extends App.Model
if options.notify
App.Event.trigger 'notify', {
type: 'success'
msg: App.i18n.translateContent('Update successful!')
msg: App.i18n.translateContent('Update successful.')
timeout: 2000
}
App.Setting.preferencesPost(@)

View file

@ -835,10 +835,6 @@ msgstr ""
msgid "Archived at"
msgstr ""
#: app/assets/javascripts/app/controllers/knowledge_base/sidebar/attachments.coffee
msgid "Are you sure you want to delete"
msgstr ""
#: app/assets/javascripts/app/controllers/knowledge_base/content_controller.coffee
msgid "Are you sure you want to reload? You have unsaved changes that will get lost"
msgstr ""
@ -3280,6 +3276,11 @@ msgstr ""
msgid "Do not sign email"
msgstr ""
#: app/assets/javascripts/app/controllers/knowledge_base/delete_action.coffee
#: app/assets/javascripts/app/controllers/knowledge_base/sidebar/attachments.coffee
msgid "Do you really want to delete \"%s\"?"
msgstr ""
#: app/assets/javascripts/app/controllers/_application_controller/_modal_generic_destroy_confirm.coffee
#: app/assets/javascripts/app/controllers/tag.coffee
msgid "Do you really want to delete this object?"
@ -8586,13 +8587,6 @@ msgstr ""
msgid "Subscription Settings"
msgstr ""
#: app/assets/javascripts/app/controllers/_profile/calendar_subscriptions.coffee
#: app/assets/javascripts/app/controllers/_profile/language.coffee
#: app/assets/javascripts/app/controllers/_profile/linked_accounts.coffee
#: app/assets/javascripts/app/controllers/_profile/notification.coffee
msgid "Successful!"
msgstr ""
#: app/assets/javascripts/app/models/user.coffee
msgid "Summer holiday"
msgstr ""
@ -9716,16 +9710,17 @@ msgstr ""
msgid "Update existing records with the attributes specified in the import data."
msgstr ""
#: app/assets/javascripts/app/controllers/_profile/calendar_subscriptions.coffee
#: app/assets/javascripts/app/controllers/_profile/language.coffee
#: app/assets/javascripts/app/controllers/_profile/linked_accounts.coffee
#: app/assets/javascripts/app/controllers/_profile/notification.coffee
#: app/assets/javascripts/app/controllers/_profile/out_of_office.coffee
#: app/assets/javascripts/app/controllers/_settings/area_logo.coffee
#: app/assets/javascripts/app/controllers/_settings/area_switch.coffee
#: app/assets/javascripts/app/controllers/_settings/area_ticket_number.coffee
#: app/assets/javascripts/app/controllers/_settings/form.coffee
#: app/assets/javascripts/app/controllers/maintenance.coffee
#: app/assets/javascripts/app/models/setting.coffee
msgid "Update successful!"
msgstr ""
#: app/assets/javascripts/app/controllers/_profile/out_of_office.coffee
msgid "Update successful."
msgstr ""
@ -10903,7 +10898,6 @@ msgstr ""
#: app/assets/javascripts/app/controllers/_application_controller/_modal_generic_destroy_confirm.coffee
#: app/assets/javascripts/app/controllers/data_privacy.coffee
#: app/assets/javascripts/app/controllers/knowledge_base/sidebar/attachments.coffee
#: app/assets/javascripts/app/controllers/ticket_zoom/article_action/delete.coffee
#: app/assets/javascripts/app/views/data_privacy/preview.jst.eco
msgid "delete"