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

Last change on this file since 192 was 116, checked in by waue, 14 years ago

build a lang choise sample

  • Property svn:executable set to *
File size: 515 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  echo "你選擇了中文"
17        break;
18        ;;
19  *)
20        echo "中文,請輸入\"zh\"";
21        echo "Please type \"en\" for English";
22esac
23done
24}
25
26choiseLanguage
Note: See TracBrowser for help on using the repository browser.