(function () {
var locale = {"common":{"Save":"Save","Cancel":"Cancel","Add":"Add","Help":"Help","Remove":"Remove","Delete":"Delete","Edit":"Edit","Login":"Login","Logout":"Logout","Ok":"Ok","Yes":"Yes","No":"No","Search":"Search","More":"More","Create":"Create","Update":"Update","Select":"Select","Clear":"Clear","Apply":"Apply","Copy":"Copy","Paste":"Paste","Close":"Close","Open":"Open","Done":"Done","Refresh":"Refresh","Unlock":"Unlock","Lock":"Lock","Next":"Next","Previous":"Previous","Prev":"Prev","New":"New","Advanced":"Advanced","Print":"Print","Export":"Export","Import":"Import","Read":"Read","Write":"Write","Implicit":"Implicit","Explicit":"Explicit","Allow":"Allow","Warn":"Warn","Block":"Block","First":"First","Last":"Last","Name":"Name","Value":"Value","Key":"Key","User":"User","Active":"Active","Inactive":"Inactive","Show":"Show","Hide":"Hide","Confirm":"Confirm","Upload":"Upload","Download":"Download","Max":"Max","Min":"Min","View":"View","Page":"Page","Start":"Start","End":"End","Contains":"Contains","Equals":"Equals","In":"In","Out":"Out","Less":"Less","Date":"Date","Yearly":"Yearly","Monthly":"Monthly","Weekly":"Weekly","Daily":"Daily","Hourly":"Hourly","Form":"Form","To":"To","Today":"Today","Day":"Day","Month":"Month","Year":"Year","Sunday":"Sunday","Monday":"Monday","Tuesday":"Tuesday","Wednesday":"Wednesday","Thursday":"Thursday","Friday":"Friday","Saturday":"Saturday","Sun":"Sun","Mon":"Mon","Tues":"Tues","Wed":"Wed","Thu":"Thu","Fri":"Fri","Sat":"Sat","Su":"Su","Mo":"Mo","Tu":"Tu","We":"We","Th":" Th","Fr":"Fr","Sa":"Sa","January":"January","February":"February","March":"March","April":"April","May":"May","June":"June","July":"July","August":"August","September":"September","October":"October","November":"November","December":"December","Jan":"Jan","Feb":"Feb","Mar":"Mar","Apr":"Apr","Jun":"Jun","Jul":"Jul","Aug":"Aug","Sep":"Sep","Oct":"Oct","Nov":"Nov","Dec":"Dec","Comment":"Comment","Status":"Status","Title":"Title","Description":"Description","Button":"Button","Post":"Post","Email":"Email","Attachment":"Attachment","Attachments":"Attachments","Facebook":"Facebook","Twitter":"Twitter","LinkedIn":"LinkedIn","Youtube":"Youtube","Colour":"Colour","List":"List","Cart":"Cart","Image":"Image","Text":"Text"},"MSG":{"ERROR_MSG":"Error occured!","INVLID_CUR_PASS_MSG":"Invalid current password.","PASS_CHANGE_SUCCESS_MSG":"Password has been changed successfully.","NEW_PASS_NOT_MATCH_MSG":"New Password does not match the confirm password"},"LBL":{"NEW_PASS":"New Password","CURR_PASS":"Current Password"},"TXT":{"CHANGE_PASS":"Change Password","CONFIRM_PASS":"Confirm Password","CHANGE_LANGUAGE":"Change Language","MENU":"Menu","HOME":"Home","LOGOUT":"Logout","UPLOAD_PHOTO":"Upload Photo","NOTE_WATERMARK":"Write your comment here...","NOTE_DEL_CONFIRM":"Do you really want to delete?","NOTE_ADD_NEW":"Add New Note","GRID_PAGER_EMPTY_TXT":"No record to display","ATTACHMENT_FILE_NAME":"File Name","HELP":"Help"},"FTXT":{"GRID_PAGER_DISPLAY_TXT":"Displaying {displayFrom}-{displayTo} of {totalCount}","GRID_PAGER_PAGING_TXT":"Page:{curentPage} of {totalCount}"},"MASTER":{"Terms & Conditions":"Terms & Conditions","Privacy Policy":"Privacy Policy","New Member":"New Member?","Events":"Events","COPYRIGHT":"© Copyright 2002 - {Y} JustGo. All Rights Reserved.","About Us":"About Us"},"":{"Map":"Map"},"SIGN_IN":{"FIRST_NAME":"First name"}};;
var clientLocale = {"common":{"QUALIFICATION_INFO_TITLE":"Information on New Qualifications","QUALIFICATION_INFO_BLOB":"To start a new qualification you must first select a qualification on the left hand side. You will then be listed with the required courses that you need to pass in order to meet this qualification. You will not be able to submit this qualification until you have passed all the courses and uploaded supporting evidence in the attachment container at the bottom of this form.
You can log feedback, questions and comments using the notes feature below. A member will reply shortly to any queries or issues you raise.
Thank you and good luck!"}};;
var getLocale = function(key,sec, loc) {
if(!key) return key;
if(sec) {
if (loc.hasOwnProperty(sec) && loc[sec].hasOwnProperty(key)) {
return loc[sec][key];
}
else {
return key;
}
}
if (key.indexOf('-') != -1) {
var parts = key.split('-');
var section = parts[0];
parts.splice(0, 1);
var k = parts.join('-');
if (loc.hasOwnProperty(section) && loc[section].hasOwnProperty(k)) {
return loc[section][k];
}
}
else {
if (loc.common && loc.common.hasOwnProperty(key)) {
return loc.common[key];
}
}
return key;
};
window.$L = function (key, section, formatValue) {
if (formatValue) {
var tempRes = getLocale(key, section, locale);
formatValue.map(function (e, i) {
var index = i + 1;
tempRes = tempRes.replace(new RegExp('#' + index, 'ig'), e);
})
return tempRes;
}
else return getLocale(key, section, locale);
};
window.$CL = function(key,section) {
return getLocale(key,section, clientLocale);
};
})();