diff options
Diffstat (limited to 'askbot/const/message_keys.py')
-rw-r--r-- | askbot/const/message_keys.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/askbot/const/message_keys.py b/askbot/const/message_keys.py new file mode 100644 index 00000000..f7f8e8e3 --- /dev/null +++ b/askbot/const/message_keys.py @@ -0,0 +1,19 @@ +""" +This file must hold keys for translatable messages +that are used as variables +it is important that a dummy _() function is used here +this way message key will be pulled into django.po +and can still be used as a variable in python files +""" +_ = lambda v:v + +#NOTE: all strings must be explicitly put into this dictionary, +#because you don't want to import _ from here with import * +__all__ = ['GREETING_FOR_ANONYMOUS_USER', ] + +#this variable is shown in settings, because +#the url within is configurable, the default is reverse('faq') +#if user changes url they will have to be able to fix the +#message translation too +GREETING_FOR_ANONYMOUS_USER = \ + _('First time here? Check out the <a href="%s">FAQ</a>!') |