translating app-name

3 views
Skip to first unread message

va:patrick.kranzlmueller

unread,
Aug 3, 2006, 11:34:42 AM8/3/06
to django...@googlegroups.com
the language-code for my site is german, but the app-names and the
models are english.
in the admin-interface, it´s no problem to have german names for the
tables. but how can I change the names of my installed apps?

thanks,
patrick

Adrian Holovaty

unread,
Aug 3, 2006, 1:17:45 PM8/3/06
to django...@googlegroups.com

Hi Patrick,

Currently there's no way to specify a translation for an app name,
because Django just uses the name of your app's package. To solve your
problem, you could rename your app to a German word.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com

patrickk

unread,
Aug 3, 2006, 1:45:46 PM8/3/06
to django...@googlegroups.com
isn´t there any workaround?
renaming my app solves the problem ... but then I have to mix german
and english in my code.
moreover, considering internationalization I don´t think it´s good
practice to have german app-names.

Adrian Holovaty

unread,
Aug 3, 2006, 2:02:12 PM8/3/06
to django...@googlegroups.com
On 8/3/06, patrickk <pat...@vonautomatisch.at> wrote:
> isn´t there any workaround?
> renaming my app solves the problem ... but then I have to mix german
> and english in my code.
> moreover, considering internationalization I don´t think it´s good
> practice to have german app-names.

I agree that it's a messy solution, but it's the only workaround
available at this point. You could also hand-edit your admin index
template to change the app name to whatever you want (but the admin
breadcrumbs won't be affected).

We should definitely solve this problem in a nicer way. What do you
think? An __appname__ variable in the app's __init__.py file?

Ian Clelland

unread,
Aug 3, 2006, 3:01:05 PM8/3/06
to django...@googlegroups.com
On 8/3/06, Adrian Holovaty <holo...@gmail.com> wrote:
>
> We should definitely solve this problem in a nicer way. What do you
> think? An __appname__ variable in the app's __init__.py file?

Or possibly a __verbose_name__ variable, to use the same terminology
that we already use for models and fields?

Ian Clelland
<clel...@gmail.com>

patrickk

unread,
Aug 3, 2006, 3:05:43 PM8/3/06
to django...@googlegroups.com
I´ve been thinking about the __init__.py-file also.
doesn´t seem very continuous to do it there though. on the other
hand, I couldn´t think of any better solution ...
should I open a ticket for this one?

thanks,
patrick

Adrian Holovaty

unread,
Aug 3, 2006, 3:14:23 PM8/3/06
to django...@googlegroups.com

Nice suggestion -- that's a bit better, despite the underscore in there.

Reply all
Reply to author
Forward
0 new messages