Thank you.BarryK wrote:Alright, I have tried to resolve the problems with transLANG, seems OK:
http://distro.ibiblio.org/quirky/quirky ... 150309.pet
Tested
One small addition, a refresh
needed for the furious multi language translators only:
Insert
Code: Select all
refresh
Code: Select all
#150309 do not allow transLANG to be changed to anything other than current locale
# (note, if was allowed, would have to check /usr/lib/locale has it, but I still don't like idea of translating to a different language then current locale).
xtransLANG="$(grep '^transLANG' $CONFIG | cut -f 2 -d '=' | cut -f 1 -d ' ')"
if [ "$(echo -n "$ORIGLANG12" | grep "$xtransLANG")" == "" ];then
pupdialog --background '#FF8080' --msgbox "Sorry, but you cannot change transLANG to anything other than the current locale, '${ORIGLANG1}' or '${ORIGLANG12}'. Changing transLANG to '${ORIGLANG1}' in file ${CONFIG}" 0 0
sed -i "s%^transLANG=.*%transLANG=${ORIGLANG1} #${ORIGLANG1} or ${ORIGLANG12}%" $CONFIG
refresh #150309
fi