Hi Michal,
I'm not sure, but I would write the verbose names manually for each
field, wrapping each string inside a ugettext(...) function call like
so:
class Poll(models.Model):
...
field = models.CharField(ugettext("My verbose name"), max_length=40)
...
Thay way I could just use the
Hello,
I just developing my first aplication with internationalization. I need to get
all verbose_name values of the model for each language defined in
settings.LANGUAGES. I do it by this code defined inside model method :
current_lang = get_language()
names = {}
for lang in
Wiadomość napisana w dniu 2010-02-16, o godz. 22:12, przez Plovarna:
I just developing my first aplication with internationalization. I
need to get all verbose_name values of the model for each language
defined in settings.LANGUAGES. I do it by this code defined inside
model method :
Hello,
I just developing my first aplication with internationalization. I need to get
all verbose_name values of the model for each language defined in
settings.LANGUAGES. I do it by this code defined inside model method :
current_lang = get_language()
names = {}
for lang in
4 matches
Mail list logo