tchanged default values for translate - scripts - various script and utils
(HTM) git clone git://z3bra.org/scripts
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit a8c339d5a6f30254d1ecd049bedcbb1f04b9f927
(DIR) parent 696d3da4c8a32367e673052ff21f25294180adeb
(HTM) Author: z3bra <willy@mailoo.org>
Date: Mon, 30 Mar 2015 23:07:05 +0200
changed default values for translate
Diffstat:
M translate | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/translate b/translate
t@@ -13,8 +13,8 @@ if test -z "$1"; then
fi
TEXT=$1
-SL=$(test -n "$SL" && echo "$SL" || echo auto)
-TL=$(test -n "$TL" && echo "$TL" || echo en)
+SL=${SL:-auto}
+TL=$(TL:-fr}
TRANSLATEURL='https://translate.google.com/'
UA='Mozilla 5.0'