You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
384 B
20 lines
384 B
#!/bin/sh
|
|
|
|
[ -f ~/.config/tox/qtox.ini ] && exit 0
|
|
|
|
ENABLED=yes
|
|
[ "$ENABLED" != "yes" ] && exit 0
|
|
|
|
. /usr/lib/ublinux/functions
|
|
. /usr/lib/ublinux/os-config
|
|
|
|
SOURCE=${SYSCONF}/config; [ -f ${SOURCE} ] && . ${SOURCE} 2>/dev/null
|
|
|
|
TOXLANG=$(cmdline_value lang)
|
|
[ -z "$TOXLANG" ] && TOXLANG=ru
|
|
mkdir -p ~/.config/tox
|
|
cat >~/.config/tox/qtox.ini <<EOF
|
|
[%General]
|
|
translation=$TOXLANG
|
|
EOF
|