Last change
on this file since 175 was
116,
checked in by waue, 15 years ago
|
build a lang choise sample
|
-
Property svn:executable set to
*
|
File size:
515 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | function choiseLanguage ( ) |
---|
3 | { |
---|
4 | while [ 1 ]; do |
---|
5 | echo "中文,請輸入\"zh\""; |
---|
6 | echo "Please type \"en\" for English"; |
---|
7 | read read_str; |
---|
8 | case "$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"; |
---|
22 | esac |
---|
23 | done |
---|
24 | } |
---|
25 | |
---|
26 | choiseLanguage |
---|
Note: See
TracBrowser
for help on using the repository browser.