#!/usr/bin/perl -T
# This one is borrowed from Neo mail...
# Written by Steven Shiau <steven@nchc.org.tw> to use in DRBL for RedHat
# License: GPL
#

$lang_charset = 'iso-8859-1';

%delimiter =
   (
   dash_line => '------------------------------------------------------',
   star_line => '******************************************************',
   exclamation_line => "!!!!!!!!!!!!!!!!!!!!!!!!!",
   warning_line => "!!!!!!!!!!!!!!!!!!!!!! Warning !!!!!!!!!!!!!!!!!!!!!!!",
   );

%lang_deploy =
   (
   interactive_mode_prompt => 'The interactive mode let you supply the information of your DRBL environment.',
   domain_unset_prompt => 'DOMAIN is unset, please enter DOMAIN now:',
   nisdomain_unset_prompt => 'NISDOMAIN is unset, please enter NISDOMAIN now:',
   not_allowed_nisdomainname => 'is not allowed as a NISDOMAINNAME, enter it again!',
   set_domain_as => 'Set DOMAIN as',
   enter_client_hostname_prefix => 'Please enter the client hostname prefix:',
   not_allowed_hostname => 'is not allowed as a hostname prefix, enter it again!',
   set_client_hostname_prefix => 'Set the client hostname prefix as',
   no_NIC_setup => 'You did NOT setup any NIC for clients, or something wrong!',
   configured_nic => 'Configured ethernet card(s) found in your system:',
   we_can_NOT_continue => 'We can NOT continue...',
   but_not_private_IP_or_configured => 'but it\'s not private IP, not well configured, or not up now!!!',
   enter_public_IP_for_client_1 => "Enter the public IP for the client 1",
   wrong_entered_IP => "The IP you entered is wrong, please enter it again!",
   enter_gateway_for_client => "Enter the gateway for the client with DRBL IP",
   enter_netmask_for_client => "Enter the netmask for the client with DRBL IP",
   wrong_entered_netmask => "The NETMASK you entered is wrong, please enter it again!",
   set_client_public_IP_as => "We will set clients' public IP network parameters as:",
   we_will_skip => 'We will skip',
   for_internet_access_prompt => 'Which one is for public Internet accsess, not for DRBL connection ?',
   drbl_website_prompt => 'See http://drbl.nchc.org.tw/redhat or http://drbl.sf.net/redhat for details.',
   ethernet_port_for_internet => 'The ethernet port for Internet access is:',
   ethernet_port_for_DRBL => 'The ethernet port(s) for DRBL environment: ',
   only_1_IP_for_eth0 => 'Only 1 IP address for eth0, we will not use eth0 for DRBL environment!',
   no_DRBL_port => 'No ethernet port is available for DRBL environment!',
   collect_MAC_prompt => 
          "Now we can collect the MAC address of clients!\n".
          "If you want to fix the IP address of client, and you never did this, you shoud do it now!\n".
          "If you already have those MAC addresses of clients, you can put them into different group files (These files number is the same number of networks cards for DRBL service). In this case, you can skip this step.\n".
          "This step helps you to record the MAC addresses of clients, then divide them into different groups. It will save your time and reduce the typos.\n".
	  "The MAC addresses will be recorded turn by turn accroding to the boot of clients,\n".
	  "and they will be put into different files according to the network card in server, file name will like macadr-eth1.txt, macadr-eth2.txt...\n".
	  "Please boot the clients by order, make sure they boot from etherboot or PXE!\n". 
          "Do you want to collect them ? Say \"yes\" or \"y\" to continue, or any other letter to skip this!",
   ok_let_do_it => 'OK! Let\'s do it!',
   you_are_not_root => 'You are not root',
   ok_let_continue => 'OK! Let\'s continue...',
   fix_eth_IP_prompt => "Do you want to fix the IP addresses of clients connected to",
   MAC_file_prompt => "OK! Please tell me the file name which contains the MAC address of clients line by line for",
   range_prompt => "OK! Let's continue, we will set the IP address of clients by \"first boot gets IP first\" instead of fixed one!",
   client_number_connected_to_eth => "How many DRBL clients (PC for students) connected to",
   enter_the_no => "Please enter the number:",
   the_value_you_set => "The value you set is",
   set_the_IP_connected_to_eth => "We will set the IP address for the clients connected to",
   do_you_want_to_continue => "Do you want to continue ?",
   reenter_or_accept => "to re-enter it, or any other letter to accept this value and go on!",
   filename_you_set => "The file name you set is",
   by_MAC_file => "By the MAC address file you set, the IP addresses for the clients connected to",
   let_restart_it_again => "OK, let's restart it again!",
   layout_for_DRBL => "The Layout for your DRBL environment:",
   swap_prompt =>
              "If there is a local harddrive in your client machine,\n".
              "do you want to create swap file in it so that client has more memory to use ? (This step will NOT destroy any data in that harddisk!)\n".
              "Say \"yes\" or \"y\" to set them, or any other letter to continue!",
   try_to_create_swap =>
                "OK! We will try to create a swap file for your client if it has local ard drive !",
   max_swap_size =>
                "What's the maximun size (Megabytes) for the swap file ?\n".
                "We will try to allocate the size for you, but it's not enough, 60% of the free space will be used.",
   mode_for_client_init =>
              "Which mode do you want the clients to use after they boot (1/2) ?\n".
              "\"1\" for Graphic mode (X window system), this is default,\n".
              "\"2\" for Text mode.",
   client_text_mode => "The clients will use text mode when they boot.",
   client_graphic_mode => "The clients will enter graphic mode after booting.",
   login_mode_for_client =>
                  "Which mode do you want when client boots in graphic mode ?\n".
                  "login (0), auto login (1) or timed login (2)",
   auto_login => "The clients will auto login when they boot.",
   created_account_for_auto_login =>
                      "accounts will be created for the client machines to auto login.\n".
		      "The auto login ID is same as the hostname of client.\n".
                      "The information of accounts and password will be listed in file",
   time_for_countdown => "How many seconds for countdown ?",
   timed_login_prompt => "The clients will auto login if timed after",
   normal_login_prompt => "The clients will wait for user to login when they boot.",
   keep_client_setting_question => "Do you want to keep the old setting of existing DRBL clients if they exist ?",
   remove_client_setting => "We will remove all the setting of the DRBL clients if they already exist.",
   keep_client_setting => "We will try to keep the setting of the DRBL clients if they already exist.",
   set_client_root_passwd => "Do you want to set the root's password for clients instead of using same root's password copied from server ? (For better security)",
   whats_client_root_passwd => "New root's password for clients (It will not be echoed in the screen) ?",
   retype_root_passwd => "Retype new password (It will not be echoed in the screen).",
   sorry_passwd_not_match => "Sorry, passwords do not match",
   sorry_passwd_can_not_empty => "Sorry, password can not be empty",
   set_client_alias_IP =>
      "By using alias interface, every client can have 2 IPs,\n".
      "one of them is private IP for clients connected to DRBL server, and the other is public IP for clients directly connected to WAN from switch!\n".
      "Do you want to setup public IP for clients ?\n".
      "Say \"yes\" or \"y\" to set them, or any other letter to continue!",
   searching_installed_drbl_packages => "Searching the installed packages for DRBL server...This might take several minutes...",
   no_drbl_server_package_found =>
	      "No DRBL server package is installed!!!\n". 
	      "You should run another script to setup the DRBL server first!!!, Otherwise the system will NOT work!!!\n".
	      "Are you sure you want to continue ? Say \"yes\" or \"y\" to continue, or any other letter to quit!",
   but_you_will_see_errors => "But you will see a lot of error messages...!!!",
   smart_decision => "OK, smart decision, I will quit now!",
   finished_searching_installed_drbl_packages => "Finished searching the installed packages for DRBL server.",
   note_for_keep_client_setting => "Note! You are trying to keep the setting of DRBL clients if they exist, sometimes DRBL clients will go wrong when you finish this script! If so, rebooting those DRBL clients should make them work!",
   press_enter_to_continue => "Press Enter to continue... ",
   no_deploy_prompt =>
	      "All config files are created in this working directory,\n".
	      "but they are NOT deployed to system! \n".
	      "If you want to deploy them to system, do not use option \"-n\" or \"--no_deploy\"",
   ready_to_deploy =>
	      "We are now ready to deploy the files to system! \n".
	      "Do you want to continue ?\n".
	      "Say \"no\" or \"n\" to quit, or any other letter to continue!",
   overwrite_firewall_rule => "Warning! If you go on, your firewall rules will be overwritten during the setup!",
   backup_firewall_rule => "The original rules will be backuped as /etc/sysconfig/iptables.drblsave.",
   oh_quit_now => "Oh, I will quit now!",
   accept_or_enter => "Say \"Y\" to accept or other letter to enter each one by one...",
   failed_to_open_file => "Failed to open file",
   #
   analyzing_rpm_info => "Analyzing the rpm packages info... This might take several minutes...",
   no_drbl_server_package => "No DRBL server package is installed!!!",
   apt_pkg_not_installed =>  "\"apt\" package is NOT installed!!!", 
   we_are_now_ready_to => "We are now ready to",
   the_files_for_DRBL_server => "the files for DRBL server!",
   say_yes_to_continue_other_to_quit => "Say \"yes\" or \"y\" to continue, or any other letter to quit!",
   say_no_to_quit_other_to_continue => "Say \"no\" or \"n\" to quit, or any other letter to continue!",
   syncing_flush => "Now syncing - flush filesystem buffers...", 
   install_and_upgrade => "install and upgrade",
   IP_start_prompt => "What is the initial number do you want to use in the last set of digits in the IP for DRBL clients connected to this ethernet port (i.e. the initial value of d in the IP address a.b.c.d)",
   client_no_in_MAC_file => "The clients number in this file is",
   not_initial_value => "The one you input in NOT valid for initial value! Please enter it again!!!",
   can_not_be_the_last_IP => "can NOT be the last set of digits in IP!!!",
   can_not_be_the_first_IP => "can NOT be the first set of digits in IP!!!",
   set_client_system_select => "Do you want to set the boot prompt for clients ?",
   whats_client_system_boot_timeout => "How many 1/10 sec is the boot prompt timeout for clients ?",
   sorry_timeout_must_be_number => "The timeout must be a number (say 70)!!!",
   );

%lang_text =
   (  
   Say        => 'Say',
   or         => 'or',
   seconds    => 'seconds',
   WARNING    => 'WARNING',
   Accept     => 'Accept',
   as         => 'as',
   login      => 'login',
   clear      => 'clear',
   of         => 'of',
   logout     => 'logout',
   page       => 'page',
   move       => 'move',
   date       => 'date',
   size       => 'size',
   type       => 'type',
   filename   => 'filename',
   encoding   => 'encoding',
   download   => 'download',
   cancel     => 'cancel',
   continue   => 'continue',
   for        => 'for',
   save       => 'save',
   add        => 'add',
   delete     => 'delete',
   uninstall  => 'uninstall',
   done       => 'done',
   finish     => 'finish',
   );


%lang_word =
   (
   please_enter => "please enter",
   to_deploy_them => "to deploy them",
   root_passwd => "root\'s password",
   );
