Moved to new locales.
This commit is contained in:
parent
8c4b546caa
commit
ea21efab56
3 changed files with 6 additions and 6 deletions
|
@ -113,7 +113,7 @@ class App.Auth
|
||||||
if preferences && preferences.locale
|
if preferences && preferences.locale
|
||||||
locale = preferences.locale
|
locale = preferences.locale
|
||||||
if !locale
|
if !locale
|
||||||
locale = window.navigator.userLanguage || window.navigator.language || 'en'
|
locale = window.navigator.userLanguage || window.navigator.language || 'en-us'
|
||||||
App.i18n.set( locale )
|
App.i18n.set( locale )
|
||||||
|
|
||||||
App.Event.trigger( 'auth:login', data.session )
|
App.Event.trigger( 'auth:login', data.session )
|
||||||
|
|
|
@ -45,7 +45,7 @@ test( "model ui basic tests", function() {
|
||||||
equal( App.viewPrint( ticket, 'state_id' ), 'open')
|
equal( App.viewPrint( ticket, 'state_id' ), 'open')
|
||||||
equal( App.viewPrint( ticket, 'not_existing' ), '-')
|
equal( App.viewPrint( ticket, 'not_existing' ), '-')
|
||||||
equal( App.viewPrint( ticket, 'updated_at' ), "<span class=\"humanTimeFromNow undefined\" data-time=\"2014-11-07T23:43:08.000Z\">?</span>")
|
equal( App.viewPrint( ticket, 'updated_at' ), "<span class=\"humanTimeFromNow undefined\" data-time=\"2014-11-07T23:43:08.000Z\">?</span>")
|
||||||
equal( App.viewPrint( ticket, 'date' ), '2015-02-07')
|
equal( App.viewPrint( ticket, 'date' ), '02/07/2015')
|
||||||
equal( App.viewPrint( ticket, 'textarea' ), '<div>some new</div><div>line</div>')
|
equal( App.viewPrint( ticket, 'textarea' ), '<div>some new</div><div>line</div>')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -112,14 +112,14 @@ test( "table test", function() {
|
||||||
equal( el.find('table > thead > tr > th:nth-child(1)').text().trim(), 'Name', 'check header')
|
equal( el.find('table > thead > tr > th:nth-child(1)').text().trim(), 'Name', 'check header')
|
||||||
equal( el.find('table > thead > tr > th:nth-child(2)').text().trim(), 'Erstellt', 'check header')
|
equal( el.find('table > thead > tr > th:nth-child(2)').text().trim(), 'Erstellt', 'check header')
|
||||||
equal( el.find('table > thead > tr > th:nth-child(3)').text().trim(), 'Aktiv', 'check header')
|
equal( el.find('table > thead > tr > th:nth-child(3)').text().trim(), 'Aktiv', 'check header')
|
||||||
equal( el.find('tbody > tr:nth-child(2) > td').length, 3, 'check row 2')
|
|
||||||
equal( el.find('tbody > tr:nth-child(2) > td:first').text().trim(), '1 niedrig', 'check row 2')
|
|
||||||
equal( el.find('tbody > tr:nth-child(2) > td:nth-child(2)').text().trim(), '?', 'check row 2')
|
|
||||||
equal( el.find('tbody > tr:nth-child(2) > td:nth-child(3)').text().trim(), 'true', 'check row 2')
|
|
||||||
equal( el.find('tbody > tr:nth-child(1) > td').length, 3, 'check row 1')
|
equal( el.find('tbody > tr:nth-child(1) > td').length, 3, 'check row 1')
|
||||||
equal( el.find('tbody > tr:nth-child(1) > td:first').text().trim(), '2 normal', 'check row 1')
|
equal( el.find('tbody > tr:nth-child(1) > td:first').text().trim(), '2 normal', 'check row 1')
|
||||||
equal( el.find('tbody > tr:nth-child(1) > td:nth-child(2)').text().trim(), '?', 'check row 1')
|
equal( el.find('tbody > tr:nth-child(1) > td:nth-child(2)').text().trim(), '?', 'check row 1')
|
||||||
equal( el.find('tbody > tr:nth-child(1) > td:nth-child(3)').text().trim(), 'false', 'check row 1')
|
equal( el.find('tbody > tr:nth-child(1) > td:nth-child(3)').text().trim(), 'false', 'check row 1')
|
||||||
|
equal( el.find('tbody > tr:nth-child(2) > td').length, 3, 'check row 2')
|
||||||
|
equal( el.find('tbody > tr:nth-child(2) > td:first').text().trim(), '1 niedrig', 'check row 2')
|
||||||
|
equal( el.find('tbody > tr:nth-child(2) > td:nth-child(2)').text().trim(), '?', 'check row 2')
|
||||||
|
equal( el.find('tbody > tr:nth-child(2) > td:nth-child(3)').text().trim(), 'true', 'check row 2')
|
||||||
|
|
||||||
$('#table').append('<hr><h1>table simple III</h1><div id="table3"></div>')
|
$('#table').append('<hr><h1>table simple III</h1><div id="table3"></div>')
|
||||||
el = $('#table3')
|
el = $('#table3')
|
||||||
|
|
Loading…
Reference in a new issue