django internationlisation

Posted by ha22109 on Stack Overflow See other posts from Stack Overflow or by ha22109
Published on 2010-03-18T09:56:28Z Indexed on 2010/03/18 10:01 UTC
Read the original article Hit count: 380

Filed under:
|

Hello I need to have multiple language support of my django admin application.I can create the messege files.But how can i change the text of my models.The heading ,fields etc .I m only able to change the static elements which are there in my template.

here is example of my class

class Mymodel(model.Models):
      id=models.IntegerField(primary_key=true)
      name=models.CharField(max_length=200)
      group=models.CharField(max_length=200)

      class Meta:
            managed=False
            verbose_name_plural='My admin'
            db_table='my_admin'

one more question.In my home page it is showing my verbose name 'My admin' which i mentioned.But when i go to list page it shows me the class name 'mymodel'.Why so.Can i changed that to

© Stack Overflow or respective owner

Related posts about django-models

Related posts about django