Hello,

I can not get my translation working. Structure:

* minicms - CMS project
* userproject - project using minicms

- minicms
|-plugins
||-contactform
|||-locale
|||-templatetags
|||-forms.py

* forms.py:

# -*- coding: utf-8 -*-
from django import forms
from django.utils.translation import ugettext_lazy as _

class ContactForm(forms.Form):
    name = forms.CharField(
        label=_("Your name"),
        help_text=_("Your name will be displayed"),
        max_length=100
    )
...

* locale/sk/LC_MESSAGES/django.po:
...
#: forms.py:7
msgid "Your name"
msgstr "Vaše meno"
...

* compiled into django.mo

* userproject/settings.py:
LANGUAGE_CODE = 'sk'

LANGUAGES = (
    ('en', 'English'),
    ('sk', 'Slovensky'),
)
USE_I18N = True
USE_L10N = True

Displayed form is in english. I tried to copy locale directory to all possible places (minicms, minicms/plugins, userproject, ...) but everything is only in english :(

Thanks,
Martin

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@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