As you can see, django-pagination has polish (pl) translations - https://github.com/ericflo/django-pagination/tree/master/pagination/locale but I dont know, how to set polish language for django-pagination? (default english)
-
Is it the only place where the translation does not work? Do you have other pages in your django project where the translation is working? Are you using the default template of django-pagination? If not, can you show your template and the location in your project? – Bernhard Jan 11 '13 at 10:17
2 Answers
This should happen automatically.
Check your django settings if USE_I18N
is set to True
and if your LANGUAGE_CODE
is set to pl
.
For further information take a look at the django localization page. You can find a more detailed documentation of how the translation in django works here.
There's also a list of language codes, I guess pl
should be correct.

- 1,930
- 2
- 21
- 34
-
1Believe me - I have set USE_I18N=True and my LANGUAGE_CODE=pl in my settings, yet I still see english text: "previous", "next" ... – David Silva Jan 02 '13 at 23:05
You can either change the language setting of your browser, which will send the appropriate headers with each request and trigger the translation to be used, or you can provide a language setting selection so the user can choose their language.
You can roll your own code to provide this interface or use django-user-accounts.
You also might want to check that you have the appropriate middleware installed as described in this documenation.

- 1,930
- 2
- 21
- 34

- 890
- 8
- 10