From 3f8f6694ab5bde2b367c60cddf359b5489485eb8 Mon Sep 17 00:00:00 2001 From: Zhenlei Cai Date: Sun, 27 Apr 2014 12:33:41 -0700 Subject: Allow customization of the destional URL for the logo image Chinese locale message for since you are not logged in right now ... --- askbot/conf/skin_general_settings.py | 10 ++++++++++ askbot/locale/zh_CN/LC_MESSAGES/django.mo | Bin 142943 -> 143134 bytes askbot/locale/zh_CN/LC_MESSAGES/django.po | 3 ++- askbot/templates/widgets/logo.html | 4 ++-- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/askbot/conf/skin_general_settings.py b/askbot/conf/skin_general_settings.py index 11d201ad..2a4c76fa 100644 --- a/askbot/conf/skin_general_settings.py +++ b/askbot/conf/skin_general_settings.py @@ -16,6 +16,16 @@ GENERAL_SKIN_SETTINGS = ConfigurationGroup( super_group = CONTENT_AND_UI ) +settings.register( + values.StringValue( + GENERAL_SKIN_SETTINGS, + 'LOGO_DESTINATION_URL', + default = '/', + description = _('Destination URL for the site logo'), + ) +) + + settings.register( values.ImageValue( GENERAL_SKIN_SETTINGS, diff --git a/askbot/locale/zh_CN/LC_MESSAGES/django.mo b/askbot/locale/zh_CN/LC_MESSAGES/django.mo index 8d468276..6fb17c0e 100644 Binary files a/askbot/locale/zh_CN/LC_MESSAGES/django.mo and b/askbot/locale/zh_CN/LC_MESSAGES/django.mo differ diff --git a/askbot/locale/zh_CN/LC_MESSAGES/django.po b/askbot/locale/zh_CN/LC_MESSAGES/django.po index 8ed703d0..40f0106c 100644 --- a/askbot/locale/zh_CN/LC_MESSAGES/django.po +++ b/askbot/locale/zh_CN/LC_MESSAGES/django.po @@ -4504,7 +4504,8 @@ msgstr "发起问题" msgid "" "since you are not logged in right now, you will be asked to sign in or " "register after posting your question" -msgstr "" +msgstr "因为你还没有登录, 发表问题后你需要注册或登录." + #: templates/ask.html:25 #, python-format diff --git a/askbot/templates/widgets/logo.html b/askbot/templates/widgets/logo.html index 1b251432..afa0a95b 100644 --- a/askbot/templates/widgets/logo.html +++ b/askbot/templates/widgets/logo.html @@ -1,5 +1,5 @@ - -- cgit v1.2.3-1-g7c22