Fixes #4096 - Pop-Up Warning for missing attachments with text containing "attached" or related only appears on english terms (not translated).
This commit is contained in:
parent
0fb34f24cf
commit
d1d67c3230
2 changed files with 33 additions and 1 deletions
|
@ -948,7 +948,7 @@ class App.Utils
|
||||||
tmp.find('blockquote').remove()
|
tmp.find('blockquote').remove()
|
||||||
text = tmp.text()
|
text = tmp.text()
|
||||||
|
|
||||||
matchwords = ['Attachment', 'attachment', 'Attached', 'attached', 'Enclosed', 'enclosed', 'Enclosure', 'enclosure']
|
matchwords = [__('Attachment'), __('attachment'), __('Attached'), __('attached'), __('Enclosed'), __('enclosed'), __('Enclosure'), __('enclosure')]
|
||||||
for word in matchwords
|
for word in matchwords
|
||||||
# en
|
# en
|
||||||
attachmentTranslatedRegExp = new RegExp("\\W#{word}\\W", 'i')
|
attachmentTranslatedRegExp = new RegExp("\\W#{word}\\W", 'i')
|
||||||
|
|
|
@ -941,11 +941,19 @@ msgstr ""
|
||||||
msgid "At least one user needs to have admin permissions."
|
msgid "At least one user needs to have admin permissions."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: app/assets/javascripts/app/lib/app_post/utils.coffee
|
||||||
|
msgid "Attached"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/views/generic/attachments.jst.eco
|
#: app/assets/javascripts/app/views/generic/attachments.jst.eco
|
||||||
#: app/views/knowledge_base/public/answers/show.html.erb
|
#: app/views/knowledge_base/public/answers/show.html.erb
|
||||||
msgid "Attached Files"
|
msgid "Attached Files"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: app/assets/javascripts/app/lib/app_post/utils.coffee
|
||||||
|
msgid "Attachment"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: db/seeds/settings.rb
|
#: db/seeds/settings.rb
|
||||||
msgid "Attachment - Search for follow-up also in attachments."
|
msgid "Attachment - Search for follow-up also in attachments."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -3702,6 +3710,14 @@ msgstr ""
|
||||||
msgid "Enables users to create their own account via web interface."
|
msgid "Enables users to create their own account via web interface."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: app/assets/javascripts/app/lib/app_post/utils.coffee
|
||||||
|
msgid "Enclosed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: app/assets/javascripts/app/lib/app_post/utils.coffee
|
||||||
|
msgid "Enclosure"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/views/agent_ticket_create.jst.eco
|
#: app/assets/javascripts/app/views/agent_ticket_create.jst.eco
|
||||||
#: app/assets/javascripts/app/views/ticket_zoom/article_new.jst.eco
|
#: app/assets/javascripts/app/views/ticket_zoom/article_new.jst.eco
|
||||||
msgid "Encrypt"
|
msgid "Encrypt"
|
||||||
|
@ -10793,6 +10809,14 @@ msgstr ""
|
||||||
msgid "at"
|
msgid "at"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: app/assets/javascripts/app/lib/app_post/utils.coffee
|
||||||
|
msgid "attached"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: app/assets/javascripts/app/lib/app_post/utils.coffee
|
||||||
|
msgid "attachment"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/_ui_element/core_workflow_perform.coffee
|
#: app/assets/javascripts/app/controllers/_ui_element/core_workflow_perform.coffee
|
||||||
msgid "auto select"
|
msgid "auto select"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -10969,6 +10993,14 @@ msgstr ""
|
||||||
msgid "email"
|
msgid "email"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: app/assets/javascripts/app/lib/app_post/utils.coffee
|
||||||
|
msgid "enclosed"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: app/assets/javascripts/app/lib/app_post/utils.coffee
|
||||||
|
msgid "enclosure"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/models/ticket.coffee
|
#: app/assets/javascripts/app/models/ticket.coffee
|
||||||
msgid "escalated"
|
msgid "escalated"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
Loading…
Reference in a new issue