--- a/includes/clientside/static/faders.js Sat Oct 20 21:59:27 2007 -0400
+++ b/includes/clientside/static/faders.js Sat Nov 03 07:40:54 2007 -0400
@@ -184,7 +184,8 @@
{
btn = document.createElement('input');
btn.type = 'button';
- btn.value = 'OK';
+ btn.value = $lang.get('etc_ok');
+ btn._GenericName = 'OK';
btn.onclick = this.clickHandler;
btn.style.margin = '0 3px';
buttondiv.appendChild(btn);
@@ -194,14 +195,16 @@
{
btn = document.createElement('input');
btn.type = 'button';
- btn.value = 'OK';
+ btn.value = $lang.get('etc_ok');
+ btn._GenericName = 'OK';
btn.onclick = this.clickHandler;
btn.style.margin = '0 3px';
buttondiv.appendChild(btn);
btn = document.createElement('input');
btn.type = 'button';
- btn.value = 'Cancel';
+ btn.value = $lang.get('etc_cancel');
+ btn._GenericName = 'Cancel';
btn.onclick = this.clickHandler;
btn.style.margin = '0 3px';
buttondiv.appendChild(btn);
@@ -211,14 +214,16 @@
{
btn = document.createElement('input');
btn.type = 'button';
- btn.value = 'Yes';
+ btn.value = $lang.get('etc_yes');
+ btn._GenericName = 'Yes';
btn.onclick = this.clickHandler;
btn.style.margin = '0 3px';
buttondiv.appendChild(btn);
btn = document.createElement('input');
btn.type = 'button';
- btn.value = 'No';
+ btn.value = $lang.get('etc_no');
+ btn._GenericName = 'No';
btn.onclick = this.clickHandler;
btn.style.margin = '0 3px';
buttondiv.appendChild(btn);
@@ -228,21 +233,24 @@
{
btn = document.createElement('input');
btn.type = 'button';
- btn.value = 'Yes';
+ btn.value = $lang.get('etc_yes');
+ btn._GenericName = 'Yes';
btn.onclick = this.clickHandler;
btn.style.margin = '0 3px';
buttondiv.appendChild(btn);
btn = document.createElement('input');
btn.type = 'button';
- btn.value = 'No';
+ btn.value = $lang.get('etc_no');
+ btn._GenericName = 'No';
btn.onclick = this.clickHandler;
btn.style.margin = '0 3px';
buttondiv.appendChild(btn);
btn = document.createElement('input');
btn.type = 'button';
- btn.value = 'Cancel';
+ btn.value = $lang.get('etc_cancel');
+ btn._GenericName = 'Cancel';
btn.onclick = this.clickHandler;
btn.style.margin = '0 3px';
buttondiv.appendChild(btn);
@@ -295,7 +303,7 @@
function messagebox_click(obj, mb)
{
- val = obj.value;
+ val = ( typeof ( obj._GenericName ) == 'string' ) ? obj._GenericName : obj.value;
if(typeof mb.onbeforeclick[val] == 'function')
{
var o = mb.onbeforeclick[val];
@@ -441,7 +449,7 @@
function mb_logout()
{
- var mb = new messagebox(MB_YESNO|MB_ICONQUESTION, 'Are you sure you want to log out?', 'If you log out, you will no longer be able to access your user preferences, your private messages, or certain areas of this site until you log in again.');
+ var mb = new messagebox(MB_YESNO|MB_ICONQUESTION, $lang.get('user_logout_confirm_title'), $lang.get('user_logout_confirm_body'));
mb.onclick['Yes'] = function()
{
window.location = makeUrlNS('Special', 'Logout/' + title);