Fixed #29 - added missing translations.
This commit is contained in:
parent
13ddc97841
commit
41f7e1c64b
|
@ -493,9 +493,12 @@ class App.ControllerForm extends App.Controller
|
||||||
return if !attribute.options
|
return if !attribute.options
|
||||||
selection = attribute.options
|
selection = attribute.options
|
||||||
attribute.options = []
|
attribute.options = []
|
||||||
for key of selection
|
for key, value of selection
|
||||||
|
name_new = value
|
||||||
|
if attribute.translate
|
||||||
|
name_new = App.i18n.translateInline( name_new )
|
||||||
attribute.options.push {
|
attribute.options.push {
|
||||||
name: selection[key],
|
name: name_new,
|
||||||
value: key,
|
value: key,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -177,6 +177,7 @@ class Settings extends App.ControllerModal
|
||||||
tag: 'checkbox',
|
tag: 'checkbox',
|
||||||
default: @overview.view.d.overview,
|
default: @overview.view.d.overview,
|
||||||
null: false,
|
null: false,
|
||||||
|
translate: true
|
||||||
options: {
|
options: {
|
||||||
number: 'Number',
|
number: 'Number',
|
||||||
title: 'Title',
|
title: 'Title',
|
||||||
|
@ -185,7 +186,7 @@ class Settings extends App.ControllerModal
|
||||||
ticket_priority: 'Priority',
|
ticket_priority: 'Priority',
|
||||||
group: 'Group',
|
group: 'Group',
|
||||||
owner: 'Owner',
|
owner: 'Owner',
|
||||||
created_at: 'Alter',
|
created_at: 'Age',
|
||||||
last_contact: 'Last Contact',
|
last_contact: 'Last Contact',
|
||||||
last_contact_agent: 'Last Contact Agent',
|
last_contact_agent: 'Last Contact Agent',
|
||||||
last_contact_customer: 'Last Contact Customer',
|
last_contact_customer: 'Last Contact Customer',
|
||||||
|
@ -202,6 +203,7 @@ class Settings extends App.ControllerModal
|
||||||
tag: 'select',
|
tag: 'select',
|
||||||
default: @overview.order.by,
|
default: @overview.order.by,
|
||||||
null: false,
|
null: false,
|
||||||
|
translate: true
|
||||||
options: {
|
options: {
|
||||||
number: 'Number',
|
number: 'Number',
|
||||||
title: 'Title',
|
title: 'Title',
|
||||||
|
@ -210,7 +212,7 @@ class Settings extends App.ControllerModal
|
||||||
ticket_priority: 'Priority',
|
ticket_priority: 'Priority',
|
||||||
group: 'Group',
|
group: 'Group',
|
||||||
owner: 'Owner',
|
owner: 'Owner',
|
||||||
created_at: 'Alter',
|
created_at: 'Age',
|
||||||
last_contact: 'Last Contact',
|
last_contact: 'Last Contact',
|
||||||
last_contact_agent: 'Last Contact Agent',
|
last_contact_agent: 'Last Contact Agent',
|
||||||
last_contact_customer: 'Last Contact Customer',
|
last_contact_customer: 'Last Contact Customer',
|
||||||
|
@ -226,6 +228,7 @@ class Settings extends App.ControllerModal
|
||||||
tag: 'select',
|
tag: 'select',
|
||||||
default: @overview.order.direction,
|
default: @overview.order.direction,
|
||||||
null: false,
|
null: false,
|
||||||
|
translate: true
|
||||||
options: {
|
options: {
|
||||||
ASC: 'up',
|
ASC: 'up',
|
||||||
DESC: 'down',
|
DESC: 'down',
|
||||||
|
|
|
@ -378,6 +378,7 @@ class Settings extends App.ControllerModal
|
||||||
tag: 'checkbox'
|
tag: 'checkbox'
|
||||||
default: @overview.view[@view_mode].overview
|
default: @overview.view[@view_mode].overview
|
||||||
null: false
|
null: false
|
||||||
|
translate: true
|
||||||
options:
|
options:
|
||||||
# true: 'internal'
|
# true: 'internal'
|
||||||
# false: 'public'
|
# false: 'public'
|
||||||
|
@ -388,7 +389,7 @@ class Settings extends App.ControllerModal
|
||||||
ticket_priority: 'Priority'
|
ticket_priority: 'Priority'
|
||||||
group: 'Group'
|
group: 'Group'
|
||||||
owner: 'Owner'
|
owner: 'Owner'
|
||||||
created_at: 'Alter'
|
created_at: 'Age'
|
||||||
last_contact: 'Last Contact'
|
last_contact: 'Last Contact'
|
||||||
last_contact_agent: 'Last Contact Agent'
|
last_contact_agent: 'Last Contact Agent'
|
||||||
last_contact_customer: 'Last Contact Customer'
|
last_contact_customer: 'Last Contact Customer'
|
||||||
|
@ -403,6 +404,7 @@ class Settings extends App.ControllerModal
|
||||||
tag: 'select'
|
tag: 'select'
|
||||||
default: @overview.order.by
|
default: @overview.order.by
|
||||||
null: false
|
null: false
|
||||||
|
translate: true
|
||||||
options:
|
options:
|
||||||
number: 'Number'
|
number: 'Number'
|
||||||
title: 'Title'
|
title: 'Title'
|
||||||
|
@ -411,7 +413,7 @@ class Settings extends App.ControllerModal
|
||||||
ticket_priority: 'Priority'
|
ticket_priority: 'Priority'
|
||||||
group: 'Group'
|
group: 'Group'
|
||||||
owner: 'Owner'
|
owner: 'Owner'
|
||||||
created_at: 'Alter'
|
created_at: 'Age'
|
||||||
last_contact: 'Last Contact'
|
last_contact: 'Last Contact'
|
||||||
last_contact_agent: 'Last Contact Agent'
|
last_contact_agent: 'Last Contact Agent'
|
||||||
last_contact_customer: 'Last Contact Customer'
|
last_contact_customer: 'Last Contact Customer'
|
||||||
|
@ -426,6 +428,7 @@ class Settings extends App.ControllerModal
|
||||||
tag: 'select'
|
tag: 'select'
|
||||||
default: @overview.order.direction
|
default: @overview.order.direction
|
||||||
null: false
|
null: false
|
||||||
|
translate: true
|
||||||
options:
|
options:
|
||||||
ASC: 'up'
|
ASC: 'up'
|
||||||
DESC: 'down'
|
DESC: 'down'
|
||||||
|
@ -438,6 +441,7 @@ class Settings extends App.ControllerModal
|
||||||
default: @overview.group_by
|
default: @overview.group_by
|
||||||
null: true
|
null: true
|
||||||
nulloption: true
|
nulloption: true
|
||||||
|
translate: true
|
||||||
options:
|
options:
|
||||||
customer: 'Customer'
|
customer: 'Customer'
|
||||||
ticket_state: 'State'
|
ticket_state: 'State'
|
||||||
|
|
11
db/seeds.rb
11
db/seeds.rb
|
@ -1861,12 +1861,19 @@ Translation.create_if_not_exists( :locale => 'de', :source => "new", :target =>
|
||||||
Translation.create_if_not_exists( :locale => 'de', :source => "note", :target => "Notiz", :updated_by_id => 1, :created_by_id => 1 )
|
Translation.create_if_not_exists( :locale => 'de', :source => "note", :target => "Notiz", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
Translation.create_if_not_exists( :locale => 'de', :source => "phone", :target => "Telefon", :updated_by_id => 1, :created_by_id => 1 )
|
Translation.create_if_not_exists( :locale => 'de', :source => "phone", :target => "Telefon", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
Translation.create_if_not_exists( :locale => 'de', :source => "web", :target => "Web", :updated_by_id => 1, :created_by_id => 1 )
|
Translation.create_if_not_exists( :locale => 'de', :source => "web", :target => "Web", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
Translation.create_if_not_exists( :locale => 'de', :source => "Change order", :target => "Reihenfolge <20>ndern", :updated_by_id => 1, :created_by_id => 1 )
|
Translation.create_if_not_exists( :locale => 'de', :source => "Change order", :target => "Reihenfolge ändern", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
Translation.create_if_not_exists( :locale => 'de', :source => "Items per page", :target => "Eintr<EFBFBD>ge je Seite", :updated_by_id => 1, :created_by_id => 1 )
|
Translation.create_if_not_exists( :locale => 'de', :source => "Group by", :target => "Gruppieren mit", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
|
Translation.create_if_not_exists( :locale => 'de', :source => "Items per page", :target => "Einträge je Seite", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
Translation.create_if_not_exists( :locale => 'de', :source => "Last Contact", :target => "Letzter Kontakt", :updated_by_id => 1, :created_by_id => 1 )
|
Translation.create_if_not_exists( :locale => 'de', :source => "Last Contact", :target => "Letzter Kontakt", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
Translation.create_if_not_exists( :locale => 'de', :source => "Last Contact Agent", :target => "Letzter Kontakt Agent", :updated_by_id => 1, :created_by_id => 1 )
|
Translation.create_if_not_exists( :locale => 'de', :source => "Last Contact Agent", :target => "Letzter Kontakt Agent", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
Translation.create_if_not_exists( :locale => 'de', :source => "Last Contact Customer", :target => "Letzter Kontakt Kunde", :updated_by_id => 1, :created_by_id => 1 )
|
Translation.create_if_not_exists( :locale => 'de', :source => "Last Contact Customer", :target => "Letzter Kontakt Kunde", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
Translation.create_if_not_exists( :locale => 'de', :source => "Create an inbound Ticket", :target => "Erstelle ein eingehendes Ticket", :updated_by_id => 1, :created_by_id => 1 )
|
Translation.create_if_not_exists( :locale => 'de', :source => "Create an inbound Ticket", :target => "Erstelle ein eingehendes Ticket", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
Translation.create_if_not_exists( :locale => 'de', :source => "Create an outbound Ticket (will send this as email to customer)", :target => "Erstelle ein ausgehendes Ticket (wird per E-Mail an den Kunden gesendet)", :updated_by_id => 1, :created_by_id => 1 )
|
Translation.create_if_not_exists( :locale => 'de', :source => "Create an outbound Ticket (will send this as email to customer)", :target => "Erstelle ein ausgehendes Ticket (wird per E-Mail an den Kunden gesendet)", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
|
Translation.create_if_not_exists( :locale => 'de', :source => "Age", :target => "Alter", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
|
Translation.create_if_not_exists( :locale => 'de', :source => "Article Count", :target => "Artikel Anzahl", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
|
Translation.create_if_not_exists( :locale => 'de', :source => "Close Time", :target => "Schließzeit", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
|
Translation.create_if_not_exists( :locale => 'de', :source => "First Response", :target => "Erste Reaktion", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
|
Translation.create_if_not_exists( :locale => 'de', :source => "up", :target => "auf", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
|
Translation.create_if_not_exists( :locale => 'de', :source => "down", :target => "ab", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
|
|
||||||
#Translation.create_if_not_exists( :locale => 'de', :source => "", :target => "", :updated_by_id => 1, :created_by_id => 1 )
|
#Translation.create_if_not_exists( :locale => 'de', :source => "", :target => "", :updated_by_id => 1, :created_by_id => 1 )
|
||||||
|
|
Loading…
Reference in a new issue