askbot-devel icon indicating copy to clipboard operation
askbot-devel copied to clipboard

How can I setting the tag localization?

Open hlj2722 opened this issue 9 years ago • 5 comments

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 "-+.#"

hlj2722 avatar Jan 14 '16 11:01 hlj2722

Hi @hlj2722 , could you please paste some sample tag that does not work for you?

evgenyfadeev avatar Feb 25 '16 20:02 evgenyfadeev

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

clipboard

hlj2722 avatar Mar 02 '16 05:03 hlj2722

@evgenyfadeev

hlj2722 avatar Mar 09 '16 13:03 hlj2722

@hlj2722 this helps, thank you, will have a look.

evgenyfadeev avatar Mar 09 '16 14:03 evgenyfadeev

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

garyfelt76 avatar Jul 31 '18 05:07 garyfelt76