#11142: internalization of forms bug
----------------------------------------------------+-----------------------
 Reporter:  davidarakelian                          |       Owner:  nobody    
   Status:  new                                     |   Milestone:            
Component:  Internationalization                    |     Version:  SVN       
 Keywords:  Forms, fields, labels, internalization  |       Stage:  Unreviewed
Has_patch:  0                                       |  
----------------------------------------------------+-----------------------
 I am trying to translate my website to french version and I don't know if
 this is bug or wrong way of doing.

 When I visit the website with french browser (locales fr), I can see all
 the translations properly apart from the Form Fields.

 I have the following
 {{{
 # User login form
 class UserLoginForm(forms.Form):
     login = forms.EmailField(label=_('Login'), max_length=150)
     password = forms.CharField(label=_('Password'),
 widget=forms.PasswordInput)
 }}}

 I translated and compiled the label for Login and Password to french.

 this is my settings.py

 {{{
 # Language code for this installation. All choices can be found here:
 # http://www.i18nguy.com/unicode/language-identifiers.html
 LANGUAGE_CODE = 'en-en'

 #gettext = lambda s: s
 LANGUAGES = (
     ('en', 'English'),
     ('fr', 'French'),
     ('tr', 'Turkish'),
 )
 }}}

 If I change this to :

 {{{

 LANGUAGE_CODE = 'fr-fr'
 }}}

 My form fields are translated as well. But my default language is now
 french.
 I just want to have english as default and French depending on locales
 etc...

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11142>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to