Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How to translate Lookup values in Django?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
houmie  
View profile  
 More options Oct 3 2012, 12:32 pm
From: houmie <hou...@gmail.com>
Date: Wed, 03 Oct 2012 17:32:07 +0100
Local: Wed, Oct 3 2012 12:32 pm
Subject: Re: How to translate Lookup values in Django?

Thanks guys. I came across myself across django-modeltranslation and I
must it works very well.

On 03/10/12 16:34, Jair Trejo wrote:

> I use django-datatrans for catalog translation, i'ts not perfect but
> good enough for me.

> El martes, 2 de octubre de 2012 20:09:46 UTC-5, Houmie escribi�:

>     Thanks Juan.

>     Well that is certainly possible. But then we have also some other
>     lookups like the country, which is a lookup of 139 values. It
>     would be difficult to keep that in the model itself. ;-)
>     But you are right about smaller lookups.

>     Regards,
>     Houman

>     On 3 Oct 2012, at 01:57, Juan Pablo Mart�nez <jpm...@gmail.com
>     <javascript:>> wrote:

>>     |GENDER_CHOICES = (
>>     ('male', _(u'Male')),
>>     ('female', _(u'Female')),
>>     )
>>     gender=  models.CharField(_(u'Sex'),  max_length=10, choices=GENDER_CHOICES)|

>>     On Tue, Oct 2, 2012 at 7:23 PM, Houmie <hou...@gmail.com
>>     <javascript:>> wrote:

>>         Django has an excellent support for internationalization, any
>>         English expression within Models, Forms, View or template can
>>         easily be marked for translation. However I came across an
>>         interesting situation I don't know how to deal with.

>>         I have a Gender lookup (Male, Female). Now even if I
>>         translated the site into German, the Gender dropdown is still
>>         pointing to the values saved in database, which happens to be
>>         in English. So How am I supposed to mark the values in the
>>         database to be translated in PO files?

>>         |class  Gender(models.Model):
>>              gender=  models.CharField(_(u'Sex'),  max_length=10)    

>>              def  __unicode__(self):
>>                  return  self.gender
>>              class  Meta:

>>                  verbose_name=  _(u'Sex')
>>                  verbose_name_plural=  _(u'Sexes')

>>         |

>>         Many Thanks,

>>         --
>>         You received this message because you are subscribed to the
>>         Google Groups "Django users" group.
>>         To view this discussion on the web visit
>>         https://groups.google.com/d/msg/django-users/-/mLjpKAPU1NAJ
>>         <https://groups.google.com/d/msg/django-users/-/mLjpKAPU1NAJ>.
>>         To post to this group, send email to
>>         django...@googlegroups.com <javascript:>.
>>         To unsubscribe from this group, send email to
>>         django-users...@googlegroups.com <javascript:>.
>>         For more options, visit this group at
>>         http://groups.google.com/group/django-users?hl=en
>>         <http://groups.google.com/group/django-users?hl=en>.

>>     --
>>     juanpex

>>     --
>>     You received this message because you are subscribed to the
>>     Google Groups "Django users" group.
>>     To post to this group, send email to django...@googlegroups.com
>>     <javascript:>.
>>     To unsubscribe from this group, send email to
>>     django-users...@googlegroups.com <javascript:>.
>>     For more options, visit this group at
>>     http://groups.google.com/group/django-users?hl=en
>>     <http://groups.google.com/group/django-users?hl=en>.

> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/3U8FtzKa9IIJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.