I have already read it in the docs. My problem isn't model names, it's the app's name I can't figure how to translate. Thanks for trying to help.
On Sep 20, 10:41 pm, Joshua Russo <josh.r.ru...@gmail.com> wrote: > On Sun, Sep 20, 2009 at 6:22 PM, SaiaGo <sai...@gmail.com> wrote: > > > I'm trying to make an Israeli site (which means it should be written > > in Hebrew) using the latest SVN and so far Django made it so easy I > > can't believe it's free. I got a simple magazine app with up and > > running in less then a day, and I barely know Python! > > My only problem so far is application names in admin pages. I can't > > seem to find a way to translate application names. > > > As far as I understand from the docs app names are chosen based on the > > directory name they reside in. so mysite/magazine should be > > "Magazine", which is what admin pages display. > > I tried making a .po file and translating "Magazine" (assuming my app > > is in "mysite/magazine") like so: > > msgid "Magazine" > > msgstr "מגזין" > > But this approach isn't working. > > > Is there a way to explicitly set an app name so I could set it to > > ugettext("Magazine") or some kind of special msgid I have to use to > > translate app names, or is this functionality not implemented yet?(In > > which case I would happily implement it myself) > > > And while I have the chance I would like to thank anyone who > > contributed to the design, programming, templates and translation of > > Django very very much. Projects like this make me hope for a better > > world where people rather share than sell, at least a better virtual > > world. And I hope I could contribute to Django in the future. > > You can use the verbose_name properties in a Meta class in your model. Just > keep in mind you will need to use the lazy translation function. > > http://docs.djangoproject.com/en/dev/topics/db/models/#id3 > <http://docs.djangoproject.com/en/dev/topics/db/models/#id3>http://docs.djangoproject.com/en/dev/topics/i18n/#topics-i18n(there's > a > section for Lazy translations) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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 -~----------~----~----~----~------~----~------~--~---