I'm doing a localization of a Django app.
The front-end website works fine and the Django admin site picks up the selected language as well.
But it only applies the language settings in some places and uses the default English versions of field and column names, even though these have been translated. Why? How can I make it use the translated names for column and field names in the admin interface?
Example:
class Order(models.Model):
OPTIONS = ( (0, _("Bank transfer") ), (1, _("Cash on delivery") ), )
user = models.ForeignKey(User, name=_("User") )
payment = models.IntegerField(choices=self.OPTIONS, name=_("Payment"))
For which I get:
- Translated standard admin texts such as "Welcome" and "Logout" at the top
- Translated SELECT options for the payment type
- NOT translated column names and form labels for the fields ("User", "Payment")
I'm using Django 1.0.2. The texts that are not getting translated did appear in the locale files along with those that work.
Sub-question: is it possible to localize the app names?