//
// Keyboard shortcuts
// . = Prompttest
+// 2 = Back from i2
// A = Template
// B = Robot
-// C = Back from i2
-// C = Lookup content
+// C = Viewcvs
// D = Dynamic version
// E = Node info
// F = Tango interface
// G = Look in tango
// I = I2 tree
+// K = Lookup content
// L = Live
-// M = W3c markup validator
// N = Node lookup
// O = Opdatering
// P = Ttv page
// R = Requeue in tango
// S = Snapshot
// T = Test
+// T = tv2.dk
// U = Node query tool
-// V = Viewcvs
+// V = W3C markup validator
// W = Webroot
// X = Examine database queries
-
var TV2Developer = {
_lastAction: null,
// Add the two urls we are not at
if (!tv2_testsite) { // always add swaps to snapshot and the test site
- links.push(new this.TV2Link('test_live_swap', testurl, tv2_uri, 't'));
- links.push(new this.TV2Link('snapshot_live_swap', snapshoturl, tv2_uri, 's'));
- links.push(new this.TV2Link('testprompt_swap', testprompturl, tv2_uri, '.', 'promptInitials'));
+ links.push(new this.TV2Link('test_live_swap', testurl, tv2_uri, this.getStr('test.accesskey')));
+ links.push(new this.TV2Link('snapshot_live_swap', snapshoturl, tv2_uri, this.getStr('snapshot.accesskey')));
+ links.push(new this.TV2Link('testprompt_swap', testprompturl, tv2_uri, this.getStr('testprompt.accesskey'), 'promptInitials'));
} else if (tv2_testtype == 'snapshot') {
- links.push(new this.TV2Link('snapshot_live_swap', liveurl, tv2_uri, 'l'));
- links.push(new this.TV2Link('test_snapshot_swap', testurl, tv2_uri, 't'));
- links.push(new this.TV2Link('testprompt_swap', testprompturl, tv2_uri, '.', 'promptInitials'));
+ links.push(new this.TV2Link('snapshot_live_swap', liveurl, tv2_uri, this.getStr('live.accesskey')));
+ links.push(new this.TV2Link('test_snapshot_swap', testurl, tv2_uri, this.getStr('test.accesskey')));
+ links.push(new this.TV2Link('testprompt_swap', testprompturl, tv2_uri, this.getStr('testprompt.accesskey'), 'promptInitials'));
} else { // must be test
- links.push(new this.TV2Link('test_live_swap', liveurl, tv2_uri, 'l'));
- links.push(new this.TV2Link('test_snapshot_swap', snapshoturl, tv2_uri, 's'));
+ links.push(new this.TV2Link('test_live_swap', liveurl, tv2_uri, this.getStr('live.accesskey')));
+ links.push(new this.TV2Link('test_snapshot_swap', snapshoturl, tv2_uri, this.getStr('snapshot.accesskey')));
if (tv2_user != initials) {
- links.push(new this.TV2Link('test_swap', testurl, tv2_uri, 't'));
+ links.push(new this.TV2Link('test_swap', testurl, tv2_uri, this.getStr('test.accesskey')));
}
- links.push(new this.TV2Link('testprompt_swap', testprompturl, tv2_uri, '.', 'promptInitials'));
+ links.push(new this.TV2Link('testprompt_swap', testprompturl, tv2_uri, this.getStr('testprompt.accesskey'), 'promptInitials'));
}
links.push(new this.TV2LinkSplit());
var robot = _prefix + '.robot' + _postfix;
var normal = (tv2_testsite ? _prefix + '.' + tv2_testsite + '.tv2.dk'
: live_sitename + 'tv2.dk');
- links.push(new this.TV2Link('opdatering_swap', (tv2_sitetype!='opdatering')?opdatering:normal, '/', (tv2_sitetype!='opdatering')?'o':'w'));
- //links.push(new this.TV2Link('template_swap', (tv2_sitetype!='template')?template:normal, '/', (tv2_sitetype!='template')?'a':'w'));
- links.push(new this.TV2Link('robot_swap', (tv2_sitetype!='robot')?robot:normal, '/', (tv2_sitetype!='robot')?'b':'w'));
+ links.push(new this.TV2Link('opdatering_swap', (tv2_sitetype!='opdatering')?opdatering:normal, '/',
+ (tv2_sitetype!='opdatering') ? this.getStr('opdatering.accesskey') : this.getStr('webroot.accesskey')));
+ /*links.push(new this.TV2Link('template_swap', (tv2_sitetype!='template')?template:normal, '/',
+ (tv2_sitetype!='template') ? this.getStr('template.accesskey') : this.getStr('webroot.accesskey'))); */
+ links.push(new this.TV2Link('robot_swap', (tv2_sitetype!='robot')?robot:normal, '/',
+ (tv2_sitetype!='robot') ? this.getStr('robot.accesskey') : this.getStr('webroot.accesskey')));
links.push(new this.TV2LinkSplit());
/* link entered in I2 interface */
links.push(new this.TV2LinkSplit());
/* tango/entry, tango/requeue, tango/dynamic, tool/pdo_log */
- links.push(new this.TV2LinkWithLabel(onI2interface, onI2interface_url, onI2interface_url, 'c'));
+ links.push(new this.TV2LinkWithLabel(onI2interface, onI2interface_url, onI2interface_url, this.getStr('backI2.accesskey')));
}
// Some special cases for some sites
i2link + '/tool/ttv/?1=' + ttv_page[1] + '&2=0', /* hardcoded to TV 2 TTV */
this.getStr('lookupTTVPage.accesskey')));
}
- /*links.push(new this.TV2Link('ttvpumpe', 'ttvpumpe'+updatepostfix, '/', 'p'));*/
- links.push(new this.TV2Link('ttvpumpe', 'ttvpumpe.opdatering.tv2.dk', '/', 'p'));
+ /*links.push(new this.TV2Link('ttvpumpe', 'ttvpumpe'+updatepostfix, '/', this.getStr('ttvpumpe.accesskey')));*/
+ links.push(new this.TV2Link('ttvpumpe', 'ttvpumpe.opdatering.tv2.dk', '/', this.getStr('ttvpumpe.accesskey')));
}
// I2-Files and I2-Images
var live_sitename = (tv2_sitetype=='webroot' && tv2_sitename=='www') ? '': (tv2_sitename+'.');
var type = (tv2_sitetype=='webroot')? '' : tv2_sitetype+'.';
- links.push(new this.TV2Link('viewcvs_live', live_sitename + type + 'tv2.dk', tv2_uri, 'l'));
- links.push(new this.TV2Link('viewcvs_test', tv2_sitename + '.' + initials + '.' + type + 'test' + testType + '.tv2.dk', tv2_uri, 't'));
- links.push(new this.TV2Link('viewcvs_snapshot', tv2_sitename + '.' + type + 'snapshot' + testType + '.tv2.dk', tv2_uri, 's'));
- links.push(new this.TV2Link('viewcvs_testprompt', tv2_sitename + '.?.' + type + 'test' + testType + '.tv2.dk', tv2_uri, '.', 'promptInitials'));
+ links.push(new this.TV2Link('viewcvs_live', live_sitename + type + 'tv2.dk', tv2_uri, this.getStr('live.accesskey')));
+ links.push(new this.TV2Link('viewcvs_test', tv2_sitename + '.' + initials + '.' + type + 'test' + testType + '.tv2.dk', tv2_uri, this.getStr('test.accesskey')));
+ links.push(new this.TV2Link('viewcvs_snapshot', tv2_sitename + '.' + type + 'snapshot' + testType + '.tv2.dk', tv2_uri, this.getStr('snapshot.accesskey')));
+ links.push(new this.TV2Link('viewcvs_testprompt', tv2_sitename + '.?.' + type + 'test' + testType + '.tv2.dk', tv2_uri, this.getStr('testprompt.accesskey'), 'promptInitials'));
} else {
links.push(new this.TV2LinkWithLabel('disabled', this.getStr('notTV2Site'), null, '', null, true));
links.push(new this.TV2LinkSplit());
- links.push(new this.TV2Link('tv2dk', 'tv2.dk', '/', 't'));
+ links.push(new this.TV2Link('tv2dk', 'tv2.dk', '/', this.getStr('tv2dk.accesskey')));
}
}