/*************************************************************************************************************
enformiaMessages.js

localized javascript messages
		
how to use:
===========
include this script firts in the page:
	<!-- localized javascript messages. instanciate a window level object enMsg-->
	&lt;script language="JavaScript" type="text/javascript"
		src="../Static/Include/ML/enformiaMessages.js"&gt;&lt;/script&gt;
for any translated version include the locale specific file:
	<!-- localized javascript messages.-->
	&lt;script language="JavaScript" type="text/javascript"
		src="../Static/Include/ML/enformiaMessagesLoc_$LOCALE$.js"&gt;&lt;/script&gt;
	where $LOCALE$ is the current locale string representation.
	
* this file is the default one and needs to be included no matter what the locale is
additional specific files will override its entries values
  
the script will create an object named enMsg (or window.enMsg)
there is only one method:
	enMsg.get(key);
	example: alert(enMsg.get("my message key"));

*************************************************************************************************************/

//enMsg construstor function
function enMsgConstrustor()
{
	//get localized text
	var get=function(key)
	{
		return msgs[key];
	}
	this.get=get;
	
	//set localized text
	var set=function(key,val)
	{
		msgs[key]=val;
	}
	this.set=set;
	
	//messages repository
	var msgs=
	{
	/************** local specific messages **************************************
	the following mwssages need to be translated for all languages
	in the separate files
	each message is structured:
		["]message name[" : "]message content["] [, in all lines except the last]
	*****************************************************************************/

	//hierarchic Menu
	"enMenu.treeCreate" : "Hierarchical Menu Trees Created"
	,"enMenu.createMenu" : "Creating Hierarchical Menus: "
	,"enMenu.createFavsFailed" : "Failed to create the 'Favorites' sub menu"
	,"enMenu.createMenuFailed" : "Failed to create the Menu. Please refresh the page to try again"
	
	//enformiaRequired
	,"enRequired.confirmDelete" : "Are you sure you want to delete this item?"
	,"enRequired.confirmDeleteItem" : "Are you sure you want to delete item '~1~'?"
	
	//general
	,"general.confirmPurgeArchive" : "Are you sure you want to purge all archived items?"
	,"general.confirmPurgeObjArchive" : "Are you sure you want to purge archived versions?"
	,"general.confirmUnsubscribe" : "Are you sure you want to unsubscribe?"
	,"general.confirmDelForumRec" : "This forum and any sub forums would be deleted.\nAre you sure you want to proceed?"
	,"general.confirmDelFAQRec" : "This category and any sub category would be deleted.\nAre you sure you want to proceed?"
	,"general.confirmDelFilter" : "Are you sure you want to remove your custom filter?"
	
	,"general.confirmCascadeDelRole" : "Are you sure you want to delete this role and all its child roles?"
	,"general.confirmCascadeDelZone" : "Are you sure you want to delete this zone and all its child zones?"
	,"general.confirmCascadeDelClass" : "Are you sure you want to delete this class and all its child classes?"
	,"general.restoreDefaults" : "Changes will be applied only after clicking 'Save'"
	
	,"general.action.delete" : "Delete"
	,"general.advanced" : "Advanced"
	
	//enValidation
	,"enValidation.inTheField" : " in the '~1~' field"
	,"enValidation.enterNum" : "Please enter a number"
	,"enValidation.enterValueGreater" : "Please enter a value with greater than or equal to "
	,"enValidation.enterValueLess" : "Please enter a value less than or equal to "	
	,"enValidation.enterValBetween" : "Please enter a value between ~1~ and ~2~"
	,"enValidation.enterNoOfCharsGreater" : "Please enter a value with no of characters greater than or equal to "
	,"enValidation.enterNoOfCharsLess" : "Please enter a value with no of characters less than or equal to "	
	,"enValidation.enterNoOfCharsBetween" : "Please enter a value with no of characters between ~1~ and ~2~"
	,"enValidation.noOfChars" : "(no of characters is:~1~)"
	,"enValidation.enterDollar" : "Please enter a dollar amount"
	,"enValidation.enterInteger" : "Please enter an integer"
	,"enValidation.enterDate" : "Please enter a date as '"
	,"enValidation.enterPattern" : "Please enter a valid pattern"
	,"enValidation.enterPhone" : "Please enter a valid phone number"
	,"enValidation.enterEmail" : "Please enter a valid email address"
	,"enValidation.enterEmails" : "Please enter a valid emails address"
	,"enValidation.enterZip" : "Please enter a valid ZIP code"
	,"enValidation.enterSystemName" : "Please enter a valid System name (Starts with a letter, has no spaces or special characters)"
	,"enValidation.enterValue" :  "Please enter a value"
	,"enValidation.allowedFileTypes" :  "Please enter a file of system allowed types"
	,"enValidation.forbiddenFileTypes" :  "Please enter a file of system allowed types"
	,"enValidation.allowedValues" :  "Please enter values in: '~1~'"
	,"enValidation.forbiddenValues" :  "Please enter values not in: '~1~'"
		
	//enUtils
	,"enUtils.currProccess" : "Currently processing request..."
	,"enUtils.truncatedText" : "field content will be truncated.\nmax characters allowed"
	,"enUtils.noItems" : "No items are selected"
	,"enUtils.reProccess" : "\nRe-process anyway?"
	,"enUtils.delSomeItem" : "Are you sure you want to ~1~ this item ?"
	,"enUtils.delItem" : "Are you sure you want to ~1~ item ~2~ ?"

	//enApplication
	,"enApplication.noCell" : "There is no cell that directoin"
	,"enApplication.promptFavsTitle" : "Please Suggest a Title:"
	,"enApplication.requiredValue" : "Field requires a value."
	,"enApplication.progressBarDefTitle" : "Processing ... "
	,"enApplication.maximize" : "Maximize"
	,"enApplication.minimize" : "Minimize"
	,"enApplication.restore" : "Restore"
	,"enApplication.collapse" : "Collapse"
	,"enApplication.expand" : "Expand"
	,"enApplication.alertNotLoginAndClose" : "User is not logged in. Please login again."
	,"enApplication.askIfProceed" : "You have already made changes on that page \n proceed and discard these changes?"
	,"enApplication.confirmRefresh" : "Reload interval has elapsed. reload page now?"
	,"enApplication.cell.save" : "Save"
	,"enApplication.cell.cancel" : "Cancel"
	,"enApplication.cell.print" : "Print..."
	,"enApplication.cell.send" : "Send..."
	,"enApplication.cell.reload" : "Reload"
	,"enApplication.cell.preferences" : "Preferences..."
	
	//enCalendar
	,"enCalendar.days.1" : "Su"
	,"enCalendar.days.2" : "Mo"
	,"enCalendar.days.3" : "Tu"
	,"enCalendar.days.4" : "We"
	,"enCalendar.days.5" : "Th"
	,"enCalendar.days.6" : "Fr"
	,"enCalendar.days.7" : "Sa"
	
	,"enCalendar.months.1" : "January"
	,"enCalendar.months.2" : "February"
	,"enCalendar.months.3" : "March"
	,"enCalendar.months.4" : "April"
	,"enCalendar.months.5" : "May"
	,"enCalendar.months.6" : "June"
	,"enCalendar.months.7" : "July"
	,"enCalendar.months.8" : "August"
	,"enCalendar.months.9" : "September" 
	,"enCalendar.months.10" : "October"
	,"enCalendar.months.11" : "November" 
	,"enCalendar.months.12" : "December"
	
	,"enCalendar.time" : "Time (24h) "
	,"enCalendar.save" : "Save"
	,"enCalendar.am" : "AM"
	,"enCalendar.pm" : "PM"
	};
}//end of construstor function

//instanciate object
if(!window.enMsg)window.enMsg=new enMsgConstrustor();