mabox-tools/bin/mabox-langfiles

23 lines
373 B
Plaintext
Raw Normal View History

2020-08-24 17:24:46 +02:00
#!/bin/bash
#
#
FILE="$HOME/.config/mabox/.lang"
if [ ! -f "$FILE" ]; then
case $LANG in
pl*)
2020-08-25 00:35:23 +02:00
rsync -a /usr/share/mabox/lang/pl/ $HOME/
2020-08-24 17:24:46 +02:00
;;
es*)
2020-08-25 00:35:23 +02:00
rsync -a /usr/share/mabox/lang/es/ $HOME/
2020-08-24 17:24:46 +02:00
;;
2020-09-07 22:20:36 +02:00
en*)
rsync -a /usr/share/mabox/lang/en/ $HOME/
;;
2020-08-24 17:24:46 +02:00
*)
exit 0
;;
esac
touch $HOME/.config/mabox/.lang
fi