From 212778ba10f8e0a23f576d1caa5cc2837e9e2c2d Mon Sep 17 00:00:00 2001 From: Attila-Mihaly Balazs Date: Fri, 10 Jan 2014 20:56:07 +0200 Subject: [PATCH] Make FAQ admin setting descriptions translateable --- forum/settings/faq.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/forum/settings/faq.py b/forum/settings/faq.py index 16377f6..7dbbe4b 100644 --- a/forum/settings/faq.py +++ b/forum/settings/faq.py @@ -1,7 +1,8 @@ from base import Setting, SettingSet from django.forms.widgets import Textarea +from django.utils.translation import ugettext_lazy as _ -FAQ_SET = SettingSet('faq', 'FAQ page', "Define the text in the about page. You can use markdown and some basic html tags.", 2000, True) +FAQ_SET = SettingSet('faq', _('FAQ page'), _("Define the text in the about page. You can use markdown and some basic html tags."), 2000, True) FAQ_PAGE_TEXT = Setting('FAQ_PAGE_TEXT', u""" @@ -74,6 +75,6 @@ Allowing experienced members of this community to curate the questions and answe Please ask your question, help make our community better! """, FAQ_SET, dict( -label = "FAQ page text", -help_text = " The faq page. ", +label = _("FAQ page text"), +help_text = _("The faq page."), widget=Textarea(attrs={'rows': '25'}))) \ No newline at end of file -- 2.45.1