On Fri, Mar 6, 2009 at 11:21 PM, Malcolm Tredinnick
wrote:
>
> On Fri, 2009-03-06 at 07:01 -0800, patrickk wrote:
>> so, now here´s a little tutorial for translating app-names throughout
>> the admin-interface:
>
> Nice summary. :-)
>
>> 3. change app-names in
On Sat, 2009-03-07 at 12:21 +1100, Malcolm Tredinnick wrote:
[...]
> All of those are bugs (the same bug: not marking app name for
> translation). If you'd like to open a ticket and drop in a patch, it's
> an more-or-less obviously correct set of changes to make.
>
> Put it in the
On Fri, 2009-03-06 at 07:01 -0800, patrickk wrote:
> so, now here´s a little tutorial for translating app-names throughout
> the admin-interface:
Nice summary. :-)
> 3. change app-names in index.html /// on line 18 replace {% blocktrans
> with app.name as name %}{{ name }}{% endblocktrans %}
so, now here´s a little tutorial for translating app-names throughout
the admin-interface:
1. define the app-names: I´m currently using the __init__-file of my
blog-application. it looks like this:
from django.utils.translation import ugettext_lazy as _
_(u'auth')
_(u'configuration')
you´re talking about the models name, not the applications name ...
@nadya: with changing index.html the way you did it works for me as
well.
for changing the breadcrumbs (which obviously is a "must" if you
change the app-names) you have to change change_list.html and
change_form.html
replace
i dont understand..
do u wanna mean your app name?
if u wanna tell about your app name in admin panel
i think u can use
*USE_I18N = True
in settings.py*
and
* class Meta:
verbose_name_plural = "Your App Name"
in models.py*
try it and write me answer please
2009/3/4 patrickk
I put my translations in the django.po file and also changed a little
bit the admin's index.html template.
Replaced this:
{% blocktrans with app.name as name %}{{ name
}}{%
endblocktrans %}
I put my translations in the django.po file and also changed a little
bit the admin's index.html template.
Replaced this:
{% blocktrans with app.name as name %}{{ name
}}{%
endblocktrans %}
well, I tried some things within the last couple of hours (like
changing upper/lowercase), but it still doesn´t work.
although automatic extraction of app-names would be perfect,
translating the names manually is totally fine for me (if it works).
it just want to get rid of that language-mix
On Wed, 2009-03-04 at 23:30 -0800, patrickk wrote:
> great - a gleam of hope ... but what do you mean with "put each of
> your app names into a file ..."? what file? where?
Any file. It doesn't matter. Some file that "makemessages" will pick up
and read, so best make it a .py file. It could be
just tried to write the app-names to my applications __init__-file.
the po-file is generated fine, but the translation still doesn´t work.
On Mar 5, 8:30 am, patrickk wrote:
> great - a gleam of hope ... but what do you mean with "put each of
> your app names into a file
great - a gleam of hope ... but what do you mean with "put each of
your app names into a file ..."? what file? where? can I use
__init__.py within my app and just put the app-names there and mark
them as to translate?
I already tried to translate the app-names by using a translation-file
On Wed, 2009-03-04 at 09:39 -0800, patrickk wrote:
> so far, it doesn´t seem possible to translate the app-names within the
> admin-interface, which results in a strange index-site with mixed
> languages.
>
> any updates on this issue? any ideas?
If you put each of your app names into a file
so far, it doesn´t seem possible to translate the app-names within the
admin-interface, which results in a strange index-site with mixed
languages.
any updates on this issue? any ideas?
thanks,
patrick
--~--~-~--~~~---~--~~
You received this message because you
Rajesh Dhawan wrote:
> On Aug 20, 9:49�am, patrickk <[EMAIL PROTECTED]> wrote:
> > how do I provide the translations ... ???
>
> You will have to put the translations for your app names manually (as
> Malcolm confirms above, they won't be automatically extracted for
> you). But once you provide
On Aug 20, 9:49 am, patrickk <[EMAIL PROTECTED]> wrote:
> how do I provide the translations ... ???
You will have to put the translations for your app names manually (as
Malcolm confirms above, they won't be automatically extracted for
you). But once you provide the app name translation, it
On Wed, 2008-08-20 at 15:53 +0200, Jarek Zgoda wrote:
> Wiadomość napisana w dniu 2008-08-20, o godz. 15:33, przez Rajesh
> Dhawan:
>
> > On Aug 20, 8:43 am, patrickk <[EMAIL PROTECTED]> wrote:
> >> how?
> >>
> >
> > You can see the following "blocktrans" fragment in django/contrib/
> >
Wiadomość napisana w dniu 2008-08-20, o godz. 15:33, przez Rajesh
Dhawan:
> On Aug 20, 8:43 am, patrickk <[EMAIL PROTECTED]> wrote:
>> how?
>>
>
> You can see the following "blocktrans" fragment in django/contrib/
> admin/templates/admin/index.html:
>
>
> {% blocktrans with app.name as name
how do I provide the translations ... ???
On Aug 20, 3:33 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> On Aug 20, 8:43 am, patrickk <[EMAIL PROTECTED]> wrote:
>
> > how?
>
> You can see the following "blocktrans" fragment in django/contrib/
> admin/templates/admin/index.html:
>
>
> {%
On Aug 20, 8:43 am, patrickk <[EMAIL PROTECTED]> wrote:
> how?
>
You can see the following "blocktrans" fragment in django/contrib/
admin/templates/admin/index.html:
{% blocktrans with app.name as name %}{{ name }}{%
endblocktrans %}
-Rajesh D
how?
On Aug 15, 10:43 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> On Aug 15, 10:17 am, patrickk <[EMAIL PROTECTED]> wrote:
>
> > is there any possibility to translate the name of an application for
> > the admin-interface? it´s a bit disturbing if every models is
> > translated to german
On 8/3/06, Ian Clelland <[EMAIL PROTECTED]> wrote:
> On 8/3/06, Adrian Holovaty <[EMAIL PROTECTED]> 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
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
Am 03.08.2006 um 20:02 schrieb Adrian Holovaty:
>
> On 8/3/06, patrickk
On 8/3/06, Adrian Holovaty <[EMAIL PROTECTED]> 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
On 8/3/06, patrickk <[EMAIL PROTECTED]> 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
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.
Am 03.08.2006 um 19:17 schrieb Adrian Holovaty:
>
> On 8/3/06,
On 8/3/06, va:patrick.kranzlmueller <[EMAIL PROTECTED]> wrote:
> 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?
Hi
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
--~--~-~--~~~---~--~~
You
28 matches
Mail list logo