mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 23:39:11 -05:00
fix to subreddit creation when user's language is not english
This commit is contained in:
@@ -36,7 +36,7 @@ function update_title(elem) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<%def name="radio_type(name, text)">
|
||||
<%def name="radio_type(name, title, text)">
|
||||
<% full_name = "type_" + name %>
|
||||
<tr>
|
||||
<td class="nowrap nopadding">
|
||||
@@ -47,7 +47,7 @@ function update_title(elem) {
|
||||
checked="checked"
|
||||
%endif
|
||||
/>
|
||||
<label for="${full_name}">${name}</label>
|
||||
<label for="${full_name}">${title}</label>
|
||||
</td>
|
||||
<td class="leftpad"><span class="gray">${text}</span></td>
|
||||
</tr>
|
||||
@@ -152,10 +152,11 @@ function update_title(elem) {
|
||||
</th>
|
||||
<td colspan="2" class="prefright">
|
||||
<table >
|
||||
${radio_type(_("public"), _("anyone can view and submit"))}
|
||||
${radio_type(_("restricted"),
|
||||
${radio_type("public", _("public"), _("anyone can view and submit"))}
|
||||
${radio_type("restricted", _("restricted"),
|
||||
_("anyone can view, but only contributors can submit links"))}
|
||||
${radio_type(_("private"), _("only contributors can view and submit"))}
|
||||
${radio_type("private", _("private"),
|
||||
_("only contributors can view and submit"))}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -34,7 +34,8 @@ ${self.RenderPrintable()}
|
||||
%if thing.show_spam:
|
||||
<li><b>[
|
||||
%if c.user_is_admin:
|
||||
${"auto" if thing.autobanned else ""}banned by ${thing.banner}
|
||||
${"auto" if thing.autobanned else ""}banned
|
||||
${("by %s" % thing.banner) if thing.banner else ""}
|
||||
%elif thing.moderator_banned and thing.banner:
|
||||
${strings.banned_by % thing.banner}
|
||||
%else:
|
||||
|
||||
Reference in New Issue
Block a user