askbot-devel
askbot-devel copied to clipboard
How can I setting the tag localization?
git log -1 commit 9f741607fe2cfe3403ad61822dc8a63d5237bd24 Author: Evgeny Fadeev [email protected] Date: Sun Dec 20 15:25:25 2015 -0300
I can not add tag in Chinese.
It's say, please use letters, numbers and characters "-+.#"
Hi @hlj2722 , could you please paste some sample tag that does not work for you?
My settings : USE_I18N = True LANGUAGE_CODE = 'en' LANGUAGES = (('en', 'English'),('zh-cn','Simplified Chinese'))
ASKBOT_LANGUAGE_MODE = 'single-lang' #'single-lang', 'url-lang', 'user-lang'
MIDDLEWARE_CLASSES = ( #'django.middleware.gzip.GZipMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', ## Enable the following middleware if you want to enable ## language selection in the site settings. 'askbot.middleware.locale.LocaleMiddleware', #'django.middleware.cache.UpdateCacheMiddleware', 'django.middleware.common.CommonMiddleware', #'django.middleware.cache.FetchFromCacheMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', #'django.middleware.sqlprint.SqlPrintingMiddleware',
#below is askbot stuff for this tuple
'askbot.middleware.anon_user.ConnectToSessionMessagesMiddleware',
'askbot.middleware.forum_mode.ForumModeMiddleware',
'askbot.middleware.cancel.CancelActionMiddleware',
#'debug_toolbar.middleware.DebugToolbarMiddleware',
'askbot.middleware.view_log.ViewLogMiddleware',
'askbot.middleware.spaceless.SpacelessMiddleware',
'askbot.middleware.csrf.CsrfViewMiddleware',
)
When I add 'test' to the tag,it is work, but I add '测试' to the tag,According to the following error
@evgenyfadeev
@hlj2722 this helps, thank you, will have a look.
Even I am facing the same error and I was wondering how to fix this. When I try to add tag it doesn't allow me to enter it asks for letters, numbers and characters. The problem has been from long back. Is anyone there who can fix this issue. you may check here