Hi list,

I've installed the django-rosetta app in my project. It works pretty
well except that it seems to give precedence to its own translations.

For example, in the admin interface "Home" is translated as "Racine" in
french. This translation comes from:
$project/rosetta/locale/fr/LC_MESSAGES/django.mo
whereas it should be taken in:
$site-packages/django/conf/locale/fr/LC_MESSAGES/django.po
When rosetta is disabled, "Home" is normally translated as "Accueil".

Here is my i18n config in settings.py :
TEMPLATE_CONTEXT_PROCESSORS = (
    ...,
    "django.core.context_processors.i18n",
    ...,
)
MIDDLEWARE_CLASSES = (
    'django.middleware.gzip.GZipMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.locale.LocaleMiddleware',
    ...,
)
LANGUAGE_CODE = 'en'
LOCALE_PATHS = (
    os.path.join(PROJECT_ROOT_PATH, '../opencarto/locale'),
    os.path.join(PROJECT_ROOT_PATH, '../templates/locale'),
)

I don't know the internals of gettext but I've always believed it is
able to map a reference string in the code to the proper .mo/.po file.
Am I wrong? If not is there something wrong with my i18n settings?


Regards,
Gilles

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to