From 52298159da3d1f87049a9d365825938825557d53 Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Tue, 20 Jul 2010 11:03:04 +0200 Subject: localize error messages --- not_found.cgi | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) (limited to 'not_found.cgi') diff --git a/not_found.cgi b/not_found.cgi index 3d8852c..a75febe 100755 --- a/not_found.cgi +++ b/not_found.cgi @@ -19,29 +19,36 @@ # along with dudle. If not, see . # ############################################################################ -require "cgi" -$cgi = CGI.new -require "config" -require "html" +require "dudle" +GetText.bindtextdomain("dudle",:path => "./locale/") -$h = HTML.new("Error") + +title = _("Poll Not Found") +$h = HTML.new(title) $h.add_css("/default.css","default",true) +str = [_("The requested Poll was not found."), + _("There are several reasons, why a Poll is deleted:"), + _("Somebody klicked on “Delete Poll” and deleted the poll manually."), + _("The Poll was deleted by the administrator because it was not accessed for a long time."), + _("If you think, the deletion was done by error, please contact the adminsistrator of the system."), + _("Return to dudle home and Schedule a new Poll")] + $h << <
-

Not Found

+

#{title}

- The requested Document was not found. + #{str[0]}

- There are several reasons, why a Poll is deleted: + #{str[1]}

    -
  • Somebody klicked on “Delete Poll” and deleted the poll manually.
  • -
  • The Poll was deleted by some cleanup-roundtrip.
  • +
  • #{str[2]}
  • +
  • #{str[3]}
- If you think, the deletion was done by error, please contact the adminsistrator of the system. + #{str[4]}

-- cgit v1.2.3