diff --git a/bin/mabox-langfiles b/bin/mabox-langfiles new file mode 100755 index 0000000..c2b5a8c --- /dev/null +++ b/bin/mabox-langfiles @@ -0,0 +1,19 @@ +#!/bin/bash +# +# +FILE="$HOME/.config/mabox/.lang" +if [ ! -f "$FILE" ]; then + case $LANG in + pl*) + rsync -a /usr/share/mabox/lang/pl/ $HOME/.config/ + ;; + es*) + rsync -a /usr/share/mabox/lang/es/ $HOME/.config/ + ;; + *) + exit 0 + ;; + esac +touch $HOME/.config/mabox/.lang +fi +