source: nutchez-0.2/src/test/language_choise.sh @ 213

Last change on this file since 213 was 213, checked in by shunfa, 14 years ago
  1. 修改master_install source 語言鏈結
  2. 修改移除時, 還原/etc/hosts至安裝NutchEZ前的版本
  3. 修改中文語言檔對應的變數
  • Property svn:executable set to *
File size: 557 bytes
Line 
1#!/bin/bash
2function choiseLanguage ( )
3{
4while [ 1 ]; do
5echo "中文,請輸入\"zh\"";
6echo "Please type \"en\" for English";
7read read_str;
8case "$read_str" in
9  en)
10        ln -sf ./install_lang.en ./install_lang
11  echo "You choise English! 死洋鬼子A"
12        break;
13        ;;
14  zh)
15#        ln -sf ./install_lang.zh ./install_lang
16        ln -sf lang/lang_zh_TW lang_link
17  echo "你選擇了中文"
18        break;
19        ;;
20  *)
21        echo "中文,請輸入\"zh\"";
22        echo "Please type \"en\" for English";
23esac
24done
25}
26
27choiseLanguage
Note: See TracBrowser for help on using the repository browser.