diff options
author | Jonas Smedegaard <dr@jones.dk> | 2010-09-22 14:54:43 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2010-09-22 14:54:43 +0200 |
commit | ec21a65b018884c78235ec16b61fd3241ecca68e (patch) | |
tree | 3ee1ba7be3eddb514d6a83f393bbfe1d491a0b82 /localmarkdown2sms | |
parent | 9824f6cd70bc42671529b8b95f4e50dd5fbd0cdd (diff) |
Localize error message into danish and hungarian, hardcode to use the latter, and add FIXME on making it configurable.
Diffstat (limited to 'localmarkdown2sms')
-rwxr-xr-x | localmarkdown2sms | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/localmarkdown2sms b/localmarkdown2sms index 4092e53..9b227e5 100755 --- a/localmarkdown2sms +++ b/localmarkdown2sms @@ -252,10 +252,13 @@ sub sendmsg { my $num_children = $#{ $reply{$key} } + 1; # How many children we'll create if (0 == $num_children) { + my $err_da = "Ikke genkendt som et nøgleord: Check venligst for tastefejl og prøv igen."; my $err_en = "Sorry, not recognized as a keyword: Please check spelling and try again."; + my $err_hu = "Érvénytelen kulcsszó. Kérjük, ellenőrizd és próbáld újra."; my $err_it = "Spiacente, non riconosco come parola chiave: Controlla l'ortografia e riprova."; my $errmsg = "[warning] $phone requested unknown keyword \"$key\"\nFull text: $inputstring"; - &sendmsg($sms_phone, $phone, "fallback message", "$key?\n$err_it\n$err_en"); +# FIXME: Make use of local errormsg optional and configurable. + &sendmsg($sms_phone, $phone, "fallback message", "$key?\n$err_hu\n$err_en"); ($sms_errto1) and &sendmsg($sms_errfrom, $sms_errto1, "warning", $errmsg); ($sms_errto2) and &sendmsg($sms_errfrom, $sms_errto2, "warning", $errmsg); exit; |