From 8995bb1650ba43a71036e30419f2fc89f6319984 Mon Sep 17 00:00:00 2001 From: Brian Simpson Date: Thu, 16 Jun 2011 14:21:06 -0700 Subject: [PATCH] Deleting accounts now works in languages other than English --- r2/r2/templates/prefdelete.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/r2/r2/templates/prefdelete.html b/r2/r2/templates/prefdelete.html index 7f7581694..08d4f2ce6 100644 --- a/r2/r2/templates/prefdelete.html +++ b/r2/r2/templates/prefdelete.html @@ -25,18 +25,21 @@ <% import random %> <%def name="areyousure(name)"> - <% yes, no = random.choice(((_("yes"), _("no")), (_("no"), _("yes")))) %> + <% yes, no = random.choice((("yes", "no"), ("no", "yes"))) %> + <% syes = _(yes) %> + <% sno = _(no) %> +
<%utils:round_field title="${_('are you sure?')}">
- +
- +