Maintenance: Apply source string review changes.
This commit is contained in:
parent
6e90f4bfa2
commit
e057d76e59
31 changed files with 96 additions and 99 deletions
|
@ -32,7 +32,7 @@ class ChannelChat extends App.ControllerSubContent
|
||||||
name: 'chatId'
|
name: 'chatId'
|
||||||
default: '1'
|
default: '1'
|
||||||
type: 'Number'
|
type: 'Number'
|
||||||
description: __('Identifier of the chat-topic.')
|
description: __('Identifier of the chat topic.')
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name: 'show'
|
name: 'show'
|
||||||
|
|
|
@ -11,13 +11,13 @@ class App.FirstStepsClues extends App.Controller
|
||||||
{
|
{
|
||||||
container: '.search-holder'
|
container: '.search-holder'
|
||||||
headline: __('Search')
|
headline: __('Search')
|
||||||
text: __('Here you can search for tickets, customers and organizations. Use the wildcard §*§ to find everything. E. g. §smi*§ or §rosent*l§. You also can use ||double quotes|| for searching phrases §"some phrase"§.')
|
text: __('Here you can search for tickets, customers, and organizations. Use the asterisk §*§ to find anything, e.g. §smi*§ or §rosent*l§. You also can use ||quotation marks|| for searching phrases: §"some phrase"§.')
|
||||||
actions: []
|
actions: []
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
container: '.user-menu .add'
|
container: '.user-menu .add'
|
||||||
headline: __('Create')
|
headline: __('Create')
|
||||||
text: __('Here you can create new tickets. Also if you have the permissions you can create new customers and organizations.')
|
text: __('Here you can create new tickets. Also, if you have the permission, you can create new customers and organizations.')
|
||||||
actions: [
|
actions: [
|
||||||
'hover .navigation',
|
'hover .navigation',
|
||||||
'hover .user-menu .add'
|
'hover .user-menu .add'
|
||||||
|
@ -26,7 +26,7 @@ class App.FirstStepsClues extends App.Controller
|
||||||
{
|
{
|
||||||
container: '.user-menu .user .dropdown-menu'
|
container: '.user-menu .user .dropdown-menu'
|
||||||
headline: __('Personal Settings')
|
headline: __('Personal Settings')
|
||||||
text: __('Here you can sign out, change the frontend language and see your last viewed items.')
|
text: __('Here you can sign out, change the frontend language, and see your last viewed items.')
|
||||||
actions: [
|
actions: [
|
||||||
'hover .navigation',
|
'hover .navigation',
|
||||||
'click .user-menu .user .js-action',
|
'click .user-menu .user .js-action',
|
||||||
|
@ -36,7 +36,7 @@ class App.FirstStepsClues extends App.Controller
|
||||||
{
|
{
|
||||||
container: '.js-overviewsMenuItem'
|
container: '.js-overviewsMenuItem'
|
||||||
headline: __('Overviews')
|
headline: __('Overviews')
|
||||||
text: __('Here you find your ticket overviews for open, assigned and escalated tickets.')
|
text: __('Here you find your ticket overviews for open, assigned, and escalated tickets.')
|
||||||
actions: [
|
actions: [
|
||||||
'hover'
|
'hover'
|
||||||
]
|
]
|
||||||
|
|
|
@ -7,7 +7,7 @@ class Stats extends App.ControllerDashboardStatsBase
|
||||||
state: 'supergood'
|
state: 'supergood'
|
||||||
average_per_agent: 0
|
average_per_agent: 0
|
||||||
|
|
||||||
data.StatsTicketWaitingTime.description = __('How long has each customer had to wait, on average, to get a response from you today?')
|
data.StatsTicketWaitingTime.description = __('How long did each customer have to wait, on average, to get a response from you today?')
|
||||||
|
|
||||||
content = App.view('dashboard/stats/ticket_waiting_time')(data)
|
content = App.view('dashboard/stats/ticket_waiting_time')(data)
|
||||||
if @$('.ticket_waiting_time').length > 0
|
if @$('.ticket_waiting_time').length > 0
|
||||||
|
|
|
@ -4,7 +4,7 @@ class CheckMk extends App.ControllerIntegrationBase
|
||||||
featureConfig: 'check_mk_config'
|
featureConfig: 'check_mk_config'
|
||||||
description: [
|
description: [
|
||||||
[__('This service receives http requests or emails from %s and creates tickets with host and service.'), 'Checkmk']
|
[__('This service receives http requests or emails from %s and creates tickets with host and service.'), 'Checkmk']
|
||||||
[__('If the host and service has recovered, the ticket can be closed automatically.')]
|
[__('If the host and service have recovered, the ticket can be closed automatically.')]
|
||||||
]
|
]
|
||||||
|
|
||||||
render: =>
|
render: =>
|
||||||
|
|
|
@ -261,7 +261,7 @@ App.Config.set(
|
||||||
{
|
{
|
||||||
name: __('CTI (generic)')
|
name: __('CTI (generic)')
|
||||||
target: '#system/integration/cti'
|
target: '#system/integration/cti'
|
||||||
description: __('Generic API to integrate VoIP service provider with realtime push.')
|
description: __('Generic API to integrate VoIP service provider with real-time push.')
|
||||||
controller: Cti
|
controller: Cti
|
||||||
state: State
|
state: State
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ class Icinga extends App.ControllerIntegrationBase
|
||||||
featureConfig: 'icinga_config'
|
featureConfig: 'icinga_config'
|
||||||
description: [
|
description: [
|
||||||
[__('This service receives emails from %s and creates tickets with host and service.'), 'Icinga']
|
[__('This service receives emails from %s and creates tickets with host and service.'), 'Icinga']
|
||||||
[__('If the host and service is recovered again, the ticket will be closed automatically.')]
|
[__('If the host and service have recovered, the ticket can be closed automatically.')]
|
||||||
]
|
]
|
||||||
|
|
||||||
render: =>
|
render: =>
|
||||||
|
|
|
@ -4,7 +4,7 @@ class Monit extends App.ControllerIntegrationBase
|
||||||
featureConfig: 'monit_config'
|
featureConfig: 'monit_config'
|
||||||
description: [
|
description: [
|
||||||
[__('This service receives emails from %s and creates tickets with host and service.'), 'Monit']
|
[__('This service receives emails from %s and creates tickets with host and service.'), 'Monit']
|
||||||
[__('If the host and service is recovered again, the ticket will be closed automatically.')]
|
[__('If the host and service have recovered, the ticket can be closed automatically.')]
|
||||||
]
|
]
|
||||||
|
|
||||||
render: =>
|
render: =>
|
||||||
|
|
|
@ -4,7 +4,7 @@ class Nagios extends App.ControllerIntegrationBase
|
||||||
featureConfig: 'nagios_config'
|
featureConfig: 'nagios_config'
|
||||||
description: [
|
description: [
|
||||||
[__('This service receives emails from %s and creates tickets with host and service.'), 'Nagios']
|
[__('This service receives emails from %s and creates tickets with host and service.'), 'Nagios']
|
||||||
[__('If the host and service is recovered again, the ticket will be closed automatically.')]
|
[__('If the host and service have recovered, the ticket can be closed automatically.')]
|
||||||
]
|
]
|
||||||
|
|
||||||
render: =>
|
render: =>
|
||||||
|
|
|
@ -31,7 +31,7 @@ class Slack extends App.ControllerIntegrationBase
|
||||||
{ name: 'webhook', display: __('Webhook'), tag: 'input', type: 'url', limit: 200, 'null': false, placeholder: 'https://hooks.slack.com/services/...' },
|
{ name: 'webhook', display: __('Webhook'), tag: 'input', type: 'url', limit: 200, 'null': false, placeholder: 'https://hooks.slack.com/services/...' },
|
||||||
{ name: 'username', display: __('Username'), tag: 'input', type: 'text', limit: 100, 'null': false, placeholder: 'username' },
|
{ name: 'username', display: __('Username'), tag: 'input', type: 'text', limit: 100, 'null': false, placeholder: 'username' },
|
||||||
{ name: 'channel', display: __('Channel'), tag: 'input', type: 'text', limit: 100, 'null': true, placeholder: '#channel' },
|
{ name: 'channel', display: __('Channel'), tag: 'input', type: 'text', limit: 100, 'null': true, placeholder: '#channel' },
|
||||||
{ name: 'icon_url', display: __('Icon Url'), tag: 'input', type: 'url', limit: 200, 'null': true, placeholder: 'https://example.com/logo.png' },
|
{ name: 'icon_url', display: __('Icon URL'), tag: 'input', type: 'url', limit: 200, 'null': true, placeholder: 'https://example.com/logo.png' },
|
||||||
]
|
]
|
||||||
|
|
||||||
settings = []
|
settings = []
|
||||||
|
|
|
@ -400,13 +400,13 @@ App.Config.set(
|
||||||
{
|
{
|
||||||
key: '::'
|
key: '::'
|
||||||
hotkeys: false
|
hotkeys: false
|
||||||
description: __('Inserts Text module')
|
description: __('Inserts text module')
|
||||||
globalEvent: 'richtext-insert-text-module'
|
globalEvent: 'richtext-insert-text-module'
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
key: '??'
|
key: '??'
|
||||||
hotkeys: false
|
hotkeys: false
|
||||||
description: __('Inserts Knowledge Base answer')
|
description: __('Inserts knowledge base answer')
|
||||||
globalEvent: 'richtext-insert-kb-answer'
|
globalEvent: 'richtext-insert-kb-answer'
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
|
@ -201,7 +201,7 @@ class App.UiElement.object_manager_attribute extends App.UiElement.ApplicationUi
|
||||||
)
|
)
|
||||||
configureAttributes = [
|
configureAttributes = [
|
||||||
# coffeelint: disable=no_interpolation_in_single_quotes
|
# coffeelint: disable=no_interpolation_in_single_quotes
|
||||||
{ name: 'data_option::linktemplate', display: __('Link-Template'), tag: 'input', type: 'text', null: true, default: '', placeholder: 'https://example.com/?q=#{object.attribute_name} - use ticket, user or organization as object' },
|
{ name: 'data_option::linktemplate', display: __('Link Template'), tag: 'input', type: 'text', null: true, default: '', placeholder: 'https://example.com/?q=#{object.attribute_name} - use ticket, user or organization as object' },
|
||||||
# coffeelint: enable=no_interpolation_in_single_quotes
|
# coffeelint: enable=no_interpolation_in_single_quotes
|
||||||
]
|
]
|
||||||
inputLinkTemplate = new App.ControllerForm(
|
inputLinkTemplate = new App.ControllerForm(
|
||||||
|
@ -339,7 +339,7 @@ class App.UiElement.object_manager_attribute extends App.UiElement.ApplicationUi
|
||||||
)
|
)
|
||||||
configureAttributes = [
|
configureAttributes = [
|
||||||
# coffeelint: disable=no_interpolation_in_single_quotes
|
# coffeelint: disable=no_interpolation_in_single_quotes
|
||||||
{ name: 'data_option::linktemplate', display: __('Link-Template'), tag: 'input', type: 'text', null: true, default: '', placeholder: 'https://example.com/?q=#{ticket.attribute_name}' },
|
{ name: 'data_option::linktemplate', display: __('Link Template'), tag: 'input', type: 'text', null: true, default: '', placeholder: 'https://example.com/?q=#{ticket.attribute_name}' },
|
||||||
# coffeelint: enable=no_interpolation_in_single_quotes
|
# coffeelint: enable=no_interpolation_in_single_quotes
|
||||||
]
|
]
|
||||||
inputLinkTemplate = new App.ControllerForm(
|
inputLinkTemplate = new App.ControllerForm(
|
||||||
|
|
|
@ -25,13 +25,13 @@ class App.KnowledgeBasePublicMenuManager extends App.Controller
|
||||||
|
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
headline: __('Header menu'),
|
headline: __('Header Menu'),
|
||||||
identifier: 'header',
|
identifier: 'header',
|
||||||
color: kb.color_header,
|
color: kb.color_header,
|
||||||
color_link: kb.color_header_link
|
color_link: kb.color_header_link
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
headline: __('Footer menu'),
|
headline: __('Footer Menu'),
|
||||||
identifier: 'footer',
|
identifier: 'footer',
|
||||||
color_link: 'hsl(207,12%,50%)'
|
color_link: 'hsl(207,12%,50%)'
|
||||||
}
|
}
|
||||||
|
|
|
@ -250,7 +250,7 @@ class App.Chat extends App.Model
|
||||||
@configure_attributes = [
|
@configure_attributes = [
|
||||||
{ name: 'name', display: __('Name'), tag: 'input', type: 'text', limit: 100, null: false },
|
{ name: 'name', display: __('Name'), tag: 'input', type: 'text', limit: 100, null: false },
|
||||||
{ name: 'note', display: __('Note'), tag: 'textarea', limit: 250, null: true },
|
{ name: 'note', display: __('Note'), tag: 'textarea', limit: 250, null: true },
|
||||||
{ name: 'max_queue', display: __('Max. clients in waitlist'), tag: 'input', default: 2 },
|
{ name: 'max_queue', display: __('Max. clients on waitlist'), tag: 'input', default: 2 },
|
||||||
{ name: 'block_ip', display: __('Blocked IPs (separated by ;)'), tag: 'input', default: '', null: true },
|
{ name: 'block_ip', display: __('Blocked IPs (separated by ;)'), tag: 'input', default: '', null: true },
|
||||||
{ name: 'allowed_websites', display: __('Allow websites (separated by ;)'), tag: 'input', default: '', null: true },
|
{ name: 'allowed_websites', display: __('Allow websites (separated by ;)'), tag: 'input', default: '', null: true },
|
||||||
{ name: 'block_country', display: __('Blocked countries'), tag: 'column_select', multiple: true, null: true, default: '', options: @countries, seperator: ';' },
|
{ name: 'block_country', display: __('Blocked countries'), tag: 'column_select', multiple: true, null: true, default: '', options: @countries, seperator: ';' },
|
||||||
|
|
|
@ -154,7 +154,7 @@ $(function() {
|
||||||
</script></code></pre>
|
</script></code></pre>
|
||||||
|
|
||||||
<h3><%- @T('Manually open chat') %></h3>
|
<h3><%- @T('Manually open chat') %></h3>
|
||||||
<p><%- @T('If you want to open the chat by the press of a button set the option §show§ to §false§ and add the class §open-zammad-chat§ to the button.') %></p>
|
<p><%- @T('If you want to open the chat by clicking a button, set the option §show§ to §false§ and add the class §open-zammad-chat§ to the button.') %></p>
|
||||||
<pre><code class="language-html js-code"><button class="open-zammad-chat">Chat with us</button>
|
<pre><code class="language-html js-code"><button class="open-zammad-chat">Chat with us</button>
|
||||||
|
|
||||||
<script src="<%= @baseurl %>/assets/chat/chat.min.js"></script>
|
<script src="<%= @baseurl %>/assets/chat/chat.min.js"></script>
|
||||||
|
|
|
@ -116,7 +116,7 @@
|
||||||
<p><%- @T('Should the emails from this mailbox be imported as an archive or as regular emails?') %></p>
|
<p><%- @T('Should the emails from this mailbox be imported as an archive or as regular emails?') %></p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><%- @T('Import as archive: |No notifications are sent|, the |tickets are closed| and original timestamps are used. You can still find them in Zammad using the search.') %></li>
|
<li><%- @T('Import as archive: |No notifications are sent|, the |tickets are closed|, and original timestamps are used. You can still find them in Zammad using the search.') %></li>
|
||||||
<li><%- @T('Import as regular: |Notifications are sent| and the |tickets are open| - you can find the tickets in the overview of open tickets.') %></li>
|
<li><%- @T('Import as regular: |Notifications are sent| and the |tickets are open| - you can find the tickets in the overview of open tickets.') %></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<th style="white-space: nowrap;"><%- @T('chatId') %></th>
|
<th style="white-space: nowrap;"><%- @T('chatId') %></th>
|
||||||
<th style="white-space: nowrap;"><%- @T('Name') %></th>
|
<th style="white-space: nowrap;"><%- @T('Name') %></th>
|
||||||
<th style="white-space: nowrap;"><%- @T('Note') %></th>
|
<th style="white-space: nowrap;"><%- @T('Note') %></th>
|
||||||
<th style="white-space: nowrap;"><%- @T('Max. clients in waitlist') %></th>
|
<th style="white-space: nowrap;"><%- @T('Max. clients on waitlist') %></th>
|
||||||
<th style="white-space: nowrap;"><%- @T('Delete') %></th>
|
<th style="white-space: nowrap;"><%- @T('Delete') %></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
|
@ -89,7 +89,7 @@
|
||||||
<p><%- @T('Should the emails from this mailbox be imported as an archive or as regular emails?') %></p>
|
<p><%- @T('Should the emails from this mailbox be imported as an archive or as regular emails?') %></p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><%- @T('Import as archive: |No notifications are sent|, the |tickets are closed| and original timestamps are used. You can still find them in Zammad using the search.') %></li>
|
<li><%- @T('Import as archive: |No notifications are sent|, the |tickets are closed|, and original timestamps are used. You can still find them in Zammad using the search.') %></li>
|
||||||
<li><%- @T('Import as regular: |Notifications are sent| and the |tickets are open| - you can find the tickets in the overview of open tickets.') %></li>
|
<li><%- @T('Import as regular: |Notifications are sent| and the |tickets are open| - you can find the tickets in the overview of open tickets.') %></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@
|
||||||
|
|
||||||
<h2><%- @T('Notify Map') %></h2>
|
<h2><%- @T('Notify Map') %></h2>
|
||||||
|
|
||||||
<p><%- @T('Notify certain users by matching caller ID.') %><%- @T('If no mapping is defined, all user get notified about any event.') %>
|
<p><%- @T('Notify certain users by matching caller ID.') %><%- @T('If no mapping is defined, all users will get notified of any event.') %>
|
||||||
|
|
||||||
<div class="settings-entry">
|
<div class="settings-entry">
|
||||||
<table class="settings-list js-notifyMap" style="width: 100%;">
|
<table class="settings-list js-notifyMap" style="width: 100%;">
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<div class="page-header-title">
|
<div class="page-header-title">
|
||||||
<h2><%- @T('Health Check') %></h2>
|
<h2><%- @T('Health Check') %></h2>
|
||||||
</div>
|
</div>
|
||||||
<p><%- @T('Health information can be retrieved as JSON using') %>:</p>
|
<p><%- @T('Health information can be retrieved as JSON using:') %></p>
|
||||||
<input class="js-select js-url" type="text" value="<%- @C('http_type') %>://<%- @C('fqdn') %>/<%- @C('api_path') %>/monitoring/health_check?token=<%= @data.token %>" readonly></p>
|
<input class="js-select js-url" type="text" value="<%- @C('http_type') %>://<%- @C('fqdn') %>/<%- @C('api_path') %>/monitoring/health_check?token=<%= @data.token %>" readonly></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<p><%- @T('For security reasons, the API token is shown only once. You\'ll need to copy it somewhere safe before continuing.') %></p>
|
<p><%- @T('For security reasons, the API token is shown only once. You\'ll need to save it somewhere secure before continuing.') %></p>
|
||||||
|
|
||||||
<form>
|
<form>
|
||||||
<div class="input form-group">
|
<div class="input form-group">
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<p><%- @T('To make translations easier you can enable and disable the inline translation feature by pressing "%s".', 'ctrl+alt+t') %></p>
|
<p><%- @T('To make translations easier you can enable and disable the inline translation feature by pressing "%s".', 'ctrl+alt+t') %></p>
|
||||||
<p><%- @T('Text with disabled inline translations looks like') %> <button class="btn btn-primary"><%- @Ti('Some Text') %></button></p>
|
<p><%- @T('Text with disabled inline translations looks like') %> <button class="btn btn-primary"><%- @Ti('Some Text') %></button></p>
|
||||||
<p><%- @T('Text with enabled inline translations looks like') %> <button class="btn btn-primary"><span class="translation" contenteditable="true"><%- @Ti('Some Text') %></button></span></p>
|
<p><%- @T('Text with enabled inline translations looks like') %> <button class="btn btn-primary"><span class="translation" contenteditable="true"><%- @Ti('Some Text') %></button></span></p>
|
||||||
<p><%- @T('Just click into the marker and update the words just in place. Enjoy!') %></p>
|
<p><%- @T('Just click into the highlighted area and update the words right there. Enjoy!') %></p>
|
||||||
<p><%- @T('If you want to translate it via the translation table, just go ahead below.') %></p>
|
<p><%- @T('If you want to translate it via the translation table, just go ahead below.') %></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ class LongPollingController < ApplicationController
|
||||||
|
|
||||||
# check client id
|
# check client id
|
||||||
client_id = client_id_verify
|
client_id = client_id_verify
|
||||||
raise Exceptions::UnprocessableEntity, __('Invalid client_id receive!') if !client_id
|
raise Exceptions::UnprocessableEntity, __('Invalid client_id received!') if !client_id
|
||||||
|
|
||||||
# check queue to send
|
# check queue to send
|
||||||
begin
|
begin
|
||||||
|
|
|
@ -183,7 +183,7 @@ class TicketsController < ApplicationController
|
||||||
raise Exceptions::UnprocessableEntity, __('Invalid link structure (Object)') if !link_types_with_object_ids.is_a? Hash
|
raise Exceptions::UnprocessableEntity, __('Invalid link structure (Object)') if !link_types_with_object_ids.is_a? Hash
|
||||||
|
|
||||||
link_types_with_object_ids.each do |link_type, object_ids|
|
link_types_with_object_ids.each do |link_type, object_ids|
|
||||||
raise Exceptions::UnprocessableEntity, __('Invalid link structure (Object->LinkType)') if !object_ids.is_a? Array
|
raise Exceptions::UnprocessableEntity, __('Invalid link structure (Object → LinkType)') if !object_ids.is_a? Array
|
||||||
|
|
||||||
object_ids.each do |local_object_id|
|
object_ids.each do |local_object_id|
|
||||||
link = Link.add(
|
link = Link.add(
|
||||||
|
|
|
@ -771,12 +771,12 @@ curl http://localhost/api/v1/users/avatar -v -u #{login}:#{password} -H "Content
|
||||||
begin
|
begin
|
||||||
file_full = StaticAssets.data_url_attributes(params[:avatar_full])
|
file_full = StaticAssets.data_url_attributes(params[:avatar_full])
|
||||||
rescue
|
rescue
|
||||||
render json: { error: __('Full size image is invalid') }, status: :unprocessable_entity
|
render json: { error: __('Full-size image is invalid') }, status: :unprocessable_entity
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if ActiveStorage::Variant::WEB_IMAGE_CONTENT_TYPES.exclude?(file_full[:mime_type])
|
if ActiveStorage::Variant::WEB_IMAGE_CONTENT_TYPES.exclude?(file_full[:mime_type])
|
||||||
render json: { error: __('Mime type is invalid') }, status: :unprocessable_entity
|
render json: { error: __('MIME type is invalid') }, status: :unprocessable_entity
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
<% reason.gsub!('%s', reason_item) %>
|
<% reason.gsub!('%s', reason_item) %>
|
||||||
<%= reason %> |
|
<%= reason %> |
|
||||||
<% end %>
|
<% end %>
|
||||||
<a href="<%= c 'http_type' %>://<%= c 'fqdn' %>/#profile/notifications"><%= t 'Manage your notifications settings' %></a>
|
<a href="<%= c 'http_type' %>://<%= c 'fqdn' %>/#profile/notifications"><%= t 'Manage your notification settings' %></a>
|
||||||
<% if c('organization').present? %>| <%= c 'organization' %><% end %>
|
<% if c('organization').present? %>| <%= c 'organization' %><% end %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -4023,12 +4023,12 @@ msgstr ""
|
||||||
msgid "Font size"
|
msgid "Font size"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/models/knowledge_base.coffee
|
#: app/assets/javascripts/app/controllers/knowledge_base/public_menu_manager.coffee
|
||||||
msgid "Footer Note"
|
msgid "Footer Menu"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/knowledge_base/public_menu_manager.coffee
|
#: app/assets/javascripts/app/models/knowledge_base.coffee
|
||||||
msgid "Footer menu"
|
msgid "Footer Note"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/views/dashboard.jst.eco
|
#: app/assets/javascripts/app/views/dashboard.jst.eco
|
||||||
|
@ -4036,7 +4036,7 @@ msgid "For example, recently changed tickets, users, or organizations."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/views/profile/token_access_created.jst.eco
|
#: app/assets/javascripts/app/views/profile/token_access_created.jst.eco
|
||||||
msgid "For security reasons, the API token is shown only once. You'll need to copy it somewhere safe before continuing."
|
msgid "For security reasons, the API token is shown only once. You'll need to save it somewhere secure before continuing."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/views/login.jst.eco
|
#: app/assets/javascripts/app/views/login.jst.eco
|
||||||
|
@ -4130,7 +4130,7 @@ msgid "Full Name"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/controllers/users_controller.rb
|
#: app/controllers/users_controller.rb
|
||||||
msgid "Full size image is invalid"
|
msgid "Full-size image is invalid"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: db/seeds/settings.rb
|
#: db/seeds/settings.rb
|
||||||
|
@ -4171,7 +4171,7 @@ msgid "Generate user based stats."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/_integration/cti.coffee
|
#: app/assets/javascripts/app/controllers/_integration/cti.coffee
|
||||||
msgid "Generic API to integrate VoIP service provider with realtime push."
|
msgid "Generic API to integrate VoIP service provider with real-time push."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: db/seeds/settings.rb
|
#: db/seeds/settings.rb
|
||||||
|
@ -4456,7 +4456,7 @@ msgid "Header Link Color"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/knowledge_base/public_menu_manager.coffee
|
#: app/assets/javascripts/app/controllers/knowledge_base/public_menu_manager.coffee
|
||||||
msgid "Header menu"
|
msgid "Header Menu"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/views/monitoring.jst.eco
|
#: app/assets/javascripts/app/views/monitoring.jst.eco
|
||||||
|
@ -4464,7 +4464,7 @@ msgid "Health Check"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/views/monitoring.jst.eco
|
#: app/assets/javascripts/app/views/monitoring.jst.eco
|
||||||
msgid "Health information can be retrieved as JSON using"
|
msgid "Health information can be retrieved as JSON using:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/views/channel/chat.jst.eco
|
#: app/assets/javascripts/app/views/channel/chat.jst.eco
|
||||||
|
@ -4484,7 +4484,7 @@ msgid "Here you can add further links to your public FAQ page, which will be dis
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/_dashboard/first_steps_clues.coffee
|
#: app/assets/javascripts/app/controllers/_dashboard/first_steps_clues.coffee
|
||||||
msgid "Here you can create new tickets. Also if you have the permissions you can create new customers and organizations."
|
msgid "Here you can create new tickets. Also, if you have the permission, you can create new customers and organizations."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/customer_ticket_create.coffee
|
#: app/assets/javascripts/app/controllers/customer_ticket_create.coffee
|
||||||
|
@ -4492,11 +4492,11 @@ msgid "Here you can create one."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/_dashboard/first_steps_clues.coffee
|
#: app/assets/javascripts/app/controllers/_dashboard/first_steps_clues.coffee
|
||||||
msgid "Here you can search for tickets, customers and organizations. Use the wildcard §*§ to find everything. E. g. §smi*§ or §rosent*l§. You also can use ||double quotes|| for searching phrases §\"some phrase\"§."
|
msgid "Here you can search for tickets, customers, and organizations. Use the asterisk §*§ to find anything, e.g. §smi*§ or §rosent*l§. You also can use ||quotation marks|| for searching phrases: §\"some phrase\"§."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/_dashboard/first_steps_clues.coffee
|
#: app/assets/javascripts/app/controllers/_dashboard/first_steps_clues.coffee
|
||||||
msgid "Here you can sign out, change the frontend language and see your last viewed items."
|
msgid "Here you can sign out, change the frontend language, and see your last viewed items."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/views/object_manager/attribute.jst.eco
|
#: app/assets/javascripts/app/views/object_manager/attribute.jst.eco
|
||||||
|
@ -4504,7 +4504,7 @@ msgid "Here you define which authorization has access to the attribute."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/_dashboard/first_steps_clues.coffee
|
#: app/assets/javascripts/app/controllers/_dashboard/first_steps_clues.coffee
|
||||||
msgid "Here you find your ticket overviews for open, assigned and escalated tickets."
|
msgid "Here you find your ticket overviews for open, assigned, and escalated tickets."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/_dashboard/first_steps_clues.coffee
|
#: app/assets/javascripts/app/controllers/_dashboard/first_steps_clues.coffee
|
||||||
|
@ -4588,7 +4588,7 @@ msgid "How can we help you? Search for an answer or a topic..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/_dashboard/stats/ticket_waiting_time.coffee
|
#: app/assets/javascripts/app/controllers/_dashboard/stats/ticket_waiting_time.coffee
|
||||||
msgid "How long has each customer had to wait, on average, to get a response from you today?"
|
msgid "How long did each customer have to wait, on average, to get a response from you today?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/_dashboard/stats/ticket_escalation.coffee
|
#: app/assets/javascripts/app/controllers/_dashboard/stats/ticket_escalation.coffee
|
||||||
|
@ -4649,11 +4649,11 @@ msgid "Icon Set"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/_integration/slack.coffee
|
#: app/assets/javascripts/app/controllers/_integration/slack.coffee
|
||||||
msgid "Icon Url"
|
msgid "Icon URL"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/_channel/chat.coffee
|
#: app/assets/javascripts/app/controllers/_channel/chat.coffee
|
||||||
msgid "Identifier of the chat-topic."
|
msgid "Identifier of the chat topic."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: db/seeds/settings.rb
|
#: db/seeds/settings.rb
|
||||||
|
@ -4665,17 +4665,14 @@ msgid "If left empty, the host gets auto-detected - in this case %s. The auto-de
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/views/integration/cti.jst.eco
|
#: app/assets/javascripts/app/views/integration/cti.jst.eco
|
||||||
msgid "If no mapping is defined, all user get notified about any event."
|
msgid "If no mapping is defined, all users will get notified of any event."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/_integration/check_mk.coffee
|
#: app/assets/javascripts/app/controllers/_integration/check_mk.coffee
|
||||||
msgid "If the host and service has recovered, the ticket can be closed automatically."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/_integration/icinga.coffee
|
#: app/assets/javascripts/app/controllers/_integration/icinga.coffee
|
||||||
#: app/assets/javascripts/app/controllers/_integration/monit.coffee
|
#: app/assets/javascripts/app/controllers/_integration/monit.coffee
|
||||||
#: app/assets/javascripts/app/controllers/_integration/nagios.coffee
|
#: app/assets/javascripts/app/controllers/_integration/nagios.coffee
|
||||||
msgid "If the host and service is recovered again, the ticket will be closed automatically."
|
msgid "If the host and service have recovered, the ticket can be closed automatically."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: db/seeds/settings.rb
|
#: db/seeds/settings.rb
|
||||||
|
@ -4700,7 +4697,7 @@ msgid "If you want to move already stored attachments from one backend to anothe
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/views/channel/chat.jst.eco
|
#: app/assets/javascripts/app/views/channel/chat.jst.eco
|
||||||
msgid "If you want to open the chat by the press of a button set the option §show§ to §false§ and add the class §open-zammad-chat§ to the button."
|
msgid "If you want to open the chat by clicking a button, set the option §show§ to §false§ and add the class §open-zammad-chat§ to the button."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/views/translation/index.jst.eco
|
#: app/assets/javascripts/app/views/translation/index.jst.eco
|
||||||
|
@ -4806,7 +4803,7 @@ msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/views/channel/email_account_wizard.jst.eco
|
#: app/assets/javascripts/app/views/channel/email_account_wizard.jst.eco
|
||||||
#: app/assets/javascripts/app/views/getting_started/email.jst.eco
|
#: app/assets/javascripts/app/views/getting_started/email.jst.eco
|
||||||
msgid "Import as archive: |No notifications are sent|, the |tickets are closed| and original timestamps are used. You can still find them in Zammad using the search."
|
msgid "Import as archive: |No notifications are sent|, the |tickets are closed|, and original timestamps are used. You can still find them in Zammad using the search."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/views/channel/email_account_wizard.jst.eco
|
#: app/assets/javascripts/app/views/channel/email_account_wizard.jst.eco
|
||||||
|
@ -4937,14 +4934,6 @@ msgstr ""
|
||||||
msgid "Insert the widget code into the source code of every page the chat shall be visible on. It should be placed at the end of the page's source code before the §</body>§ closing tag."
|
msgid "Insert the widget code into the source code of every page the chat shall be visible on. It should be placed at the end of the page's source code before the §</body>§ closing tag."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/_plugin/keyboard_shortcuts.coffee
|
|
||||||
msgid "Inserts Knowledge Base answer"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/_plugin/keyboard_shortcuts.coffee
|
|
||||||
msgid "Inserts Text module"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/_plugin/keyboard_shortcuts.coffee
|
#: app/assets/javascripts/app/controllers/_plugin/keyboard_shortcuts.coffee
|
||||||
msgid "Inserts a horizontal rule"
|
msgid "Inserts a horizontal rule"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -4953,6 +4942,14 @@ msgstr ""
|
||||||
msgid "Inserts a mention for a user"
|
msgid "Inserts a mention for a user"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: app/assets/javascripts/app/controllers/_plugin/keyboard_shortcuts.coffee
|
||||||
|
msgid "Inserts knowledge base answer"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: app/assets/javascripts/app/controllers/_plugin/keyboard_shortcuts.coffee
|
||||||
|
msgid "Inserts text module"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/views/package.jst.eco
|
#: app/assets/javascripts/app/views/package.jst.eco
|
||||||
msgid "Install Package"
|
msgid "Install Package"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -5024,7 +5021,7 @@ msgid "Invalid client_id in receive loop!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/controllers/long_polling_controller.rb
|
#: app/controllers/long_polling_controller.rb
|
||||||
msgid "Invalid client_id receive!"
|
msgid "Invalid client_id received!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/controllers/import_freshdesk_controller.rb
|
#: app/controllers/import_freshdesk_controller.rb
|
||||||
|
@ -5056,11 +5053,11 @@ msgid "Invalid link structure"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/controllers/tickets_controller.rb
|
#: app/controllers/tickets_controller.rb
|
||||||
msgid "Invalid link structure (Object)"
|
msgid "Invalid link structure (Object → LinkType)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/controllers/tickets_controller.rb
|
#: app/controllers/tickets_controller.rb
|
||||||
msgid "Invalid link structure (Object->LinkType)"
|
msgid "Invalid link structure (Object)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/controllers/mentions_controller.rb
|
#: app/controllers/mentions_controller.rb
|
||||||
|
@ -5192,7 +5189,7 @@ msgid "June"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/views/translation/index.jst.eco
|
#: app/assets/javascripts/app/views/translation/index.jst.eco
|
||||||
msgid "Just click into the marker and update the words just in place. Enjoy!"
|
msgid "Just click into the highlighted area and update the words right there. Enjoy!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/_profile/notification.coffee
|
#: app/assets/javascripts/app/controllers/_profile/notification.coffee
|
||||||
|
@ -5422,6 +5419,10 @@ msgstr ""
|
||||||
msgid "Link Related Answer"
|
msgid "Link Related Answer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: app/assets/javascripts/app/controllers/_ui_element/object_manager_attribute.coffee
|
||||||
|
msgid "Link Template"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/ticket_zoom/sidebar_git_issue.coffee
|
#: app/assets/javascripts/app/controllers/ticket_zoom/sidebar_git_issue.coffee
|
||||||
msgid "Link issue"
|
msgid "Link issue"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -5430,10 +5431,6 @@ msgstr ""
|
||||||
msgid "Link type is needed!"
|
msgid "Link type is needed!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/_ui_element/object_manager_attribute.coffee
|
|
||||||
msgid "Link-Template"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/_profile/linked_accounts.coffee
|
#: app/assets/javascripts/app/controllers/_profile/linked_accounts.coffee
|
||||||
#: app/assets/javascripts/app/views/popover/user.jst.eco
|
#: app/assets/javascripts/app/views/popover/user.jst.eco
|
||||||
#: app/assets/javascripts/app/views/widget/user.jst.eco
|
#: app/assets/javascripts/app/views/widget/user.jst.eco
|
||||||
|
@ -5529,6 +5526,10 @@ msgstr ""
|
||||||
msgid "Lost network connection!"
|
msgid "Lost network connection!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: app/controllers/users_controller.rb
|
||||||
|
msgid "MIME type is invalid"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/controllers/macro.coffee
|
#: app/assets/javascripts/app/controllers/macro.coffee
|
||||||
msgid "Macro"
|
msgid "Macro"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -5581,7 +5582,7 @@ msgid "Manage applications that can use Zammad as an OAuth provider and applicat
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/views/mailer/application.html.erb
|
#: app/views/mailer/application.html.erb
|
||||||
msgid "Manage your notifications settings"
|
msgid "Manage your notification settings"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/views/api.jst.eco
|
#: app/assets/javascripts/app/views/api.jst.eco
|
||||||
|
@ -5642,7 +5643,7 @@ msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/models/chat.coffee
|
#: app/assets/javascripts/app/models/chat.coffee
|
||||||
#: app/assets/javascripts/app/views/channel/topics.jst.eco
|
#: app/assets/javascripts/app/views/channel/topics.jst.eco
|
||||||
msgid "Max. clients in waitlist"
|
msgid "Max. clients on waitlist"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/assets/javascripts/app/views/customer_chat/setting.jst.eco
|
#: app/assets/javascripts/app/views/customer_chat/setting.jst.eco
|
||||||
|
@ -5766,10 +5767,6 @@ msgstr ""
|
||||||
msgid "Milestone"
|
msgid "Milestone"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/controllers/users_controller.rb
|
|
||||||
msgid "Mime type is invalid"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: app/models/postmaster_filter.rb
|
#: app/models/postmaster_filter.rb
|
||||||
msgid "Min. one match rule needed!"
|
msgid "Min. one match rule needed!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
|
@ -196,8 +196,8 @@ QUnit.test('i18n', assert => {
|
||||||
translated = App.i18n.translateContent('§%s§ %s test', 123, 'xxx')
|
translated = App.i18n.translateContent('§%s§ %s test', 123, 'xxx')
|
||||||
assert.equal(translated, '<kbd>123</kbd> xxx test', 'en-us - §%s§ %s')
|
assert.equal(translated, '<kbd>123</kbd> xxx test', 'en-us - §%s§ %s')
|
||||||
|
|
||||||
translated = App.i18n.translateContent('Here you can search for tickets, customers and organizations. Use the wildcard §*§ to find everything. E. g. §smi*§ or §rosent*l§. You also can use ||double quotes|| for searching phrases §"some phrase"§.')
|
translated = App.i18n.translateContent('Here you can search for tickets, customers, and organizations. Use the asterisk §*§ to find anything, e.g. §smi*§ or §rosent*l§. You also can use ||quotation marks|| for searching phrases: §"some phrase"§.')
|
||||||
assert.equal(translated, 'Here you can search for tickets, customers and organizations. Use the wildcard <kbd>*</kbd> to find everything. E. g. <kbd>smi*</kbd> or <kbd>rosent*l</kbd>. You also can use <i>double quotes</i> for searching phrases <kbd>"some phrase"</kbd>.', 'en-us - §§ §§ §§ || §§')
|
assert.equal(translated, 'Here you can search for tickets, customers, and organizations. Use the asterisk <kbd>*</kbd> to find anything, e.g. <kbd>smi*</kbd> or <kbd>rosent*l</kbd>. You also can use <i>quotation marks</i> for searching phrases: <kbd>"some phrase"</kbd>.', 'en-us - §§ §§ §§ || §§')
|
||||||
|
|
||||||
translated = App.i18n.translateContent('//%s// %s test', 123, 'xxx')
|
translated = App.i18n.translateContent('//%s// %s test', 123, 'xxx')
|
||||||
assert.equal(translated, '<del>123</del> xxx test', 'en-us - //%s// %s')
|
assert.equal(translated, '<del>123</del> xxx test', 'en-us - //%s// %s')
|
||||||
|
|
|
@ -21,7 +21,7 @@ RSpec.describe 'LongPolling', type: :request do
|
||||||
get '/api/v1/message_receive', params: { data: {} }, as: :json
|
get '/api/v1/message_receive', params: { data: {} }, as: :json
|
||||||
expect(response).to have_http_status(:unprocessable_entity)
|
expect(response).to have_http_status(:unprocessable_entity)
|
||||||
expect(json_response).to be_a_kind_of(Hash)
|
expect(json_response).to be_a_kind_of(Hash)
|
||||||
expect(json_response['error']).to eq('Invalid client_id receive!')
|
expect(json_response['error']).to eq('Invalid client_id received!')
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'send without client_id - no user login' do
|
it 'send without client_id - no user login' do
|
||||||
|
@ -39,7 +39,7 @@ RSpec.describe 'LongPolling', type: :request do
|
||||||
get '/api/v1/message_receive', params: { client_id: client_id, data: {} }, as: :json
|
get '/api/v1/message_receive', params: { client_id: client_id, data: {} }, as: :json
|
||||||
expect(response).to have_http_status(:unprocessable_entity)
|
expect(response).to have_http_status(:unprocessable_entity)
|
||||||
expect(json_response).to be_a_kind_of(Hash)
|
expect(json_response).to be_a_kind_of(Hash)
|
||||||
expect(json_response['error']).to eq('Invalid client_id receive!')
|
expect(json_response['error']).to eq('Invalid client_id received!')
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'receive without client_id' do
|
it 'receive without client_id' do
|
||||||
|
@ -47,7 +47,7 @@ RSpec.describe 'LongPolling', type: :request do
|
||||||
get '/api/v1/message_receive', params: { data: {} }, as: :json
|
get '/api/v1/message_receive', params: { data: {} }, as: :json
|
||||||
expect(response).to have_http_status(:unprocessable_entity)
|
expect(response).to have_http_status(:unprocessable_entity)
|
||||||
expect(json_response).to be_a_kind_of(Hash)
|
expect(json_response).to be_a_kind_of(Hash)
|
||||||
expect(json_response['error']).to eq('Invalid client_id receive!')
|
expect(json_response['error']).to eq('Invalid client_id received!')
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'receive without wrong client_id' do
|
it 'receive without wrong client_id' do
|
||||||
|
@ -55,7 +55,7 @@ RSpec.describe 'LongPolling', type: :request do
|
||||||
get '/api/v1/message_receive', params: { client_id: 'not existing', data: {} }, as: :json
|
get '/api/v1/message_receive', params: { client_id: 'not existing', data: {} }, as: :json
|
||||||
expect(response).to have_http_status(:unprocessable_entity)
|
expect(response).to have_http_status(:unprocessable_entity)
|
||||||
expect(json_response).to be_a_kind_of(Hash)
|
expect(json_response).to be_a_kind_of(Hash)
|
||||||
expect(json_response['error']).to eq('Invalid client_id receive!')
|
expect(json_response['error']).to eq('Invalid client_id received!')
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'send without client_id' do
|
it 'send without client_id' do
|
||||||
|
|
|
@ -1523,7 +1523,7 @@ RSpec.describe 'User', type: :request do
|
||||||
|
|
||||||
it 'returns verbose error for a not allowed mime-type' do
|
it 'returns verbose error for a not allowed mime-type' do
|
||||||
make_request(avatar_full: base64)
|
make_request(avatar_full: base64)
|
||||||
expect(json_response).to include('error' => 'Mime type is invalid')
|
expect(json_response).to include('error' => 'MIME type is invalid')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -13,10 +13,10 @@ RSpec.describe 'Admin Panel > Knowledge Base > Public Menu', type: :system do
|
||||||
find('a', text: 'Public Menu').click
|
find('a', text: 'Public Menu').click
|
||||||
end
|
end
|
||||||
|
|
||||||
it { expect(find_locale('Footer menu', alternative_locale).text).to include menu_item_4.title }
|
it { expect(find_locale('Footer Menu', alternative_locale).text).to include menu_item_4.title }
|
||||||
it { expect(find_locale('Header menu', primary_locale).text).to include menu_item_1.title }
|
it { expect(find_locale('Header Menu', primary_locale).text).to include menu_item_1.title }
|
||||||
it { expect(find_locale('Header menu', alternative_locale).text).not_to include menu_item_2.title }
|
it { expect(find_locale('Header Menu', alternative_locale).text).not_to include menu_item_2.title }
|
||||||
it { expect(find_locale('Header menu', primary_locale).text).to include menu_item_2.title }
|
it { expect(find_locale('Header Menu', primary_locale).text).to include menu_item_2.title }
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'menu items color' do
|
context 'menu items color' do
|
||||||
|
@ -45,7 +45,7 @@ RSpec.describe 'Admin Panel > Knowledge Base > Public Menu', type: :system do
|
||||||
before do
|
before do
|
||||||
visit '/#manage/knowledge_base'
|
visit '/#manage/knowledge_base'
|
||||||
find('a', text: 'Public Menu').click
|
find('a', text: 'Public Menu').click
|
||||||
find_location('Header menu').find('a', text: 'Edit').click
|
find_location('Header Menu').find('a', text: 'Edit').click
|
||||||
|
|
||||||
modal_ready
|
modal_ready
|
||||||
end
|
end
|
||||||
|
@ -56,7 +56,7 @@ RSpec.describe 'Admin Panel > Knowledge Base > Public Menu', type: :system do
|
||||||
|
|
||||||
modal_disappear
|
modal_disappear
|
||||||
|
|
||||||
expect(find_locale('Header menu', primary_locale).text).to include 'test menu'
|
expect(find_locale('Header Menu', primary_locale).text).to include 'test menu'
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'adds menu item' do
|
it 'adds menu item' do
|
||||||
|
@ -70,7 +70,7 @@ RSpec.describe 'Admin Panel > Knowledge Base > Public Menu', type: :system do
|
||||||
|
|
||||||
modal_disappear
|
modal_disappear
|
||||||
|
|
||||||
expect(find_locale('Header menu', alternative_locale).text).to include 'new item'
|
expect(find_locale('Header Menu', alternative_locale).text).to include 'new item'
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'deletes menu item' do
|
it 'deletes menu item' do
|
||||||
|
@ -84,7 +84,7 @@ RSpec.describe 'Admin Panel > Knowledge Base > Public Menu', type: :system do
|
||||||
|
|
||||||
modal_disappear
|
modal_disappear
|
||||||
|
|
||||||
expect(find_locale('Header menu', alternative_locale).text).not_to include menu_item_1.title
|
expect(find_locale('Header Menu', alternative_locale).text).not_to include menu_item_1.title
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -121,7 +121,7 @@ class NotificationFactoryMailerTemplateTest < ActiveSupport::TestCase
|
||||||
assert_match('Notification<b>xxx</b>', result[:body])
|
assert_match('Notification<b>xxx</b>', result[:body])
|
||||||
assert_match('has been created by', result[:body])
|
assert_match('has been created by', result[:body])
|
||||||
assert_match('<b>test123</b>', result[:body])
|
assert_match('<b>test123</b>', result[:body])
|
||||||
assert_match('Manage your notifications settings', result[:body])
|
assert_match('Manage your notification settings', result[:body])
|
||||||
assert_no_match('Dein', result[:body])
|
assert_no_match('Dein', result[:body])
|
||||||
assert_no_match('longname', result[:body])
|
assert_no_match('longname', result[:body])
|
||||||
assert_match('Current User', result[:body])
|
assert_match('Current User', result[:body])
|
||||||
|
@ -141,7 +141,7 @@ class NotificationFactoryMailerTemplateTest < ActiveSupport::TestCase
|
||||||
assert_match('Notification<b>xxx</b>', result[:body])
|
assert_match('Notification<b>xxx</b>', result[:body])
|
||||||
assert_match('es wurde ein neues Ticket', result[:body])
|
assert_match('es wurde ein neues Ticket', result[:body])
|
||||||
assert_match('<b>test123</b>', result[:body])
|
assert_match('<b>test123</b>', result[:body])
|
||||||
assert_match('Benachrichtigungseinstellungen Verwalten', result[:body])
|
assert_match(Translation.translate('de-de', 'Manage your notification settings'), result[:body])
|
||||||
assert_no_match('Your', result[:body])
|
assert_no_match('Your', result[:body])
|
||||||
assert_no_match('longname', result[:body])
|
assert_no_match('longname', result[:body])
|
||||||
assert_match('Current User', result[:body])
|
assert_match('Current User', result[:body])
|
||||||
|
@ -177,7 +177,7 @@ class NotificationFactoryMailerTemplateTest < ActiveSupport::TestCase
|
||||||
assert_match('Notification<b>xxx</b>', result[:body])
|
assert_match('Notification<b>xxx</b>', result[:body])
|
||||||
assert_match('has been updated by', result[:body])
|
assert_match('has been updated by', result[:body])
|
||||||
assert_match('<b>test123</b>', result[:body])
|
assert_match('<b>test123</b>', result[:body])
|
||||||
assert_match('Manage your notifications settings', result[:body])
|
assert_match('Manage your notification settings', result[:body])
|
||||||
assert_no_match('Dein', result[:body])
|
assert_no_match('Dein', result[:body])
|
||||||
assert_no_match('longname', result[:body])
|
assert_no_match('longname', result[:body])
|
||||||
assert_match('Current User', result[:body])
|
assert_match('Current User', result[:body])
|
||||||
|
@ -197,7 +197,7 @@ class NotificationFactoryMailerTemplateTest < ActiveSupport::TestCase
|
||||||
assert_match('Notification<b>xxx</b>', result[:body])
|
assert_match('Notification<b>xxx</b>', result[:body])
|
||||||
assert_match('wurde von', result[:body])
|
assert_match('wurde von', result[:body])
|
||||||
assert_match('<b>test123</b>', result[:body])
|
assert_match('<b>test123</b>', result[:body])
|
||||||
assert_match('Benachrichtigungseinstellungen Verwalten', result[:body])
|
assert_match(Translation.translate('de-de', 'Manage your notification settings'), result[:body])
|
||||||
assert_no_match('Your', result[:body])
|
assert_no_match('Your', result[:body])
|
||||||
assert_no_match('longname', result[:body])
|
assert_no_match('longname', result[:body])
|
||||||
assert_match('Current User', result[:body])
|
assert_match('Current User', result[:body])
|
||||||
|
@ -217,7 +217,7 @@ class NotificationFactoryMailerTemplateTest < ActiveSupport::TestCase
|
||||||
assert_match('Notification<b>xxx</b>', result[:body])
|
assert_match('Notification<b>xxx</b>', result[:body])
|
||||||
assert_match('wurde von', result[:body])
|
assert_match('wurde von', result[:body])
|
||||||
assert_match('<b>test123</b>', result[:body])
|
assert_match('<b>test123</b>', result[:body])
|
||||||
assert_match('Benachrichtigungseinstellungen Verwalten', result[:body])
|
assert_match(Translation.translate('de-de', 'Manage your notification settings'), result[:body])
|
||||||
assert_no_match('Your', result[:body])
|
assert_no_match('Your', result[:body])
|
||||||
assert_no_match('longname', result[:body])
|
assert_no_match('longname', result[:body])
|
||||||
assert_match('Current User', result[:body])
|
assert_match('Current User', result[:body])
|
||||||
|
@ -237,7 +237,7 @@ class NotificationFactoryMailerTemplateTest < ActiveSupport::TestCase
|
||||||
assert_match('Notification<b>xxx</b>', result[:body])
|
assert_match('Notification<b>xxx</b>', result[:body])
|
||||||
assert_match('has been updated by', result[:body])
|
assert_match('has been updated by', result[:body])
|
||||||
assert_match('<b>test123</b>', result[:body])
|
assert_match('<b>test123</b>', result[:body])
|
||||||
assert_match('Manage your notifications settings', result[:body])
|
assert_match('Manage your notification settings', result[:body])
|
||||||
assert_no_match('Dein', result[:body])
|
assert_no_match('Dein', result[:body])
|
||||||
assert_no_match('longname', result[:body])
|
assert_no_match('longname', result[:body])
|
||||||
assert_match('Current User', result[:body])
|
assert_match('Current User', result[:body])
|
||||||
|
@ -257,7 +257,7 @@ class NotificationFactoryMailerTemplateTest < ActiveSupport::TestCase
|
||||||
assert_match('Notification<b>xxx</b>', result[:body])
|
assert_match('Notification<b>xxx</b>', result[:body])
|
||||||
assert_match('foi atualizado por', result[:body])
|
assert_match('foi atualizado por', result[:body])
|
||||||
assert_match('<b>test123</b>', result[:body])
|
assert_match('<b>test123</b>', result[:body])
|
||||||
assert_match('Manage your notifications settings', result[:body])
|
assert_match('Manage your notification settings', result[:body])
|
||||||
assert_no_match('Dein', result[:body])
|
assert_no_match('Dein', result[:body])
|
||||||
assert_no_match('longname', result[:body])
|
assert_no_match('longname', result[:body])
|
||||||
assert_match('Current User', result[:body])
|
assert_match('Current User', result[:body])
|
||||||
|
|
Loading…
Reference in a new issue