
function m(frm,key,val) {NetPhone.ocxSetMessage(frm,key,val);}
function m1(key,val) {NetPhone.ocxSetMessage("MainForm",key,val);}
function m2(key,val) {NetPhone.ocxSetMessage("AdminManageForm",key,val);}
function m3(key,val) {NetPhone.ocxSetMessage("SrvRoomForm",key,val);}
function m4(key,val) {NetPhone.ocxSetMessage("SrvUserForm",key,val);}
function c(key,val) {NetPhone.ocxSetColor(key,val);}
function p(key,val) {NetPhone.ocxSetParam(key,val);}


//[MainForm]
m1("BarConnecting","Connecting (%s:%d)...")
m1("BarConnectingOcx","Connecting...")
m1("BarConnected","Connected")
m1("BarDisconnect","No Connection")
m1("BarEnteringHall","Entering Hall...")
m1("BarEnteredHall","You are in the Hall.")
m1("BarEnteringRoom","Entering (%s)...")
m1("BarExitingRoom","Exiting Room...")
m1("BarPressToTalk","Press CTRL to talk")
m1("BarWaitForMic","Waiting for Microphone...")
m1("BarMicOn","Microphone ON")
m1("BarMicOff","Microphone OFF")
m1("BarMicTimeStatus","Time Remaining: %d  sec")
m1("BarSetupVolume","Adjusting Volume")
m1("BarSetupMic","Adjusting Microphone")
m1("BarSilentModeStatus","Silent Mode: %d sec")
m1("BarUniVoice","DeshiChat")
m1("BarErrSoundSystem","Sound System Failure.")
m1("BarUserIsTalking","%s is talking.")

m1("btnUserPropHint","Press to setup your properties")
m1("btnCreateRoomHint","Press to create room")
m1("btnAdjustMicHint","Press to adjust microphone")
m1("btnAdjustVolumeHint","Press to adjust volume")

m1("DefRoomName","%s room")

m1("ErrAccessDenied","Access denied.|Any modifications made to the UniVoice software is against international copyright laws.")
m1("ErrSoundSystem","1. Please make sure that you have a sound card. |2. Make sure that your sound card is installed and working properly.")
m1("ErrRoomNotFound","Room not found. You will be taken back into the hall.")
m1("ErrRoomAdd","Error creating room.")
m1("ErrUserBanned","User has been banned.")
m1("ErrUserNotFound","No such user exists.")
m1("ErrUserName","Sorry, this name is taken. Please choose another one.")
m1("ErrUserPassword","Bad password.")
m1("ErrUserCount","Too many users are connected. Please try later.")
m1("ErrNotValidUserName","User name contains illegal characters. You can use letters and numbers.")
m1("ErrorDomain","You are not allowed to run UniVoice from site %s. |Please apni webmaster k bole code ta nite paren.")

m1("ErrUserNoPermition","Access denied by room owner.")
m1("ErrImNotSent","This user has ignored you. Please try again later.")
m1("ErrInviteReqNotSent","This user has ignored you. Please try again later.")

m1("ErrSameRoomName","Room name already exists.")
m1("ErrChangeUserProp","You are an Administrator. If you want to change your properties, then you have to go back to the Hall.")
m1("ErrLoadSkin","Cannot load UniVoiceSkin.dll")
m1("ErrCtrlPressing","You cannot press CTRL so quickly.")

m1("ErrNotConnected","Apnar connection hoini aber login korun.")
m1("ErrNotLoggedIn","User must login first.")
m1("ErrNotInTheHall","User must be in the Hall.")
m1("ErrVersion","You are running an old version of client. |It is not compatible with the server.|Update this client software please.")

m1("MsgAccessDenied","Access Denied.")
m1("MsgUserBanned","You have been banned from this server.")
m1("MsgUserBannedByTimer","You have been kicked out for %s minutes.")
m1("MsgJoinToPrivateRoomReq","Waiting for response...")
m1("MsgJoinToPrivateRoomDecline","Sorry your request to join this private room was denied.")
m1("MsgOneToOneReq","You are waiting for the answer of the other party...")
m1("MsgOneToOneAccept","Invite request was accepted.")
m1("MsgOneToOneDecline","Your private chat request was declined.")
m1("MsgKickOut","Sorry, you have been kicked out by the administrator.")
m1("MsgSilentMode","You are now in Silent Mode for 30 seconds.|If you were in silent mode you are getting an additional 30 seconds.")
m1("MsgBroadcastCaption","Broadcast message")
m1("MsgRoomDestroyed","Sorry, the room has been destroyed.")
m1("MsgCanNotKickoutAdmin","Sorry, you cannot kick out the administrator.")
m1("MsgCanNotBanAdmin","Sorry, you cannot ban the administrator.")
m1("MsgCanNotSilentAdmin","Sorry, you cannot punish the administrator.")
m1("MsgRoomNotSelected","Please select a room from the list to enter a room.")
m1("MsgDeclineCaption","Declined")
m1("MsgErrorCaption","Error")
m1("MsgIgnoreUser","You have ignored this user. To communicate again with this user, you must unignore.")
m1("MsgNoConnection","Sorry, could not connect to the server. Possible Reasons:|1. Please check to make sure you have a connection to the internet.|2. Please check with your network administrator.")
m1("MsgIpAddress","The %s's IP number is : %s.")
m1("MsgHdNumber","The %s's HD# is : %d.")
m1("MsgRegNumber","The %s's ban registry key is : %s.")
m1("MsgUserSilented","User %s is already in silent mode. |Do you wish to add another additional 30 seconds?")
m1("MsgUserWillBan","Banning a user will not allow him to return anymore. |Are you sure you want to ban user %s ?")
m1("MsgUserSilentedCannotCommunicate","You cannot communicate with the user because they are in silent mode. |You must wait until their silent mode expires.")
m1("MsgUserIgnoredCannotCommunicate","You cannot communicate with an ignored user. |You must first unignore.")
m1("MsgTestMicResultOk","Your microphone setting is correct.")
m1("MsgTestMicResultNotOk","Your microphone is mutted. Do you want to unmute ?")
m1("MsgTestMicResultCaption","Test")
m1("MsgLoginFirst","You are not logged in. Please, login first.")
m1("MsgBanWarning","WARNING ! YOU WILL BE BANNED FROM THIS ROOM/SITE IF YOU CONTINUE YOUR CONDUCT.")
m1("MsgUserJoinRoom","%s has joined in the room")
m1("MsgUserLeaveRoom","%s has left the room")
m1("MsgImBlocked","Sorry the selected user is currently not accepting instant messages. Please try again later.")
m1("MsgOneToOneBlocked","Sorry the selected user is currently not accepting one-to-one invitations. Please try again later.")
m1("MsgSystem","System")
m1("MsgLowerHand","Your hand has been lowered by the room owner.")

m1("mnuCreateRoom","Create a room...")
m1("mnuCheckMic","Testing your Microphone.")
m1("mnuEnterRoom","Enter the room")
m1("mnuBackToHall","Back to &Hall")
m1("mnuBackToRoom","Back to &Room")

m1("mnuUserProp","&User Properties...")
m1("mnuIgnoreUser","&Ignore User")
m1("mnuUnignoreUser","&Unignore User")
m1("mnuRefresh","Refresh")
m1("mnuKickOutUser","&Kickout User")
m1("mnuBanByTimer","&Ban User by Timer")
m1("mnuBanUserByReg","Ban User by &REG")
m1("mnuBanUserByHd","Ban User by &Machine")
m1("mnuBanUserByBoth","Ban User by Both")
m1("mnuBanWarning","Send ban warning")
m1("mnuSilentUser","&Silent User")
m1("mnuBroadcastRoom","&Broadcast...")
m1("mnuReconnect","Re&connect")
m1("mnuAbout","&About...")
m1("mnuAdminSubmenu","A&dmin Menu")
m1("mnuBroadcastHall","&Broadcast...")
m1("mnuGetIPAddress","Get &IP Address")
m1("mnuGetHdNo","Get User's &HD#")
m1("mnuGetRegKey","Get &Registry#")
m1("mnuManage","&Manage...")
m1("mnuTeacherStartSpeak","St&art Speaking")
m1("mnuTeacherStopSpeak","St&op Speaking")
m1("mnuSetVolume","Adjust Volume")
m1("mnuSetRecLevel","Adjust Microphone")
m1("mnuAudiosettings","Audio Settings")
m1("mnuSortByName","Sort By Name")
m1("mnuSortByNameAsc","Ascending")
m1("mnuSortByNameDesc","Descending")
m1("mnuUserStatus","My Status")
m1("mnuUserStatusReady","Online")
m1("mnuUserStatusAway","Away")
m1("mnuUserStatusBusy","Busy")
m1("mnuUserStatusLunch","Lunch")
m1("mnuRejectIM","Reject Instant Message")
m1("mnuRejectOneToOne","Reject One-To-One")
m1("mnuHideRoom","Hide Room")
m1("mnuRoomNotices","Hide Room Notices")
m1("mnuLowerHand","Lower Hand")
m1("mnuLowerAllHand","Lower All Hands")

m1("UrlHelp","http://www.deshichat.com")
m1("UrlManageHelp","www.deshichat.com")
m1("UrlBanner","http://www.deshichat.com/vcfaq")

//[BanForm]
m("BanForm","Caption","Ban User")
m("BanForm","btnOkCaption","&OK")
m("BanForm","btnCancelCaption","&Cancel")
m("BanForm","lblDurationCaption","Duration;")
m("BanForm","lblMinutesCaption","Minutes")

//[UserForm]
m("UserForm","Caption","User Properties")

//[RoomForm]
m("RoomForm","Caption","Create Room")
m("RoomForm","chkPrivateCaption","&Private Room")
m("RoomForm","chkClassRoomCaption","&Classroom")

//[AboutForm]
m("AboutForm","Caption","About UniVoice (Uniperson Technologies)")

//[AdminManageForm]
m2("Caption","Manage UniVoice - Admin Control")
m2("pnlUserNameCaption","Name")
m2("pnlUserTypeCaption","Type")
m2("pnlRoomNameCaption","Name")
m2("pnlRoomIDCaption","ID")
m2("pnlRoomVisibleCaption","Visible")
m2("mnuRoomNewCaption","&New...")
m2("mnuRoomDeleteCaption","&Delete...")
m2("mnuRoomPropCaption","&Properties...")
m2("mnuUserNewCaption","&New...")
m2("mnuUserDeleteCaption","&Delete...")
m2("mnuUserPropCaption","&Properties...")
m2("mnuHelp","&Help...")
m2("utAdmin","Admin")
m2("utSubAdmin","Sub Admin")
m2("utUser","Normal User")
m2("MsgCanNotDeleteAdminSelf","Admin can not delete his own account.")
m2("MsgUserNameExists","A user by that name already exists.")
m2("MsgDeleteUserConfirm","Are you sure you want to delete user '%s' ?")
m2("MsgDeleteRoomConfirm","Are you sure you want to delete room '%s' ?")
m2("ErrAccessDenied","Access denied.|Any modifications made to the UniVoice software is against international copyright laws.")

//[SrvRoomForm]
m3("Caption","Room")
m3("ChkVisibleCaption","&Visible")
m3("lblNameCaption","&Name:")
m3("lblIdCaption","&ID:")
m3("btnOkCaption","&OK")
m3("btnCancelCaption","&Cancel")
m3("MsgRoomIdExists","Room ID already exists.")
m3("MsgRoomNameExists","Room name already exists.")

//[SrvUserForm]
m4("Caption","User")
m4("lblNameCaption","&Name:")
m4("lblPasswordCaption","&Password:")
m4("lblTypeCaption","&Type:")
m4("btnOkCaption","&OK")
m4("btnCancelCaption","&Cancel")
m4("utAdmin","Admin")
m4("utSubAdmin","Sub Admin")
m4("utUser","Normal User")
m4("MsgUserNameExists","A user by that name already exists.")
m4("MsgPasswordRequired","Password is required.")

//[AskReqForm]
m("AskReqForm","Caption1","Message")
m("AskReqForm","Caption2","Send a join request to the private room owner")
m("AskReqForm","Caption3","Send an invitation for one-to-one talk")

//[AskRespForm]
m("AskRespForm","Caption1","*** NOT USED YET ***")
m("AskRespForm","Caption2","Join request from %s")
m("AskRespForm","Caption3","Invite request from %s")
m("AskRespForm","lblInfoCaption1","*** NOT USED YET ***")
m("AskRespForm","lblInfoCaption2","User %s wants to join the current room. Do you accept ?")
m("AskRespForm","lblInfoCaption3","Do you accept one-to-one talk invitation ?")
m("AskRespForm","lblSubjectCaption","Subject:")

//[ImForm]
m("ImForm","Caption","Instant Message: %s")
m("ImForm","CaptionTyping","User %s is typing...")
m("ImForm","MsgClearConfirm","Are you sure you want to clear all the content from the window ?")
m("ImForm","MsgIgnoreUser","You are currently holding a chat session with %s. Do you wish to still ignore ? ")

//[WaitForm]
m("WaitForm","Caption","Waiting...")

//[ChatFrame]
m("ChatFrame","aFontBoldHint","Bold")
m("ChatFrame","aFontItalicHint","Italic")
m("ChatFrame","aFontUnderlineHint","Underline")
m("ChatFrame","aFontColorHint","Font Color")
m("ChatFrame","aSmileyHint","Smileys")
m("ChatFrame","cmbFontHint","Font Type")
m("ChatFrame","cmbFontSizeHint","Font Size")

//[COLORS]
c("BGCOLOR_ABOUTFORM",0xD8E9EC)
c("BGCOLOR_ASKREQFORM",0xD8E9EC)
c("BGCOLOR_ASKRESPFORM",0xD8E9EC)
c("BGCOLOR_CHATRICHEDIT",0xFFFFFF)
c("BGCOLOR_IMFORM",0xD8E9EC)
c("BGCOLOR_IMRICHEDIT",0xFFFFFF)
c("BGCOLOR_HALLLIST",0xF4FCFC)
c("BGCOLOR_ROOMLIST",0xffffff)
c("BGCOLOR_MAINFORM",0xffffff)
c("BGCOLOR_MANAGEFORM",0xD8E9EC)
c("BGCOLOR_MESSAGEFORM",0xD8E9EC)
c("BGCOLOR_ROOMFORM",0xD8E9EC)
c("BGCOLOR_SRVROOMFORM",0xD8E9EC)
c("BGCOLOR_SRVUSERFORM",0xD8E9EC)
c("BGCOLOR_USERFORM",0xD8E9EC)
c("BGCOLOR_WAITFORM",0xD8E9EC)
c("BGCOLOR_BANFORM",0xD8E9EC)

c("COLOR_VOICELEVEL1",0x46EE46)
c("COLOR_VOICELEVEL2",0x009900)
c("COLOR_VOICELEVEL3",0x009999)
c("COLOR_VOICELEVEL4",0x00009D)

//[PARAMS]
p("CANCHANGEUSER",0)
p("CANCHAT",1)
p("CANCREATEROOM",0)
p("CANENTERROOM",1)
p("CANEXITROOM",1)
p("CANIGNORE",1)
p("CANIM",0)
p("CANONETOONE",0)
p("MAXSPEACHTIME",360)

ocxSetParam("VOICEQUALITY",0);

