/*************************************************************************************************************
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%N.js"&gt;&lt;/script&gt;
	where N is the current locale code.
	
* 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" : "Είστε σίγουροι ότι θέλετε να διαγράψετε αυτό το αντικείμενο;" ,
	"enRequired.confirmDeleteItem" : "Είστε σίγουροι ότι θέλετε να διαγράψετε το εντικείμενο '~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" : "Παρακαλούμε δώστε έναν αριθμό" ,
	"enValidation.enterValueGreater" : "Παρακαλούμε δώστε μια τιμή μεγαλύτερη ή ίση του " ,
	"enValidation.enterValueLess" : "Παρακαλούμε δώστε μια τιμή μικρότερη ή ίση του " ,	
	"enValidation.enterValBetween" : "Παρακαλούμε δώστε μια τιμή μεταξύ  ~1~ και ~2~" ,
	"enValidation.enterNoOfCharsGreater" : "Παρακαλούμε δώστε μια τιμή με αριθμό χαρακτήρων μεγαλύτερο ή ίσο του " ,
	"enValidation.enterNoOfCharsLess" : "Παρακαλούμε δώστε μια τιμή με αριθμό χαρακτήρων μικρότερο ή ίσο του " ,	
	"enValidation.enterNoOfCharsBetween" : "Παρακαλούμε δώστε μια τιμή με αριθμό χαρακτήρων μεταξύ του ~1~ και του ~2~" ,
	"enValidation.noOfChars" : "(ο αριθμός χαρακτήρων είναι:~1~)" ,
	"enValidation.enterDollar" : "Παρακαλούμε δώστε το ποσό σε Ευρώ" ,
	"enValidation.enterInteger" : "Παρακαλούμε δώστε έναν ακέραιο αριθμό" ,
	"enValidation.enterDate" : "Παρακαλούμε δώστε τα δεδομένα ως '" ,
	"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" ,
		
	//enUtils
	"enUtils.noElements" : "no elmnt or ifr" ,
	"enUtils.shiftByPercent" : "shiftByPercent is not a number" ,
	"enUtils.WrongCombination" : "wrong combination of position and shiftDir" ,
	"enUtils.CreateIframe" : "currnet browser couldn't create iframe" ,
	"enUtils.ifrCreate" : "ifrCreate " ,
	"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.noFrame" : "no main frame" ,
	"enApplication.noCell" : "There is no cell that directoin" ,			
	"enApplication.noAttribute" : "no attribute enRowsElmnts in the delete elemnt" ,
	"enApplication.changeNotSave" : "Changes have not been saved , try again !!!" ,			
	"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..."
	};
}//end of construstor function

//instanciate object
if(!window.enMsg)window.enMsg=new enMsgConstrustor();
