Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Sugestion of change in nucalendar.js for translations

Post Reply
Celson
Posts: 36
Joined: Wed Jan 27, 2016 12:35 pm
Location: Salvador, Bahia - Brazil

Sugestion of change in nucalendar.js for translations

Unread post 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');
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Sugestion of change in nucalendar.js for translations

Unread post by admin »

Celson,

This change has been uploaded to github.

Steven
Post Reply