summaryrefslogtreecommitdiffstats
path: root/i18n-gen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'i18n-gen.sh')
-rwxr-xr-xi18n-gen.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/i18n-gen.sh b/i18n-gen.sh
index c55fdd5f..a530281e 100755
--- a/i18n-gen.sh
+++ b/i18n-gen.sh
@@ -34,13 +34,13 @@ function gen_pot() {
xgettext --language=Python --keyword=_ --output=${ROOT}i18n/glances.pot `find ${ROOT}glances/ -name "*.py"`
}
-OPERATION="$1"
-shift
-
-if [ -z "$1" ]; then
+if [ $# != 2 ]; then
usage
fi
+OPERATION="$1"
+shift
+
case "$OPERATION" in
init)
# If there is already a language file for specified language there is no need to generate a new one