Форум сайта python.su
В settings.py
LANGUAGE_CODE = 'ru'
HTTP_ACCEPT_LANGUAGE 'ru,en;q=0.9,ru;q=0.8'
LANGUAGES_BIDI ('he', 'ar', 'fa')
LANGUAGE_CODE 'ru'
LANGUAGE_COOKIE_NAME 'django_language'
Отредактировано (Янв. 12, 2011 19:53:11)
Офлайн
settings покажи
Офлайн
DEBUG = False
TEMPLATE_DEBUG = DEBUG
MANAGERS = ADMINS
TIME_ZONE = 'Europe/Moscow'
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'ru'
SITE_ID = 1
USE_I18N = True
MEDIA_ROOT = "/home/users2/v/vinil4you/domains/vinil4you.ru/static/"
MEDIA_URL = '/static/'
ADMIN_MEDIA_PREFIX = '/static/admin/'
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
# 'django.template.loaders.eggs.load_template_source',
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
)
ROOT_URLCONF = 'vinil4you_project.urls'
TEMPLATE_DIRS = (
'/home/users2/v/vinil4you/domains/vinil4you.ru/www/',
'/home/users2/v/vinil4you/domains/vinil4you.ru/www/portfolio/',
)
TEMPLATE_CONTEXT_PROCESSORS = (
"django.core.context_processors.auth",
"django.core.context_processors.request",
"grappelli.context_processors.admin_template_path",
)
INSTALLED_APPS = (
'grappelli',
'filebrowser',
'tinymce',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'vinil4you_project.cms',
)
TINYMCE_SPELLCHECKER = True
TINYMCE_JS_URL = "%sjs/tiny_mce/tiny_mce_src.js" % MEDIA_URL
TINYMCE_JS_ROOT = "%sjs/tiny_mce" % MEDIA_ROOT
TINYMCE_COMPRESSOR = False
TINYMCE_FILEBROWSER = True
GRAPPELLI_ADMIN_TITLE = 'Vinil4You manage system'
URL_FILEBROWSER_MEDIA = '/static/filebrowser/'
PATH_FILEBROWSER_MEDIA = MEDIA_ROOT +'filebrowser/'
FILEBROWSER_DIRECTORY = 'uploads/'
FILEBROWSER_DEFAULT_SORTING_BY = 'filetype_checked'
TINYMCE_DEFAULT_CONFIG = {
# General options
'mode' : "exact",
'elements' : "elm3",
'theme' : "advanced",
'skin' : "o2k7",
'skin_variant' : "silver",
'plugins' : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups,autosave",
# Theme options
'theme_advanced_buttons1' : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect,|,forecolor,backcolor",
'theme_advanced_buttons2' : "cut,copy,paste,pastetext,pasteword,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,charmap,emotions,iespell,media,advhr",
'theme_advanced_buttons3' : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,cite,abbr,acronym,del,ins,attribs,|,ltr,rtl,|,fullscreen",
'theme_advanced_toolbar_location' : "top",
'theme_advanced_toolbar_align' : "left",
'theme_advanced_statusbar_location' : "bottom",
'theme_advanced_resizing' : True,
# Example content CSS (should be your site CSS)
'content_css' : "css/content.css",
# Drop lists for link/image/media/template dialogs
'template_external_list_url' : "lists/template_list.js",
'external_link_list_url' : "lists/link_list.js",
'external_image_list_url' : "lists/image_list.js",
'media_external_list_url' : "lists/media_list.js",
'width': "700px",
'height' : "400px",
}
Офлайн
Подскажите в какую сторону копать. Самому понять в чем дело не получается
Офлайн
Попробуйте указать
LANGUAGE_CODE = 'ru-ru'
Офлайн
к сожалению не помогло.
При чем реакции не происходит при смене на любой другой язык.
Отредактировано (Янв. 17, 2011 03:07:38)
Офлайн
получил ответ от тех поддержки Jino =)
“Папка LC_MESSAGES должна быть обязательно написана буквами в верхнем регистре.”
Офлайн