Maintenance: Improved translatable source strings.
This commit is contained in:
parent
63ae3d0838
commit
b5b1c88b54
13 changed files with 24 additions and 30 deletions
|
@ -77,7 +77,7 @@ class ProfileCalendarSubscriptions extends App.ControllerSubContent
|
||||||
=>
|
=>
|
||||||
@notify(
|
@notify(
|
||||||
type: 'success'
|
type: 'success'
|
||||||
msg: App.i18n.translateContent('Successful!')
|
msg: App.i18n.translateContent('Update successful.')
|
||||||
)
|
)
|
||||||
true
|
true
|
||||||
)
|
)
|
||||||
|
|
|
@ -55,7 +55,7 @@ class ProfileLanguage extends App.ControllerSubContent
|
||||||
App.Event.trigger('ui:rerender')
|
App.Event.trigger('ui:rerender')
|
||||||
@notify(
|
@notify(
|
||||||
type: 'success'
|
type: 'success'
|
||||||
msg: App.i18n.translateContent('Successful!')
|
msg: App.i18n.translateContent('Update successful.')
|
||||||
)
|
)
|
||||||
,
|
,
|
||||||
true
|
true
|
||||||
|
|
|
@ -45,7 +45,7 @@ class ProfileLinkedAccounts extends App.ControllerSubContent
|
||||||
success: (data, status, xhr) =>
|
success: (data, status, xhr) =>
|
||||||
@notify(
|
@notify(
|
||||||
type: 'success'
|
type: 'success'
|
||||||
msg: App.i18n.translateContent('Successful!')
|
msg: App.i18n.translateContent('Update successful.')
|
||||||
)
|
)
|
||||||
update = =>
|
update = =>
|
||||||
@render()
|
@render()
|
||||||
|
|
|
@ -176,7 +176,7 @@ class ProfileNotification extends App.ControllerSubContent
|
||||||
App.Event.trigger('ui:rerender')
|
App.Event.trigger('ui:rerender')
|
||||||
@notify(
|
@notify(
|
||||||
type: 'success'
|
type: 'success'
|
||||||
msg: App.i18n.translateContent('Successful!')
|
msg: App.i18n.translateContent('Update successful.')
|
||||||
)
|
)
|
||||||
,
|
,
|
||||||
true
|
true
|
||||||
|
|
|
@ -69,7 +69,7 @@ class App.SettingsAreaLogo extends App.Controller
|
||||||
if data.result is 'ok'
|
if data.result is 'ok'
|
||||||
App.Event.trigger 'notify', {
|
App.Event.trigger 'notify', {
|
||||||
type: 'success'
|
type: 'success'
|
||||||
msg: App.i18n.translateContent('Update successful!')
|
msg: App.i18n.translateContent('Update successful.')
|
||||||
timeout: 2000
|
timeout: 2000
|
||||||
}
|
}
|
||||||
for setting in data.settings
|
for setting in data.settings
|
||||||
|
|
|
@ -79,7 +79,7 @@ class App.SettingsAreaSwitch extends App.Controller
|
||||||
ui.formEnable(e)
|
ui.formEnable(e)
|
||||||
App.Event.trigger 'notify', {
|
App.Event.trigger 'notify', {
|
||||||
type: 'success'
|
type: 'success'
|
||||||
msg: App.i18n.translateContent('Update successful!')
|
msg: App.i18n.translateContent('Update successful.')
|
||||||
timeout: 2000
|
timeout: 2000
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -115,7 +115,7 @@ class App.SettingsAreaTicketNumber extends App.Controller
|
||||||
ui.formEnable(e)
|
ui.formEnable(e)
|
||||||
App.Event.trigger 'notify', {
|
App.Event.trigger 'notify', {
|
||||||
type: 'success'
|
type: 'success'
|
||||||
msg: App.i18n.translateContent('Update successful!')
|
msg: App.i18n.translateContent('Update successful.')
|
||||||
timeout: 2000
|
timeout: 2000
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ class App.SettingsForm extends App.Controller
|
||||||
if count == 0
|
if count == 0
|
||||||
App.Event.trigger('notify', {
|
App.Event.trigger('notify', {
|
||||||
type: 'success'
|
type: 'success'
|
||||||
msg: App.i18n.translateContent('Update successful!')
|
msg: App.i18n.translateContent('Update successful.')
|
||||||
timeout: 2000
|
timeout: 2000
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,9 @@ class App.KnowledgeBaseDeleteAction
|
||||||
|
|
||||||
@dialog = new App.ControllerConfirm(
|
@dialog = new App.ControllerConfirm(
|
||||||
head: __('Delete')
|
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
|
callback: @doDelete
|
||||||
container: @parentController.el
|
container: @parentController.el
|
||||||
onSubmit: ->
|
onSubmit: ->
|
||||||
|
|
|
@ -110,9 +110,7 @@ class App.KnowledgeBaseSidebarAttachments extends App.Controller
|
||||||
|
|
||||||
class DeleteConfirm extends App.ControllerConfirm
|
class DeleteConfirm extends App.ControllerConfirm
|
||||||
content: ->
|
content: ->
|
||||||
sentence = App.i18n.translateContent('Are you sure you want to delete')
|
App.i18n.translateContent('Do you really want to delete "%s"?', @attachment.filename)
|
||||||
"#{sentence} #{@attachment.filename}?"
|
|
||||||
buttonSubmit: __('delete')
|
|
||||||
onSubmit: ->
|
onSubmit: ->
|
||||||
@formDisable(@el)
|
@formDisable(@el)
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,7 @@ class Maintenance extends App.ControllerSubContent
|
||||||
App.Setting.set('maintenance_login_message', params.message)
|
App.Setting.set('maintenance_login_message', params.message)
|
||||||
@notify
|
@notify
|
||||||
type: 'success'
|
type: 'success'
|
||||||
msg: App.i18n.translateContent('Update successful!')
|
msg: App.i18n.translateContent('Update successful.')
|
||||||
removeAll: true
|
removeAll: true
|
||||||
|
|
||||||
sendMessage: (e) ->
|
sendMessage: (e) ->
|
||||||
|
|
|
@ -17,7 +17,7 @@ class App.Setting extends App.Model
|
||||||
if options.notify
|
if options.notify
|
||||||
App.Event.trigger 'notify', {
|
App.Event.trigger 'notify', {
|
||||||
type: 'success'
|
type: 'success'
|
||||||
msg: App.i18n.translateContent('Update successful!')
|
msg: App.i18n.translateContent('Update successful.')
|
||||||
timeout: 2000
|
timeout: 2000
|
||||||
}
|
}
|
||||||
App.Setting.preferencesPost(@)
|
App.Setting.preferencesPost(@)
|
||||||
|
|
|
@ -835,10 +835,6 @@ msgstr ""
|
||||||
msgid "Archived at"
|
msgid "Archived at"
|
||||||
msgstr ""
|
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
|
#: 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"
|
msgid "Are you sure you want to reload? You have unsaved changes that will get lost"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -3280,6 +3276,11 @@ msgstr ""
|
||||||
msgid "Do not sign email"
|
msgid "Do not sign email"
|
||||||
msgstr ""
|
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/_application_controller/_modal_generic_destroy_confirm.coffee
|
||||||
#: app/assets/javascripts/app/controllers/tag.coffee
|
#: app/assets/javascripts/app/controllers/tag.coffee
|
||||||
msgid "Do you really want to delete this object?"
|
msgid "Do you really want to delete this object?"
|
||||||
|
@ -8586,13 +8587,6 @@ msgstr ""
|
||||||
msgid "Subscription Settings"
|
msgid "Subscription Settings"
|
||||||
msgstr ""
|
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
|
#: app/assets/javascripts/app/models/user.coffee
|
||||||
msgid "Summer holiday"
|
msgid "Summer holiday"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -9716,16 +9710,17 @@ msgstr ""
|
||||||
msgid "Update existing records with the attributes specified in the import data."
|
msgid "Update existing records with the attributes specified in the import data."
|
||||||
msgstr ""
|
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_logo.coffee
|
||||||
#: app/assets/javascripts/app/controllers/_settings/area_switch.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/area_ticket_number.coffee
|
||||||
#: app/assets/javascripts/app/controllers/_settings/form.coffee
|
#: app/assets/javascripts/app/controllers/_settings/form.coffee
|
||||||
#: app/assets/javascripts/app/controllers/maintenance.coffee
|
#: app/assets/javascripts/app/controllers/maintenance.coffee
|
||||||
#: app/assets/javascripts/app/models/setting.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."
|
msgid "Update successful."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -10903,7 +10898,6 @@ msgstr ""
|
||||||
|
|
||||||
#: 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/data_privacy.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/controllers/ticket_zoom/article_action/delete.coffee
|
||||||
#: app/assets/javascripts/app/views/data_privacy/preview.jst.eco
|
#: app/assets/javascripts/app/views/data_privacy/preview.jst.eco
|
||||||
msgid "delete"
|
msgid "delete"
|
||||||
|
|
Loading…
Reference in a new issue