aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid <dbphillipsnz@gmail.com>2014-04-10 22:04:54 +1200
committerDavid <dbphillipsnz@gmail.com>2014-04-10 22:04:54 +1200
commitc79d85e506e944b22a54432324f39e5a49a5fc0d (patch)
tree2e538ad0d54a2bcc4b649328b7618f56959f8ece
parent7b49e4ee85ba6688dfcd6fd1a0bc7699f56c1c1f (diff)
downloadparamano-c79d85e506e944b22a54432324f39e5a49a5fc0d.tar.xz
Fixed locale check bug
-rwxr-xr-xtrayfreq2
-rwxr-xr-xtrayfreq-set2
2 files changed, 2 insertions, 2 deletions
diff --git a/trayfreq b/trayfreq
index 8686b41..b193049 100755
--- a/trayfreq
+++ b/trayfreq
@@ -1,6 +1,6 @@
#!/usr/bin/bash
-lang=$(locale | grep LANGUAGE | cut -d= -f2 | cut -d_ -f1)
+lang=$(locale | grep LANG | cut -d= -f2 | cut -d_ -f1)
if [ lang = "fr" ]; then
trayfreq-fr $@
diff --git a/trayfreq-set b/trayfreq-set
index f4099c6..c8a94f7 100755
--- a/trayfreq-set
+++ b/trayfreq-set
@@ -1,6 +1,6 @@
#!/usr/bin/bash
-lang=$(locale | grep LANGUAGE | cut -d= -f2 | cut -d_ -f1)
+lang=$(locale | grep LANG | cut -d= -f2 | cut -d_ -f1)
if [ lang = "fr" ]; then
trayfreq-set-fr $@