source: nutchez-0.2/src/shell/lang/lang_en_US @ 230

Last change on this file since 230 was 215, checked in by shunfa, 14 years ago

英文語言檔初稿(已整合所有語言檔案)

File size: 15.3 KB
Line 
1#!/bin/bash
2# Program:
3#   Chinese Language file for NutchEZ
4# Author:
5#   Waue, Shunfa, Rock {waue, shunfa, rock}@nchc.org.tw
6# Version:
7#    1.0
8# History:
9#
10
11############ Lang for master_install -Start ############
12MI_main_echo_1="Welcome to use NutchEZ, this install program will create a new accunt and to assist you to setup the password of nutchuser."
13MI_main_echo_2="Please confirm the install infomation of above :1.Yes 2.No "
14MI_main_echo_3="Installed successfully!"
15MI_main_echo_4="You can visit the manage website :http://$MasterIP_Address:8080"
16
17## Lang for master_install_func.sh ##
18### [for choose_lang()] ###
19MI_choose_lang_1="Please select a language: (1)English (2)中文" 
20MI_choose_lang_2="Use (1/2):" 
21
22### [for check_root()]###
23MI_check_root_1="Please change root to execute it!!!" 
24MI_check_root_2="Identify is root" 
25 
26### [for check_systemInfo()]###
27MI_check_sys_1="check_systemInfo" 
28MI_check_sys_2="Your system information is:" 
29
30### [for install_packages()]###
31MI_install_pack_1="install_packages" 
32MI_install_pack_2="Check dependent packages" 
33MI_install_pack_if_1="It will install some packages (expect, ssh, and dialog)." 
34MI_install_pack_if_2="Please manually install expect, ssh, and dialog.Please manually install expect, ssh, and dialog." 
35 
36### [for check_nez_installed()] ###
37MI_check_nez_1="chcheck_nez_installed" 
38MI_check_nez_2="System already had NutchEz." 
39MI_check_nez_3="System does not has NutchEz." 
40 
41### [for check_sunJava()] ###
42MI_check_sunJava_1="check_sunJava" 
43MI_check_sunJava_2="NutchEz need Sun Java JDK 1.6.x or above version" 
44MI_check_sunJava_if_1="Java is not Sun version, plz install sun Java 1.6.X" 
45MI_check_sunJava_if_2="Please input your choice:" 
46MI_check_sunJava_if_3="(1)System don't have Sun Java (2)Sun Java is in other path (3)Exit" 
47MI_check_sunJava_if_4="Use (1/2/3): " 
48MI_check_sunJava_if_5="Please install Sun Java manually!" 
49MI_check_sunJava_if_6="Input Sun Java home path(ex. '/usr/lib/jvm/java-6-sun-1.6.0.12' or using default '/usr' ): " 
50MI_check_sunJava_if_7="It is not Sun Java! Please install Sun Java manually !" 
51MI_check_sunJava_if_8="Java version is too old (it need 1.6.X above)"
52MI_check_sunJava_if_9="System has Sun Java 1.6 above version." 
53MI_check_sunJava_if_10="Please install Sun JAVA 1.6.X or above version" 
54 
55### [for check_ssh()] ###
56MI_check_ssh_1="check_ssh" 
57MI_check_ssh_2="System has ssh." 
58MI_check_ssh_3="Please install ssh." 
59MI_check_ssh_4="System has ssh Server (sshd)." 
60MI_check_ssh_5="Please install ssh Server (sshd)." 
61 
62### [for check_dialog()] ###
63MI_check_dialog_1="check_dialog" 
64MI_check_dialog_2="System has dialog." 
65MI_check_dialog_3="Please install dialog." 
66     
67#
68MI_set_nutchuser_passwd_echo_1="Set password for nutchuser:"
69MI_set_nutchuser_passwd_echo_2="keyin the password again:"
70
71#
72MI_select_eth_echo_1="System has detectable network cards as follows:"
73MI_select_eth_echo_2="Please choose a netword card for NutchEZ. Use (1/2/3):"
74MI_select_eth_echo_3="Your choose is:$net_choice"
75MI_select_eth_echo_4="Master IP address is:$net_address"
76MI_select_eth_echo_5="Master MAC address is:$net_MacAddr"
77
78#
79MI_show_master_info_echo_1="Master IP address is:"
80MI_show_master_info_echo_2="Master MAC address is: "
81
82
83#
84MI_make_ssh_key_echo_1="Producing SSH Key... "
85MI_make_ssh_key_echo_2="SSH Key has been produced."
86
87#
88MI_set_haoop_site_echo_1="Setting hadoop-site.xml... "
89MI_set_haoop_site_echo_2="Setting hadoop-site.xml finished."
90
91#
92MI_set_nutch_site_echo_1="Setting nutch-site.xml..."
93MI_set_nutch_site_echo_2="Setting http.agent.url at line: $Line_NO..."
94MI_set_nutch_site_echo_3="Editing http.agent.url, delete line $Line_NO."
95MI_set_nutch_site_echo_4="Editing http.agent.url finished."
96MI_set_nutch_site_echo_5="Setting http.agent.email at line:$Line_NO."
97MI_set_nutch_site_echo_6="Editing http.agent.email, delete line $Line_NO."
98MI_set_nutch_site_echo_7="Editing http.agent.email finished."
99MI_set_nutch_site_echo_8="Editing hadoop-site.xmlfinished."
100
101#
102MI_format_HDFS_echo_1="Formatting HDFS..."
103MI_format_HDFS_echo_2="HDFS has been formatted."
104
105#
106MI_start_up_NutchEZ_echo_1="Start up NutchEZ..."
107
108#
109MI_set_hosts_echo_1="Set hosts on master"
110
111#
112MI_install_Nutch_echo_1="Master's IP address is:"
113MI_install_Nutch_echo_2="Master's Hostname is:"
114
115#
116MI_client_PassMasterIPAddr_echo_1="Edit MasterIP in client install file at line $Line_NO"
117MI_client_PassMasterIPAddr_echo_2="Editing MasterIP..."
118MI_client_PassMasterIPAddr_echo_3="MasterIP has been set."
119
120#
121MI_client_PassMaster_Hostname_echo_1="Edit master hostname in client install file at line $Line_NO"
122MI_client_PassMaster_Hostname_echo_2="Editing Hostname..."
123MI_client_PassMaster_Hostname_echo_3="Hostname has been set."
124
125#
126MI_make_client_install_echo_1="In function of make_client_install ..."
127
128#
129MI_start_up_tomcat_echo_1="Start up tomcat..."
130MI_start_up_tomcat_echo_2="Please wait about 10 sec..."
131MI_start_up_tomcat_echo_3="Tomcat has been started!"
132
133#
134MI_client_install_commands_echo_1="For client install, please refer commands as follows:"
135MI_client_install_commands_echo_2="cd ~"
136MI_client_install_commands_echo_3="mkdir nutchez_client_install"
137MI_client_install_commands_echo_4="cd nutchez_client_install"
138MI_client_install_commands_echo_5="scp -r nutchuser@$MasterIP_Address:/home/nutchuser/nutchez/source/* ."
139MI_client_install_commands_echo_6="sudo su"
140MI_client_install_commands_echo_7="./client_install"
141
142########## Lang for Master Install - End##########
143
144########## Lang for Client Install - Start##########
145
146# [Variables Declaration] #
147## Lang for client_install ##
148par_echo_1="Your master IP is:"
149par_echo_2="Is this information cooect? (yes/no): "
150par_echo_3="These parameters are correct."
151par_echo_4="Please edit these parameters in this file."
152
153## [Lang for client_install_fun.sh] ##
154### [for choose_lang()] ###
155choose_lang_1="Please choose your language: (1)English (2)中文"
156choose_lang_2="(1/2):"
157
158### [for check_root()]###
159check_root_1="Please Change root to execute it!!!"
160check_root_2="Identify is root."
161
162### [for check_systemInfo()]###
163check_sys_1="check_systemInfo"
164check_sys_2="Your system information are: "
165
166### [for install_packages()]###
167install_pack_1="install_packages"
168install_pack_2="Check dependent packages"
169install_pack_if_1="It will install some packages (expect, ssh, and dialog)."
170install_pack_if_2="Please manually install expect, ssh, and dialog."
171
172### [for check_nez_installed()] ###
173check_nez_1="chcheck_nez_installed"
174check_nez_2="System already had NutchEz."
175check_nez_3="System does not has NutchEz."
176
177### [for check_sunJava()] ###
178check_sunJava_1="check_sunJava"
179check_sunJava_2="NutchEz need Sun Java JDK 1.6.x or above version"
180check_sunJava_if_1="Java is not Sun version, plz install sun Java 1.6.X"
181check_sunJava_if_2="Please input your choice: "
182check_sunJava_if_3="(1)System don't have Sun Java (2)Sun Java is in other path (3)Exit"
183check_sunJava_if_4="plz input (1/2/3): "
184check_sunJava_if_5="Please install Sun Java manually!"
185check_sunJava_if_6="Input Sun Java home path(ex. '/usr/lib/jvm/java-6-sun-1.6.0.12' or using default '/usr' ): "
186check_sunJava_if_7="It is not Sun Java! Plz install Sun Java manually !"
187check_sunJava_if_8="Java version is too old (it need 1.6.X above)"
188check_sunJava_if_9="System has Sun Java 1.6 above version."
189check_sunJava_if_10="Please install Sun JAVA 1.6.X or above version"
190
191### [for check_ssh()] ###
192check_ssh_1="check_ssh"
193check_ssh_2="System has ssh."
194check_ssh_3="Please install ssh."
195check_ssh_4="System has ssh Server (sshd)."
196check_ssh_5="Please install ssh Server (sshd)."
197
198### [for check_dialog()] ###
199check_dialog_1="check_dialog"
200check_dialog_2="System has dialog."
201check_dialog_3="Please install dialog."
202
203### scp_master_nutchuser_sshkey() ###
204scp_sshkey_d1="scp_master_nutchuser_sshkey"
205scp_sshkey_d2="mkdir -p /home/nutchuser/"
206scp_sshkey_d3="scp nutchuser@master:~/.ssh /home/nutchuser/"
207scp_sshkey_expect_1="Password is error"
208scp_sshkey_s1="scp correct."
209scp_sshkey_s2="scp error,\n(1)plese check nutchuser password in server\n(2)nutchuser's authorized_keys in server\n(3)server's network status"
210scp_sshkey_d4="chown -R nutchuser:nutchuser /home/nutchuser/.ssh"
211
212### [for creat_nutchuser_account()] ###
213create_nutchuser_d1="creat_nutchuser_account"
214create_nutchuser_1="Plz input nutchuser password of master node: "
215create_nutchuser_2="plz input nutchuser password, again: "
216create_nutchuser_3="Two Passwords match."
217create_nutchuser_4="Two passwords don't match, please re-input nutchuser's password."
218create_nutchuser_s1="System already has nutchuser, change nutchuser password."
219create_nutchuser_s2="Create nutchuser and change password."
220
221### [for scp_packages()] ###
222scp_packages_d1="scp_packages"
223scp_packages_d2="chown -R nutchuser:nutchuser /opt/nutchez"
224scp_packages_d3="scp -r nutchuser@\$1:/opt/nutchez/NutchezForClientOf_\$Master_IP_Address.tar.gz /home/nutchuser/nutchez/source"
225
226### [for install_nutch_package()] ###
227install_nutch_package_d1="install_nutch_package"
228
229### [for recall_hostname_ip()] ###
230recall_hostname_ip_d1="recall_hostname_ip"
231recall_hostname_ip_1="net_address is"
232recall_hostname_ip_2="net_MacAddr is"
233recall_hostname_ip_3="System have multiple network device, which network use for this machine: "
234recall_hostname_ip_4="Please choice(1/2/3...): "
235recall_hostname_ip_d2="ssh nutchuser@\$1 echo \$net_address \$(hostname) \$net_MacAddr \>\> ~/nutchez/system/nutch_nodes"
236
237########## Lang for Client Install - End##########
238
239########## Lang for Master Remove - Start##########
240
241# check root
242MR_check_root_1="Please change root to execute it!!!"
243MR_check_root_2="Identify is root, let's continue!"
244
245# shutdown service
246MR_shutdown_service_echo_1="Stop the service of slaves..."
247MR_shutdown_service_echo_2="Stop the service of master..."
248MR_shutdown_service_echo_3="The service of Master"
249
250# remove_folders
251MR_remove_folders_echo_1="Deleting floders and files of NutchEZ..."
252MR_remove_folders_echo_2="Floders and files has deleted."
253
254# edit_hosts
255MR_edit_hosts_echo_1="Restoring /etc/hosts..."
256MR_edit_hosts_echo_2="/etc/hosts restoring finished."
257
258# user_delete
259MR_user_delete_echo_1="Deleting user: nutchuser..."
260MR_user_delete_echo_2="nutchuser has deleted"
261
262# main
263MR_main_echo_1="Warning - this program will remove nutchEZ, if you don't understard what this program to do, please press Ctrl+c to leave!"
264MR_main_echo_2="This program will delete all of nutchEZ's files and folders and delete user nutchuser."
265MR_main_echo_3="Are you sure to remove this node? 1.Yes 2.No "
266MR_main_echo_4="NutchEZ had removed!"
267MR_main_echo_5="You are cancelling this remove procedure!"
268MR_main_echo_6="If you want to remove NutchEZ of this node, please execute this program again."
269
270########## Lang for Master Remove - End ##########
271
272########## Lang for Client Remove - Start ##########
273# check root
274CR_check_root_1="Please change root to execute it!!!"
275CR_check_root_2="Identify is root!"
276
277# shutdown service
278CR_shutdown_service_echo_1="Shutdown all service of this node..."
279CR_shutdown_service_echo_2="The service of this node had shutdown."
280
281# remove_folders
282CR_remove_folders_echo_1="Deleting floders and files of NutchEZ..."
283CR_remove_folders_echo_2="Floders and files has deleted."
284
285# edit_hosts
286CR_edit_hosts_echo_1="Restoring /etc/hosts..."
287CR_edit_hosts_echo_2="/etc/hosts restoring finished."
288
289# user_delete
290CR_user_delete_echo_1="Deleting user: nutchuser..."
291CR_user_delete_echo_2="nutchuser has deleted"
292
293# main
294CR_main_echo_1="Warning - this program will remove nutchEZ, if you don't understard what this program to do, please press Ctrl+c to leave!"
295CR_main_echo_2="This program will delete all of nutchEZ's files and folders and delete user nutchuser."
296CR_main_echo_3="Are you sure to remove this node? 1.Yes 2.No "
297CR_main_echo_4="NutchEZ had removed!"
298CR_main_echo_5="You are cancelling this remove procedure!"
299CR_main_echo_6="If you want to remove NutchEZ of this node, please execute this program again."
300########## Lang for Client Remove - End ##########
301
302########## Lang for nutchez - Start ##########
303# [Variables Declaration] #
304## Lang for common ##
305user_error="You aren't nutchuser,please change to  \"nutchuser\" !!!"
306
307## [Lang for dialog] ##
308dia_back='= [NutchEz Management Interface] ~by NCHC ='
309dia_choose="Please choose what you want to do: "
310dia_exit="Exit"
311
312## [Lang for prepare_check] ##
313dia_pre_check_title_1="[file nutch_nodes]"
314dia_pre_check_msg_1="Failure:System can't find it!"
315dia_pre_check_title_2="[Update /etc/host]"
316dia_pre_check_yesno_1="You are frist execute NutchEz Management Interface"
317dia_pre_check_yesno_2="Please update /etc/hosts !!!"
318pre_check_echo_1="Please enter root's password to update /etc/hosts !!!"
319pre_check_echo_2="root password error,please make sure root's password is correct!!!"
320dia_pre_check_yesno_3="nutch_nodes has modified"
321
322## [Lang for main_menu()] ##
323dia_main_title_1="[Management Options]"
324dia_main_menu_1_1="Check cluster state"
325dia_main_menu_1_2="Set datanode & tasktracker"
326dia_main_menu_1_3="Set namenode & jobtracker"
327dia_main_menu_1_4="Startup/Shutdown/Restart Tomcat"
328dia_main_menu_1_5="Change Tomcat port"
329dia_main_menu_1_6="Change language"
330
331## [Lang for cluster_status()] ##
332cluster_status_echo_1="[IP] \t\t [Hostname] \t [Network] \t [Dtatnode & Tasktracker]"
333cluster_status_echo_2="Start check cluster..."
334cluster_status_read_1="press any key to continue..."
335dia_cluster_status_title_1="[Cluster state]"
336
337## [Lang for srver_setup()] ##
338dia_server_title_1="[Server State]"
339dia_server_msg_1="Namenode & Jobtracker shutdown"
340dia_server_msg_2="Jobtracker running, Namenode shutdown"
341dia_server_msg_3="Namenode running, Jobtracker shutdown"
342dia_server_msg_4="Namenode & Jobtracker running"
343dia_server_title_2="[Set Namenode & Jobtracker]"
344dia_server_menu_1_1="Startup Namenode & Jobtracker"
345dia_server_menu_1_2="Shutdown Namenode & Jobtracker"
346dia_server_menu_1_3="Restart Namenode & Jobtracker"
347
348## [Labg for cluster_setup()] ##
349dia_cluster_setup_title_1="[All or part of nodes]"
350dia_cluster_setup_menu_1_1="All nodes"
351dia_cluster_setup_menu_1_2="A part of nodes"
352dia_cluster_setup_title_2="[Select Datanode & Tasktracker Nodes]"
353dia_cluster_setup_check_1="Select Datanode & Tasktracker: "
354dia_cluster_setup_title_3="[Set Datanode & Tasktracker]"
355dia_cluster_setup_menu_2_1="Startup Datanodes & Tasktrackers"
356dia_cluster_setup_menu_2_2="Shutdown Datanodes & Tasktrackers"
357dia_cluster_setup_menu_2_3="Restart Datanodes & Tasktrackers"
358cluster_setup_echo_1="[Startup datanode & tasktracker]"
359cluster_setup_echo_error="Failure:can't connect to ssh "
360cluster_setup_echo_3="[Shutdown datanode & tasktracker]"
361cluster_setup_echo_5="[Restart datanode & tasktracker]"
362
363## [Lang for tomcat_swith()] #
364dia_tomcat_switch_title_1="[Tomcat state]"
365dia_tomcat_switch_msg_1="Tomcat is running !!!"
366dia_tomcat_switch_msg_2="Tomcat doesn't run !!!"
367dia_tomcat_switch_title_2="[The service of Tomcat]"
368dia_tomcat_switch_menu_1_1="Startup Tomcat"
369dia_tomcat_switch_menu_1_2="Stop Tomcat"
370dia_tomcat_switch_menu_1_3="Restart Tomcat"
371tomcat_switch_echo_1="Failure:System can't find it!"
372tomcat_switch_echo_3="[Start up Tomcat]"
373tomcat_switch_echo_4="[Shutdown Tomcat]"
374tomcat_switch_echo_5="[Restart Tomcat]"
375
376## [Lang for tomcat_port()] ##
377dia_tomcat_port_title_1="[Edit Tomcat servel.xml]"
378dia_tomcat_port_msg_1="Edit failure: Can't find the file."
379dia_tomcat_port_title_2="[Change Tomcat Port ]"
380dia_tomcat_port_input_1="Please enter tomcat port NO.(default 8080): "
381
382## [Lang for lang_switch()] ##
383dia_lang_title_1="[Change language]"
384dia_lang_menu_1_1="English"
385dia_lang_menu_1_2="中文"
386########## Lang for nutchez - End ##########
Note: See TracBrowser for help on using the repository browser.