function cultureResourceDefinition() {
this.TimeFormat_Second = "second";
this.TimeFormat_Seconds = "second";
this.TimeFormat_Minute = "minute";
this.TimeFormat_Minutes = "minutes";
this.TimeFormat_Hour = "hour";
this.TimeFormat_Hours = "hours";
this.TimeFormat_Day = "day";
this.TimeFormat_Days = "days";
this.Common_Submit = "Submit";
this.Common_Cancel = "Cancel";
this.Common_CopyLinkSuccess = "Copy this link successfully!";
this.File_Remove = "Remove";
this.File_CreateFolder = "Create Folder";
this.File_GetFolderShareLink = "Get this folder share link";
this.File_GetFolderPublishLink = "Get this folder publish link";
this.File_NoPermissionUpload = "No permission to upload!";
this.File_NoPermissionDownload = "No permission to download!";
this.File_SlideShowNoFileAlert = "A folder must have at least 2 images to run Slide Show!";
this.File_CancelInAllPages = "This will cancel \"Select In All Pages\"?";
this.File_DownloadFolderAlert = "Browser only supports download files. {0} makes download folders much easier. Do you want to install it?";
this.File_DownloadManyFileAlert = "Your browser only supports downloading files one-by-one. {0} makes upload and download much easier. Do you want to install it?";
this.File_NoZipDownloadPermission = "You are a free user, you have no permission to use zip download feature!";
this.File_PopWinBlocked = "A pop window that you requested was blocked by 3rd party software on your computer!";
this.File_SelectFileDownload = "Please select a file to download.";
this.File_SelectOneFile = "Please select one file!";
this.File_SelectFile = "Please select files!";
this.File_SelectOnlyOneFile = "Please select only one file!";
this.File_SelectOnlyFile = "Please select file(s) only.";
this.File_SelectOneFolder = "Please select one folder!";
this.File_SelectFolder = "Please select folders!";
this.File_SelectOnlyOneFolder = "Please select only one folder!";
this.File_SelectOnlyFolder = "Please select folder(s) only.";
this.File_SelectFileOrFolder = "Please select files or folders.";
this.File_DeleSysFolderAlert = "It is not recommended to delete a System Default folder. Are you sure to delete it?";
this.File_DeleManySysFolderAlert = "It is not recommended to delete System Default folders. Are you sure to delete them?";
this.File_DeleDataFolderAlert = "The folder contains important application data or backup data, are you sure to delete it?";
this.File_DeleInDataFolderAlert = "This folder contains important application data or backup data, are you sure to delete something in it?";
this.File_DeleManyDataFolderAlert = "These folders contains important application data or backup data, are you sure to delete them?";
this.File_DeleDataWarning = "After you delete the folder(s), client applications may experience some problem.";
this.File_DeleteAlert = "Are you sure to delete the selected file(s) and/or folder(s)?";
this.File_DeleteAlert_Empty = "Are you sure to delete the all files in this folder?";
this.File_DeleteFileAlert = "Are you sure to delete the selected file?";
this.File_SelectOnlyOne = "Please select one camera only!";
this.File_SelectObjectAction = "Please select a folder to {0}!";
this.File_SelectObjectActionForCamera = "Please select a camera to {0}!";
this.File_SelectObjectFirst = "Please select file(s) or folder(s) first.";
this.File_CannotCopy2EncryptedFolder = "Regular online files cannot be copied to the encrypted folder.";
this.File_CannotCopyFromEncryptedFolder = "Encrypted folder cannot be copied to regular online folder.";
this.File_RotateFailed = "Failed to rotate this photo!";
this.File_CaptDescContInvalidCharacter = "The folder caption or description content contains invalid character(s)!";
this.File_NotEditData = "You have not edit any data!";
this.File_DeleteConfirm = "Are you sure you want to delete this file?";
this.File_EnterDesc = "!";
this.File_EnterCaption = "!";
this.File_UpdateCaptDescFailed = "The Caption and Description Update Failed!";
this.File_UpdateCaptDescAlert = "Are you sure to modify the current folder's caption or description?";
this.File_CannotRenameSystemFolder = "You cannot rename this folder, because it is a system folder!";
this.File_SaveChangeAlert = "Do you want to save the change?";
this.File_InvalidCharacter = "Contains invalid character(s):{0}!";
this.File_SaveChangeFailed = "Failed to save this change!";
this.File_NameCannotEmpty = "The name can not be null!";
this.File_NoMusic2Play = "No music to play!";
this.File_NoPerm2Delete = "No permission to delete!";
this.File_NoPerm2Upload = "No permission to upload!";
this.File_NoPerm2Download = "No permission to download!"
this.File_RenameAlert = "Are you sure to rename the folder or file?";
this.File_FolderCaption = "Folder Caption: ";
this.File_FolderDesc = "Folder Description: ";
this.File_NameContainInvalid = "The name cannot contain invalid characters!";
this.File_CopyLinkOk = "Copy this link successfully!";
this.File_FileNameRequired = "File name is required!",
this.File_FileNameInvalidCharacter = "File Name contains invalid character(s)";
this.File_EnterTextAlert = "Please enter text";
this.File_EnterDownloadURLAlert = "Please enter a URL to download from";
this.File_InvalidDownloadURLAlert = "Please enter a valid URL to download from";
this.File_EnterURLAlert = "Please enter a URL address";
this.File_InvalidURLAlert = "Please enter a valid URL";
this.File_FolderNameRequired = "Camera name is required!",
this.File_FolderNameInvalidCharacter = "Camera Name contains invalid character(s)";
this.File_FolderInvalidCharacter = "The Camera caption or description content contains invalid character(s)!";
this.File_SelectOneImage = "Please select one image!";
this.File_SelectImage = "Please select images!";
this.File_SelectOnlyOneImage = "Please select only one image!";
this.File_SelectOnlyImage = "Please select image(s) only!";
this.File_SelectOneMusic = "Please select one music!";
this.File_SelectOnlyOneMusic = "Please select only one music file!";
this.File_SelectOnlyMusic = "Please select a music file only.";
this.File_SearchInputOneChar = "Please input one condition at least!";
this.Email_NewEmail_FromisRequired = "The Email's From field is required.";
this.Email_NewEmail_ToisRequired = "The Email's To field is required.";
this.Email_NewEmail_SubjectisRequired = "Subject is required.";
this.Email_NewEmail_BodyisRequired = "Msg Body is required!";
this.Account_Transfer_PwdisRequired = "password is required!\n";
this.Account_Transfer_SecPwdisRequired = "Secure password is required!\n";
this.Account_Transfer_PayToisRequired = "PayTo username is required!\n";
this.Account_Transfer_AmountisRequired = "Amount is required!\n";
this.Account_Transfer_InvalidAmount = "Invalid amount!";
this.Account_Transfer_InvalidAmount1 = "Amount must be between $0 to $2500!";
this.Share_ShareNameRequired = "Share name field is required.";
this.Share_ShareNameInvalid = "Share name contains invalid character(s).";
this.Share_ShareNameOutOfRange = "Share name is out of range ,the maxLength: 120 characters.";
this.Share_ShareDescRequired = "Description is required.";
this.Share_CannotShareToEmail = "Sorry, you can not share to an e-mail address, please remove the e-mail address from you share list!";
this.Share_SelectGroupMember = "You must select at least one group member(friend) from your group or contacts to share with or enter one friend to share.";
this.Publish_PublishNameRequired = "Publish name field is required.";
this.Publish_PublishNameInvalid = "Publish name contains invalid character(s).";
this.Publish_PublishNameOutOfRange = "Publish name is out of range ,the maxLength: 80 characters.";
this.Publish_PublishDescRequired = "Description is required.";
this.Publish_ReadMembershipAlert = "Please read the Membership Agreement and check \"Yes, I agree\"!";
this.Email_selectMsg = "Please select message(s)!";
this.Email_deleteMsg = "Are you sure you want to delete the selected message(s)?";
this.Email_bulkMsg = "Are you sure you want to bulk the selected message(s)?";
this.Email_unBulkMsg = "Are you sure you want to unbulk the selected message(s)?";
this.Email_emptyMsgbox = "Are you sure you want to empty the mailbox?";
this.Email_selectYourMsgBox = "Select Your Message Boxes";
this.Email_selectFromStorage = "Select from online files";
this.Email_uploadLocalFiles = "Upload Local Files";
this.Email_SavingFile = "Saving Another File!";
this.Email_savingMsgFirst = "Please save message first!";
this.Email_selectFile = "Please select a file!";
this.Email_saveContact = "Save Contact Address";
this.Email_addFolder = "Add Folder";
this.Email_renameSysbox = "You can't rename system mail box!";
this.Email_selectoneFolder = "Please select a folder!";
this.Email_editFolder = "Edit Folder";
this.Email_deleting = "Deleting, please wait...";
this.Email_deleteSysmailbox = "You can't delete system mail box!";
this.Email_editSysmailbox = "Your can't edit system mail box!";
this.Email_deleteoneFolder = "Are you sure you want to delete this folder and all of its contents?";
this.Email_deletesomeFolders = "Are you sure you want to delete the selected folders and all of their contents?";
this.Email_deletingMsg = "Are you sure you want to delete this message?";
this.Email_bulkMsg = "Are you sure you want to bulk this message?";
this.Email_removeAttachment = "Are you sure to remove this attachment?";
this.Email_selectFiles = "Please select the file(s)!";
this.Email_selectAttachment = "Please select a file as an attachment!";
this.Email_selectContact = "Select from Your Contacts";
this.Email_moveMsg = "Are you sure you want to move the selected message(s) to the mailbox {0}?";
this.Email_newFolder = "New Folder";
this.Email_eidtFolder = "Edit Folder";
this.Email_deleteFolder = "Delete Folder";
this.Email_emptyFolder = "Empty Folder";
this.Email_markAllRead = "Mark All Read";
this.Email_markAllunRead = "Mark All Unread";
this.Email_manageFolder = "Manage Folder";
this.Email_addCC = "Add CC";
this.Email_deleteCC = "Delete CC";
this.Email_addBCC = "Add BCC";
this.Email_deleteBCC = "Delete BCC";
this.Email_FromRequired = "Email from field is required.";
this.Email_ToRequired = "Email to field is required.";
this.Email_SubjectRequired = "Email subject field is required.";
this.Email_BodyRequired = "Email body is required.";
this.Email_SelectLocalFile = "Please browse and select a file from your local computer.";
this.Email_InvalidRecipient = "The recipient \"{0}\" is not a valid email address!";
this.Email_UploadAttachment = "Please browse and select at least one file for upload";
this.Email_UploadingAttachment = "Is uploading the file!";
this.Email_LoadMsgBoxFailed = "Message Box Loading Error!";
this.Email_SeleMsgBox = "Please select message box!";
this.Email_SureMove = "Are you sure you want to move the selected message(s) to '{0}' message box ?";
this.Email_SelImport = "Please select e-mail address!";
this.Email_InvalidEmail = "The e-mail address or domain you enter is invalid!";
this.Cont_SelectUser = "Please select contacts!";
this.Cont_SelectOneUser = "Please only select one contact!";
this.Cont_DelUser = "Are you sure you want to delete?";
this.Cont_DelContGroup = "Are you sure you want to delete the contact group,it will delete all contacts in this group!";
this.Cont_SelContGroup = "Please select contact group";
this.Cont_SelOneContGroup = "Please select only one contact group!";
this.Cont_PermissionDenied = "Permission Denied!";
this.Cont_LogonAccount = "Please logon your account!";
this.Cont_EmptyContacts = "Are sure you want to empty the contacts?";
this.Cont_SelGroupMember = "Please select group member!";
this.Group_SelectOnlyOne = "Please select only one user!";
this.Group_SelectOne = "Please select one user!";
this.Group_UserDisabled = "The user(s) has been disabeled!";
this.Group_InputUsername = "Please input user name first!";
this.Group_InvalidLandingPage = "Invalid Landing page";
this.Group_LandingPageLostUsername = "Invalid Landing page, must contain username elements!!";
this.Group_LandingPageLostPassword = "Invalid Landing page, must contain password elements!";
this.Group_LogoInvalid = "The type does not match!";
this.Group_UploadLogo = "Please browse and select one file for upload!";
this.Group_InvalidLogoSize = "The logo size is not larger than 190×64 px";
this.Group_RemoveAlias = "Are you sure delete?";
this.Group_OwnerStorageAlarm = "Your account will have less than 1GB maximum storage, are you sure to continue?";
this.Group_AllocateStorageAlarm = "You have allocated no storage space to the sub-user. If you continue, the sub-user cannot upload files into this account; he/she can still upload files to a folder shared to him/her with full access right.";
this.Group_AllocateDownStorageAlarm = "You have allocated no download bytes/month to the sub-user. If you continue, the sub-user cannot download his/her files from his/her account; but he/she still can downad file from shared folder";
this.CreditCard_SelectType = "Please select a credit card type.";
this.CreditCard_Expired = "Card expired.";
this.CreditCard_InvalidCharacter = "Invalid character(s) in credit card number.";
this.CreditCard_InvalidNumber = "Credit Card : Incorrect number of digits.";
this.CreditCard_InvalidCardNumber = "Invalid credit card number.";
this.Deposit_Amount = "Please enter the amount.";
this.Deposit_AmountInivalid = "Amount is invalid!";
this.Deposit_AmountInivalid1 = "Amount must be between $1 to $2500!";
this.Deposit_FirstName = "Please input your first name!";
this.Deposit_LastName = "Please input your last name!";
this.Deposit_Address = "Please input your street address!";
this.Deposit_City = "Please input your city!";
this.Deposit_State= "Please select your state!";
this.Deposit_Country = "Please select your country!";
this.Deposit_ZipCode= "Please input your zip code!";
this.Deposit_Email= "Please input your email!";
this.Deposit_BillingPhone= "Please input your billing phone!";
}
var cultureResource = new cultureResourceDefinition();
var cultureResourceDict =
{ "share": ["share"],
"publish": ["publish"]
};
String.prototype.Format = function() {
if (arguments.length == 0) {
return this;
}
var format = this;
var strOutput = '';
for (var i = 0; i < format.length - 1; ) {
if (format.charAt(i) == '{' && format.charAt(i + 1) != '{') {
var index = 0, indexStart = i + 1;
for (var j = indexStart; j <= format.length - 2; ++j) {
var ch = format.charAt(j);
if (ch < '0' || ch > '9') break;
}
if (j > indexStart) {
if (format.charAt(j) == '}' && format.charAt(j + 1) != '}') {
for (var k = j - 1; k >= indexStart; k--) {
index += (format.charCodeAt(k) - 48) * Math.pow(10, j - 1 - k);
}
var swapArg = arguments[index];
strOutput += swapArg;
i += j - indexStart + 2;
continue;
}
}
strOutput += format.charAt(i);
i++;
}
else {
if ((format.charAt(i) == '{' && format.charAt(i + 1) == '{')
|| (format.charAt(i) == '}' && format.charAt(i + 1) == '}')) {
i++
}
strOutput += format.charAt(i);
i++;
}
}
strOutput += format.substr(i);
return strOutput;
}