2020-08-24 17:24:46 +02:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
2022-05-27 15:52:10 +02:00
|
|
|
# Copy i18n files to ~ if available
|
|
|
|
# Run only once invoked from openbox autostart
|
|
|
|
LNG=${LANG:0:2}
|
2020-08-24 17:24:46 +02:00
|
|
|
FILE="$HOME/.config/mabox/.lang"
|
|
|
|
if [ ! -f "$FILE" ]; then
|
2022-05-27 15:52:10 +02:00
|
|
|
if [ -d "/usr/share/mabox/lang/$LNG" ]; then
|
|
|
|
rsync -a /usr/share/mabox/lang/$LNG/ $HOME/
|
|
|
|
else
|
2020-09-07 22:20:36 +02:00
|
|
|
rsync -a /usr/share/mabox/lang/en/ $HOME/
|
2022-05-27 15:52:10 +02:00
|
|
|
fi
|
2020-08-24 17:24:46 +02:00
|
|
|
touch $HOME/.config/mabox/.lang
|
|
|
|
fi
|
|
|
|
|