// Sample code file: ChatResourceBundle.java

// Warning: This code has been marked up for HTML

/*
   Copyright (c) 2000 Novell, Inc.  All Rights Reserved.

   THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND TREATIES. 
   USE AND REDISTRIBUTION OF THIS WORK IS SUBJECT TO THE LICENSE AGREEMENT 
   ACCOMPANYING THE SOFTWARE DEVELOPMENT KIT (SDK) THAT CONTAINS THIS WORK. 
   PURSUANT TO THE SDK LICENSE AGREEMENT, NOVELL HEREBY GRANTS TO DEVELOPER A 
   ROYALTY-FREE, NON-EXCLUSIVE LICENSE TO INCLUDE NOVELL'S SAMPLE CODE IN ITS 
   PRODUCT. NOVELL GRANTS DEVELOPER WORLDWIDE DISTRIBUTION RIGHTS TO MARKET, 
   DISTRIBUTE, OR SELL NOVELL'S SAMPLE CODE AS A COMPONENT OF DEVELOPER'S 
   PRODUCTS. NOVELL SHALL HAVE NO OBLIGATIONS TO DEVELOPER OR DEVELOPER'S 
   CUSTOMERS WITH RESPECT TO THIS CODE. 
*/
 

package com.novell.Chat.resources;

//java imports
import java.util.*;
import java.awt.*;
import java.awt.event.*;

/**
 * Contains the displayable text used by the Chat snapin. 
 * Through java's ResourceBundle class, the appropriate text 
 * for the current locale will be retrieved from the corresponding 
 * resource before it is displayed on the user's screen.
 */
public final class ChatResourceBundle extends ListResourceBundle
{
   /**
    * The list of objects with their corresponding keys is stored here.
    */
   static final private Object[][] contents =
   {
      //Chat.java
      {"Port Attribute Clear Error","Unable to clear port attribute value for user object."},
      {"Chat","Chat"},
      {"User List Attribute Error","Unable to get the user list for the On-line Users Dialog."},
      {"Select IP Message","In order for your Chat request listener to be properly configured, please select the IP address of the workstation you are currently using."},
      {"User Identity Error","Unable to obtain the user's identity."},
      {"SnapinException","Chat - SnapinException"},
      {"NamespaceException","Chat - NamespaceException"},
      {"SnapinVetoException","Chat - SnapinVetoException"},
      {"PropertyVetoException","Chat - PropertyVetoException"},
      {"IncompatibleComponentException","Chat - IncompatibleComponentException"},
      {"No IP Address 1","Unable to find an IP address for the following user:  "},
      {"No IP Address 2","Chat may not be initialized for this user."},
      {"IPX Message 1","An IPX connection was detected for the following user:  "},
      {"IPX Message 2","Since Chat supports only the IP protocol stack, Chat will have to be disabled for this user."},
      {"Verification Error","Unable to verify connecting user's identity."},
      {"[Root] Trustee Error","Unable to change the trustee assignments for [Root]."},
      {"Chat Room Trustee Error","Unable to change the trustee assignments for the following Chat Room:  "},
      {"Set Attribute Error","Unable to set the value of the following attribute:  "},
      {"Add Attribute Error","Unable to add a value to the following attribute:  "},
      {"Get Attribute Error","Unable to get the value of the following attribute:  "},
      {"Schema Error 1","This occured before any modifications where made."},
      {"Schema Error 2","This occured while attempting to add the Chat Room Class to the schema."},
      {"Schema Error 3","This occured while attempting to add two new attributes to the user class."},
      {"Schema Error 4","This occured while attempting to modify the [Root] rights to two Chat attributes."},
      {"Schema Confirmation","The schema for the {0} tree has not yet been extended for the Chat snapin.\nWould you like to extend it now?"}, //{0} = Tree Name
      {"Schema Success","Schema update successfull!"},
      {"Extention Failure 1","Unable to extend the schema."},  
      {"Extention Failure 2","The Chat snapin will not function properly until the schema can be extended."},
      {"Duplicate Name Error","An object with the same name already exists at the selected context.\nPlease enter a new name."},
      {"Chat Room Socket Error","Unable to create chat room due to a socket error."},
      {"Create Room Error","Unable to create the Chat Room object."},
      {"Init Chat Error","Unable to initialize Chat for your current user object.\nYou will be unable to use Chat until the problem can be fixed."},
      {"Not Enabled","{0} does not have chat enabled."},  //{0} = The user's name
      {"Request User","Ask {0} to chat?"},  //{0} = The user's name
      {"Select IP Request","In order to send the chat request to the correct workstation, please select the IP address where this user can be found."},
      {"Chat Room Empty","This chat room is currently empty."},
      {"One in Chat Room","There is currently 1 user in this room."},
      {"Number in Room","There are currently {0} users in this room."}, //{0}=Number of users in room
      {"Enter Room?","Enter {0}?"},  //{0} = The name of the room
      {"Delete Room?","All users present in this chat room will be disconnected.\nAre you sure that you want to delete it?"},
      {"Room Deleted","Chat Room deletion canceled by user."},
      {"Status-Init","Initializing chat..."},
      {"Status-Ready","Chat ready"},   
      {"Status-Connect","Connecting..."},
      {"Status-Chatting","Chat session established"},
      {"Status-Disabled","Chat disabled"},
      {"Status-ShutDown","Shutting down chat..."},
      //ChatClient.java
      {"Client Error-EstabCom","Attempt to establish communications failed."},
      {"Client Error-ReEstabCom","Attempt to transfer to a new server failed."},
      {"Client Error-Force Down","Attempt to force the shutdown of this Chat Room failed."},
      {"Client Error-Disconnect","Attempt to disconnect user failed."},
      {"Client failure","Unable to establish a chat connection with "},
      {"Message Timeout","Message Timeout"},
      {"ERROR","ERROR"},
      {"Client Disconnected","You have just been disconnected from your chat session."},
      //ChatDialog.java
      {"Dialog Title","Novell Chat"},
      {"Information","Information"},
      {"End Chat Button","&End Chat"},
      //ChatDisplayIcon.java
      {"ChatDisplayIcon_Name","Chat Display Icon Snapin"},
      {"ChatDisplayIcon_Description","Displays the icon for the Chat Room objects."},
      //DisableChatMenuSnapin.java
      {"DisableChatMenuSnapin_Name","Disable/Enable Chat Menu Item"},
      {"DisableChatMenuSnapin_Description","Allows the user to Disable/Enable Chat."},
      {"Disable Chat Menu","Disable &Chat"},
      {"Disable Chat Message","Disabling Chat will make it so that other users cannot ask you to chat.\nAre you sure you want to disable Chat?"},
      {"Disable Chat","Disable &Chat"},
      {"Enable Chat","Enable &Chat"},
      {"Enable Chat Message","Enabling Chat will once again allow users to ask you to chat.\nAre you sure you want to enable Chat?"},
      //OnLineUserSnapin.java
      {"OnLineUserSnapin_Name","On-Line Chat Users Dialog Menu and Toolbar"},
      {"OnLineUserSnapin_Description","Allows the user to display the On-Line Chat Users Dialog"},      
      {"On-line Users Menu","On-line &Users"},
      {"On-line Users Button Tooltip", "On-line Users"},      
      //ChatPanel.java
      {"Send Button","Send"},
      //ChatPopupMenuSnapin.java
      {"ChatPopupMenuSnapin_Name","Chat Popup Menu Snapin"},
      {"ChatPopupMenuSnapin_Description","Allows the user to request to chat with either another user or a chat room."},
      {"Chat Menu","&Chat"},
      //ChatRoomPage.java
      {"Room Info Border","Chat Room Information"},
      {"Room Users Border","Current Users in Chat Room"},
      {"Owner Label","Owner:"},
      {"IP Label","IP Address:"},
      {"Port Label","Port:"},
      {"Disconnect Button","&Disconnect"},
      {"Confirm Disconnect","Disconnect {0} from this chat room?"},  //{0} = The user's name
      //ChatRoomPageSnapin.java
      {"General Tab","General"},
      {"Information Tab","Information"},
      {"ChatRoomPageSnapin_Name","Chat Room Page Snapin"},
      {"ChatRoomPageSnapin_Description","Displays the information for Chat Room objects."},
      //ChatRoomSnapins.java
      {"ChatRoomSnapins_Name","Chat Room Class Snapins"},
      {"ChatRoomSnapins_Description","Allows the creation of a Chat Room object from the New menu item and from the toolbar."},
      {"New Chat Room ToolTip","New Chat Room"},
      //ChatRoomUserTable.java
      {"User Name Heading","User Name"},
      {"Start Time Heading","Start Time"},
      {"Network Address Heading","Network Address"},
      {"Distinguished Name Heading","Distinguished Name"},
      {"Column 1 Size", "90"},
      {"Column 2 Size", "105"},
      {"Column 3 Size", "125"},
      {"Column 4 Size", "268"},
      //ChatServer.java
      {"Server Error 1","Unable to open a chat server socket for {0}.\n\nThis is probably due to a lack of free ports in the attempted range.\nTry again later."},  //{0} = The Object acting as server
      {"Server Error 3","Unable to open a chat server socket for {0}.\n\nThe IP address {1} is unknown."},  //{0} = The Object acting as server,  {1} = The IP Address
      {"null Server Error","Attempted to use a null server socket for {0}.\nThis has resulted in the shutdown of this server."},  //{0} = The Object acting as server
      {"Socket IO Error","An error has occured in the chat server for {0}."}, //{0} = The Object acting as server
      {"Close Server Error","An error occured while attempting to close the chat server for {0}."},  //{0} = The Object acting as server
      {"User Joined","{0} has joined the chat room."},  //{0} = The user's name
      {"Ask to Chat","{0} is requesting to chat with you.\nDo you accept?"},  //{0} = The user's name
      //ChatServiceSnapin.java
      {"ChatServiceSnapin_Name","Chat Service Snapin"},
      {"ChatServiceSnapin_Description","Starts a chat server that listens for connections from other users."},
      //ChatStatusBarSnapin.java
      {"ChatStatusBarSnapin_Name","Chat Status Bar Snapin"},
      {"ChatStatusBarSnapin_Description","Displays the status of ConsoleChat"},
      //ChooseIPDialog.java
      {"Cancel Button","Cancel"},
      {"Select Button","Select"},
      {"IP Dialog Message 1","Multiple IP Addresses were found for {0}."}, //{0} = The user's name
      {"IP Dialog Message 2","This usually happens when the user is logged in on more than one workstation."},
      //ChatUserDlg.java
      {"User Dialog Message 1","You are currently logged in under more than one user."},
      {"User Dialog Message 2","Which user's list would you like to use while monitoring the on-line status of other users?"},
      {"User Dialog Title","On-Line Chat Users"},
      {"scrollPane Width", "290"},
      {"scrollPane Height", "80"},
      //Communications.java
      {"Com Error-No Com","Unable to establish communications."},
      {"Com Error-Socket","Error closing socket."},
      {"Com Error-Timeout","User failed to respond."},
      {"Com Status-Con Request","Received connection request."},
      {"Com Status-Request Acc","Request accepted"},
      {"Com Status-Request Rej","Request rejected"},
      {"Not Interested","{0} is not interested in chatting at this time."},  //{0} = The user's name
      {"Com Status-Got Request","Received reconnection request."},
      //CreateChatRoomDialog.java
      {"Name Label","Name:  "},
      {"OK Button","OK"},
      {"CreateChatRoom Title","New Chat Room"},
      {"Invalid Name","The entered name is invalid.  Please choose another."},
      {"nameField Width", "130"},
      {"nameField Height", "17"},
      //InfoPanel.java
      {"User's in room","User's in Chat Room:"},
      {"InfoPanel scrollPane Width", "500"},
      {"InfoPanel scrollPane Height", "300"},
      //OnlineUsersDlg.java
      {"On-Line Heading","On-Line"},
      {"Update Frequency Label","Auto-Update Frequency:"},
      {"mins","mins"},
      {"Start Update Button","Start Update"},
      {"Stop Update Button","Stop Update"},
      {"Beep on Change Box","Beep on Change"},
      {"Online Dialog Title","On-line Chat Users ({0})"},  //{0} = The user's name whose list is being used
      {"Chat Button","&Chat"},
      {"Add User Button","&Add User"},
      {"Remove User Button","&Remove User"},
      {"Update Button","&Update"},
      {"Save List Button","&Save List"},
      {"Hide Window Button","&Hide Window"},
      {"User Info Error","Unable to load user information for preferred user {0}."}, //{0} = The user's name
      {"userScrollPane Width", "360"},
      {"userScrollPane Height", "180"},
      {"Table column 1 Width", "60"},
      {"Table column 2 Width", "90"},
      {"Table column 3 Width", "150"}
   };

   /**
    * Overrides ListResourceBundle's getContents().
    */
   public Object[][] getContents()
   {
      return contents;
   }
}