Page 1 of 1

Sugestion of change in nucalendar.js for translations

Posted: Mon Feb 01, 2016 11:17 pm
by Celson
Hello,

I would like to suggest a change in the function below in order to leave it available for translations:

Code: Select all

function nuTitleBox(n, l){

	var t                    = 'SMTWTFS';
	var c                    = nuAppendChild(document.getElementById('nuCalendar'),'div','nuCalTitle'+n);
	
	
	c.style.position         = 'absolute';
	c.style.top              = (window.nuCalTop + 97) + 'px';
	c.style.left             = l + 'px';
	c.style.width            = '28px';
	c.style.height           = '18px';
	c.style.backgroundColor  = '#EDEDED';
	c.style.color            = '#000000';
	c.style.borderColor      = '#D3D3D3';
	c.style.borderStyle      = 'solid';
	c.style.borderWidth      = '1px';
	c.style.fontSize         = '14px';
	c.style.textAlign        = 'center';
	c.innerHTML              = t.substr(n, 1);

}
The change proposed is for the first line of this function:

Code: Select all

	var t                    = nuTranslate('SMTWTFS');

Re: Sugestion of change in nucalendar.js for translations

Posted: Fri Feb 12, 2016 2:34 am
by admin
Celson,

This change has been uploaded to github.

Steven