|
@@ -659,11 +659,11 @@ send_a_message-dialog() {
|
|
|
if [ $? -eq 0 ]; then
|
|
if [ $? -eq 0 ]; then
|
|
|
if [ -n "$message" ]; then
|
|
if [ -n "$message" ]; then
|
|
|
if [[ "$message" =~ [\<\&\>\"\'\\] ]]; then
|
|
if [[ "$message" =~ [\<\&\>\"\'\\] ]]; then
|
|
|
- dialog --backtitle "$E_ERR - $E_INVALID" --title "$E_ERR" --msgbox "$E_INVALID" 0 0
|
|
|
|
|
|
|
+ dialog --backtitle "$E_ERR - $E_INVALID" --title "$E_ERR" --ok-label "$C_SEND_MSG" --msgbox "$E_INVALID" 0 0
|
|
|
continue
|
|
continue
|
|
|
fi
|
|
fi
|
|
|
if [ ${#message} -gt 1024 ]; then
|
|
if [ ${#message} -gt 1024 ]; then
|
|
|
- dialog --backtitle "$E_ERR - $E_TOO_LONG" --title "$E_ERR" --msgbox "$E_TOO_LONG" 0 0
|
|
|
|
|
|
|
+ dialog --backtitle "$E_ERR - $E_TOO_LONG" --title "$E_ERR" --ok-label "$C_SEND_MSG" --msgbox "$E_TOO_LONG" 0 0
|
|
|
continue
|
|
continue
|
|
|
fi
|
|
fi
|
|
|
echo "$M_SENDING"
|
|
echo "$M_SENDING"
|
|
@@ -674,7 +674,7 @@ send_a_message-dialog() {
|
|
|
if [ "$RETURN" == "302" ]; then
|
|
if [ "$RETURN" == "302" ]; then
|
|
|
return 0
|
|
return 0
|
|
|
else
|
|
else
|
|
|
- dialog --backtitle "$E_ERR - $RETURN" --title "$E_ERR" --msgbox "$M_FAIL\n $E_CODE$RETURN" 0 0
|
|
|
|
|
|
|
+ dialog --backtitle "$E_ERR - $RETURN" --title "$E_ERR" --ok-label "$C_SEND_MSG" --msgbox "$M_FAIL\n $E_CODE$RETURN" 0 0
|
|
|
return $RETURN
|
|
return $RETURN
|
|
|
fi
|
|
fi
|
|
|
fi
|
|
fi
|