Well, I guess the question was just too stupid or unclear, but I have
figured it out now myself. For the benefit of Goolge users, here is
my answer. It is actually really easy:
class SearchForm(forms.Form):
names = forms.CharField(label= _("Names"))
places = forms.CharField(label = _("Places"))
dates = forms.CharField(label = _("Dates"))
works = forms.CharField(label = _("Works"))
As for the paginator, I ended up doing this clumsy thing:
<{% trans "Page"%} {{ results.number }} /
{{ results.paginator.num_pages}}>
Chris
On Oct 21, 10:19 pm, chris <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I am trying to get I18N working for a website. So far the language
> selection, custom messages and their translation in templates using {%
> trans "" %} etc. works like a charm. However I can't quite figure out
> how to get things like the Paginator (it displays <Page 1 of 5> and
> such stuff) or field names in forms generated with the forms module.
>
> Code such as the following:
>
> class SearchForm(forms.Form):
> names = forms.CharField()
> places = forms.CharField()
> dates = forms.CharField()
>
> This will field display on the form with labels like "Names",
> "Places", "Dates" and so on, but I can't figure out how to tell the
> i18n framework that this should be translated.
> Any help appreciated!
>
> Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---