Fix typos (#622)

* Fix typo (`Colleges` → `Colleagues`)

* Fix typo (`Modues` → `Modules`)

* Fix typo (`Additionals` → `Additional`)

* Fix typo (`ckeck` → `check`)

* Fix typo (`seperator` → `separator`)

* Fix typo (`subjects` → `subject`)

* Fix typo (`need to` → `needs to`)
This commit is contained in:
Elias Probst 2017-01-16 15:12:06 +01:00 committed by André Bauer
parent 179d4867af
commit 9d0bfa1fae
5 changed files with 18 additions and 18 deletions

View file

@ -320,9 +320,9 @@ class App.Utils
str = str.replace(/(.+?)(<|>|&).+?$/, "$1").trim() str = str.replace(/(.+?)(<|>|&).+?$/, "$1").trim()
str str
# search for signature seperator "--\n" # search for signature separator "--\n"
markers = [] markers = []
searchForSeperator = (textToSearchInLines, markers) -> searchForSeparator = (textToSearchInLines, markers) ->
lineCount = 0 lineCount = 0
for line in textToSearchInLines for line in textToSearchInLines
lineCount += 1 lineCount += 1
@ -330,10 +330,10 @@ class App.Utils
marker = marker =
line: line line: line
lineCount: lineCount lineCount: lineCount
type: 'seperator' type: 'separator'
markers.push marker markers.push marker
return return
searchForSeperator(textToSearchInLines, markers) searchForSeparator(textToSearchInLines, markers)
# search for Thunderbird # search for Thunderbird
searchForThunderbird = (textToSearchInLines, markers) -> searchForThunderbird = (textToSearchInLines, markers) ->
@ -517,7 +517,7 @@ class App.Utils
# get first marker # get first marker
markers = _.sortBy(markers, 'lineCount') markers = _.sortBy(markers, 'lineCount')
if markers[0].type is 'seperator' if markers[0].type is 'separator'
regex = new RegExp("\>(\s{0,10}#{quote(App.Utils.htmlEscape(markers[0].line))})\s{0,10}\<") regex = new RegExp("\>(\s{0,10}#{quote(App.Utils.htmlEscape(markers[0].line))})\s{0,10}\<")
message.replace(regex, ">#{markerTemplate}\$1<") message.replace(regex, ">#{markerTemplate}\$1<")
else else

View file

@ -61,7 +61,7 @@ class FirstStepsController < ApplicationController
location: '#channels/email', location: '#channels/email',
}, },
{ {
name: 'Invite Agents/Colleges to help working on Tickets', name: 'Invite Agents/Colleagues to help working on Tickets',
checked: invite_agents, checked: invite_agents,
location: '#', location: '#',
class: 'js-inviteAgent', class: 'js-inviteAgent',
@ -106,7 +106,7 @@ class FirstStepsController < ApplicationController
], ],
}, },
{ {
name: 'Additionals Channels', name: 'Additional Channels',
items: [ items: [
{ {
name: 'Twitter', name: 'Twitter',

View file

@ -47,9 +47,9 @@ class Observer::Ticket::Article::FillupFromEmail < ActiveRecord::Observer
raise "No email address found for group '#{ticket.group.name}'" raise "No email address found for group '#{ticket.group.name}'"
end end
if record.created_by_id != 1 && Setting.get('ticket_define_email_from') == 'AgentNameSystemAddressName' if record.created_by_id != 1 && Setting.get('ticket_define_email_from') == 'AgentNameSystemAddressName'
seperator = Setting.get('ticket_define_email_from_seperator') separator = Setting.get('ticket_define_email_from_separator')
sender = User.find(record.created_by_id) sender = User.find(record.created_by_id)
realname = "#{sender.firstname} #{sender.lastname} #{seperator} #{email_address.realname}" realname = "#{sender.firstname} #{sender.lastname} #{separator} #{email_address.realname}"
record.from = Channel::EmailBuild.recipient_line(realname, email_address.email) record.from = Channel::EmailBuild.recipient_line(realname, email_address.email)
else else
record.from = Channel::EmailBuild.recipient_line(email_address.realname, email_address.email) record.from = Channel::EmailBuild.recipient_line(email_address.realname, email_address.email)

View file

@ -1038,7 +1038,7 @@ Setting.create_if_not_exists(
title: 'Minimal size', title: 'Minimal size',
name: 'password_min_size', name: 'password_min_size',
area: 'Security::Password', area: 'Security::Password',
description: 'Password need to have at least minimal size of characters.', description: 'Password needs to have at least minimal size of characters.',
options: { options: {
form: [ form: [
{ {
@ -1078,7 +1078,7 @@ Setting.create_if_not_exists(
title: '2 lower and 2 upper characters', title: '2 lower and 2 upper characters',
name: 'password_min_2_lower_2_upper_characters', name: 'password_min_2_lower_2_upper_characters',
area: 'Security::Password', area: 'Security::Password',
description: 'Password need to contain 2 lower and 2 upper characters.', description: 'Password needs to contain 2 lower and 2 upper characters.',
options: { options: {
form: [ form: [
{ {
@ -1103,7 +1103,7 @@ Setting.create_if_not_exists(
title: 'Digit required', title: 'Digit required',
name: 'password_need_digit', name: 'password_need_digit',
area: 'Security::Password', area: 'Security::Password',
description: 'Password need to have at least one digit.', description: 'Password needs to have at least one digit.',
options: { options: {
form: [ form: [
{ {
@ -1439,7 +1439,7 @@ Setting.create_if_not_exists(
title: 'Ticket Subject Size', title: 'Ticket Subject Size',
name: 'ticket_subject_size', name: 'ticket_subject_size',
area: 'Email::Base', area: 'Email::Base',
description: 'Max size of the subjects in an email reply.', description: 'Max size of the subject in an email reply.',
options: { options: {
form: [ form: [
{ {
@ -1505,8 +1505,8 @@ Setting.create_if_not_exists(
) )
Setting.create_if_not_exists( Setting.create_if_not_exists(
title: 'Sender Format Seperator', title: 'Sender Format Separator',
name: 'ticket_define_email_from_seperator', name: 'ticket_define_email_from_separator',
area: 'Email::Base', area: 'Email::Base',
description: 'Defines the separator between the agents real name and the given group email address.', description: 'Defines the separator between the agents real name and the given group email address.',
options: { options: {
@ -1514,7 +1514,7 @@ Setting.create_if_not_exists(
{ {
display: '', display: '',
null: false, null: false,
name: 'ticket_define_email_from_seperator', name: 'ticket_define_email_from_separator',
tag: 'input', tag: 'input',
}, },
], ],
@ -1580,7 +1580,7 @@ Setting.create_if_not_exists(
title: 'Additional follow up detection', title: 'Additional follow up detection',
name: 'postmaster_follow_up_search_in', name: 'postmaster_follow_up_search_in',
area: 'Email::Base', area: 'Email::Base',
description: 'In default the follow up check is done via the subject of an email. With this setting you can add more fields where the follow up ckeck is executed.', description: 'In default the follow up check is done via the subject of an email. With this setting you can add more fields where the follow up check is executed.',
options: { options: {
form: [ form: [
{ {

View file

@ -311,7 +311,7 @@ class String
marker = '######SIGNATURE_MARKER######' marker = '######SIGNATURE_MARKER######'
# search for signature seperator "--\n" # search for signature separator "--\n"
string.sub!(/^\s{0,2}--\s{0,2}$/) { |placeholder| string.sub!(/^\s{0,2}--\s{0,2}$/) { |placeholder|
placeholder = "#{marker}#{placeholder}" placeholder = "#{marker}#{placeholder}"
} }