From ec21a65b018884c78235ec16b61fd3241ecca68e Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 22 Sep 2010 14:54:43 +0200 Subject: Localize error message into danish and hungarian, hardcode to use the latter, and add FIXME on making it configurable. --- localmarkdown2sms | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'localmarkdown2sms') 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; -- cgit v1.2.3