Moved to new locales.
This commit is contained in:
parent
ba1d7abf91
commit
8c4b546caa
3 changed files with 14 additions and 14 deletions
|
@ -258,9 +258,9 @@ App.Delay.set( function() {
|
||||||
test( "i18n", function() {
|
test( "i18n", function() {
|
||||||
|
|
||||||
// de
|
// de
|
||||||
App.i18n.set('de');
|
App.i18n.set('de-de');
|
||||||
var translated = App.i18n.translateContent('yes');
|
var translated = App.i18n.translateContent('yes');
|
||||||
equal( translated, 'ja', 'de - yes / ja translated correctly' );
|
equal( translated, 'ja', 'de-de - yes / ja translated correctly' );
|
||||||
|
|
||||||
translated = App.i18n.translateContent('<test&now>//*äöüß');
|
translated = App.i18n.translateContent('<test&now>//*äöüß');
|
||||||
equal( translated, '<test&now>//*äöüß', 'de - <test&now>//*äöüß' );
|
equal( translated, '<test&now>//*äöüß', 'de - <test&now>//*äöüß' );
|
||||||
|
@ -268,18 +268,18 @@ test( "i18n", function() {
|
||||||
var time_local = new Date();
|
var time_local = new Date();
|
||||||
var offset = time_local.getTimezoneOffset();
|
var offset = time_local.getTimezoneOffset();
|
||||||
var timestamp = App.i18n.translateTimestamp('2012-11-06T21:07:24Z', offset);
|
var timestamp = App.i18n.translateTimestamp('2012-11-06T21:07:24Z', offset);
|
||||||
equal( timestamp, '06.11.2012 21:07', 'de - timestamp translated correctly' );
|
equal( timestamp, '06.11.2012 21:07', 'de-de - timestamp translated correctly' );
|
||||||
|
|
||||||
// en
|
// en
|
||||||
App.i18n.set('en');
|
App.i18n.set('en-us');
|
||||||
translated = App.i18n.translateContent('yes');
|
translated = App.i18n.translateContent('yes');
|
||||||
equal( translated, 'yes', 'en - yes translated correctly' );
|
equal( translated, 'yes', 'en-us - yes translated correctly' );
|
||||||
|
|
||||||
translated = App.i18n.translateContent('<test&now>');
|
translated = App.i18n.translateContent('<test&now>');
|
||||||
equal( translated, '<test&now>', 'en - <test&now>' );
|
equal( translated, '<test&now>', 'en-us - <test&now>' );
|
||||||
|
|
||||||
timestamp = App.i18n.translateTimestamp('2012-11-06T21:07:24Z', offset);
|
timestamp = App.i18n.translateTimestamp('2012-11-06T21:07:24Z', offset);
|
||||||
equal( timestamp, '2012-11-06 21:07', 'en - timestamp translated correctly' );
|
equal( timestamp, '11/06/2012 21:07', 'en - timestamp translated correctly' );
|
||||||
});
|
});
|
||||||
|
|
||||||
// events
|
// events
|
||||||
|
|
|
@ -38,7 +38,7 @@ test( "model ui basic tests", function() {
|
||||||
textarea: "some new\nline"
|
textarea: "some new\nline"
|
||||||
})
|
})
|
||||||
|
|
||||||
App.i18n.set('en')
|
App.i18n.set('en-us')
|
||||||
equal( App.viewPrint( ticket, 'id' ), 1000)
|
equal( App.viewPrint( ticket, 'id' ), 1000)
|
||||||
equal( App.viewPrint( ticket, 'title' ), 'some title <>&')
|
equal( App.viewPrint( ticket, 'title' ), 'some title <>&')
|
||||||
equal( App.viewPrint( ticket, 'state' ), 'open')
|
equal( App.viewPrint( ticket, 'state' ), 'open')
|
||||||
|
@ -49,7 +49,7 @@ test( "model ui basic tests", function() {
|
||||||
equal( App.viewPrint( ticket, 'textarea' ), '<div>some new</div><div>line</div>')
|
equal( App.viewPrint( ticket, 'textarea' ), '<div>some new</div><div>line</div>')
|
||||||
|
|
||||||
|
|
||||||
App.i18n.set('de')
|
App.i18n.set('de-de')
|
||||||
equal( App.viewPrint( ticket, 'id' ), 1000)
|
equal( App.viewPrint( ticket, 'id' ), 1000)
|
||||||
equal( App.viewPrint( ticket, 'title' ), 'some title <>&')
|
equal( App.viewPrint( ticket, 'title' ), 'some title <>&')
|
||||||
equal( App.viewPrint( ticket, 'state' ), 'offen')
|
equal( App.viewPrint( ticket, 'state' ), 'offen')
|
||||||
|
@ -60,7 +60,7 @@ test( "model ui basic tests", function() {
|
||||||
equal( App.viewPrint( ticket, 'textarea' ), '<div>some new</div><div>line</div>')
|
equal( App.viewPrint( ticket, 'textarea' ), '<div>some new</div><div>line</div>')
|
||||||
|
|
||||||
|
|
||||||
App.i18n.set('en')
|
App.i18n.set('en-us')
|
||||||
ticket.state_id = 3
|
ticket.state_id = 3
|
||||||
equal( App.viewPrint( ticket, 'state' ), 'closed <>&')
|
equal( App.viewPrint( ticket, 'state' ), 'closed <>&')
|
||||||
equal( App.viewPrint( ticket, 'state_id' ), 'closed <>&')
|
equal( App.viewPrint( ticket, 'state_id' ), 'closed <>&')
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// form
|
// form
|
||||||
test( "table test", function() {
|
test( "table test", function() {
|
||||||
App.i18n.set('de')
|
App.i18n.set('de-de')
|
||||||
|
|
||||||
$('#table').append('<hr><h1>table simple I</h1><div id="table1"></div>')
|
$('#table').append('<hr><h1>table simple I</h1><div id="table1"></div>')
|
||||||
var el = $('#table1')
|
var el = $('#table1')
|
||||||
|
@ -358,7 +358,7 @@ test( "table test", function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
test( "table test 2", function() {
|
test( "table test 2", function() {
|
||||||
App.i18n.set('de')
|
App.i18n.set('de-de')
|
||||||
|
|
||||||
$('#table').append('<hr><h1>table with hash</h1><div id="table-hash1"></div>')
|
$('#table').append('<hr><h1>table with hash</h1><div id="table-hash1"></div>')
|
||||||
var el = $('#table-hash1')
|
var el = $('#table-hash1')
|
||||||
|
@ -421,7 +421,7 @@ test( "table test 2", function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
test( "table test 3", function() {
|
test( "table test 3", function() {
|
||||||
App.i18n.set('de')
|
App.i18n.set('de-de')
|
||||||
|
|
||||||
$('#table').append('<hr><h1>table with link</h1><div id="table-link1"></div>')
|
$('#table').append('<hr><h1>table with link</h1><div id="table-link1"></div>')
|
||||||
var el = $('#table-link1')
|
var el = $('#table-link1')
|
||||||
|
@ -520,7 +520,7 @@ test( "table test 3", function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
test( "table test 4", function() {
|
test( "table test 4", function() {
|
||||||
App.i18n.set('de')
|
App.i18n.set('de-de')
|
||||||
|
|
||||||
$('#table').append('<hr><h1>table with data</h1><div id="table-data1"></div>')
|
$('#table').append('<hr><h1>table with data</h1><div id="table-data1"></div>')
|
||||||
var el = $('#table-data1')
|
var el = $('#table-data1')
|
||||||
|
|
Loading…
Reference in a new issue