#!/bin/sh

set -x

EN_MSG="Your access code for the remote data access configuration is:"
FR_MSG="Votre code d'accès pour la configuration de l'accès à distance à vos données est:"
DE_MSG="Ihr Zugangscode für die Einrichtung des Daten-Fernzugriffs lautet:"
IT_MSG="Il codice di accesso per l'allestimento dell'accesso remoto ai dati è:"

CMD_FMT="{\\\\\"Language\\\\\":\\\\\"%s\\\\\",\\\\\"Description\\\\\":\\\\\"<font size=\\\\\\\\\\\\\"22\\\\\\\\\\\\\">%s<br></font><font size=\\\\\\\\\\\\\"36\\\\\\\\\\\\\"><b>$1</b></font>\\\\\"}"
CMD_EN=`printf "$CMD_FMT" "EN" "$EN_MSG"`
CMD_FR=`printf "$CMD_FMT" "FR" "$FR_MSG"`
CMD_DE=`printf "$CMD_FMT" "DE" "$DE_MSG"`
CMD_IT=`printf "$CMD_FMT" "IT" "$IT_MSG"`

pcb_cli "AP.LCD.addEvent(\"[$CMD_EN, $CMD_FR, $CMD_DE, $CMD_IT]\", 1, true, false)"
exit 0
