Re: Internationalization in Django 1.4 doesn't seem to work

2012-06-02 Thread kenneth gonsalves
On Sat, 2012-06-02 at 02:58 -0700, Houmie wrote: > The good news is the problem is solved. A friendly chap in > stackoverflow > actually bothered to look into it. > > The problem is as simple as the translation files couldn't be found. > For > some odd reason the important information about how

Re: Internationalization in Django 1.4 doesn't seem to work

2012-06-02 Thread Houmie
> > Hi Kenneth, The good news is the problem is solved. A friendly chap in stackoverflow actually bothered to look into it. The problem is as simple as the translation files couldn't be found. For some odd reason the important information about how Django locates them is at the very last

Re: Internationalization in Django 1.4 doesn't seem to work

2012-06-02 Thread kenneth gonsalves
On Fri, 2012-06-01 at 10:58 -0700, Houmie wrote: > I would really appreciate it if somebody could help me with this. > Working on this since this morning and am totally stuck.. > > could you try with revision 17860 and see if it works. I have the same problem, and am stuck with 17860 -

Re: Internationalization in Django 1.4 doesn't seem to work

2012-06-01 Thread Houmie
Guys, I have created a new simple test project to demonstrate the problem. It is a very simple project and you can switch between German & English at main page. You see the selected Language code actually changes, which is a good sign but the translation simply doesn't happen. I wonder if

Re: Internationalization in Django 1.4 doesn't seem to work

2012-06-01 Thread Houmie
Hi Ivan, Thank you for your help. I have already lazy translation implemented for the forms like this: from django.utils.translation import ugettext_lazy as _ class FriendInviteForm(forms.Form): name = forms.CharField(label=_("Friend's Name")) email = forms.EmailField(label=

Re: Internationalization in Django 1.4 doesn't seem to work

2012-06-01 Thread Iván Raskovsky
Besides changing the language per request as you've been indicated in SO you might want to look at lazy translations: https://docs.djangoproject.com/en/dev/topics/i18n/translation/#lazy-translation Regards, Iván On Fri, Jun 1, 2012 at 2:58 PM, Houmie wrote: > Hey everyone,

Internationalization in Django 1.4 doesn't seem to work

2012-06-01 Thread Houmie
Hey everyone, I would really appreciate it if somebody could help me with this. Working on this since this morning and am totally stuck.. I have posted it with proper formatting on stack overflow. http://stackoverflow.com/questions/10854330/internationalization-in-django-doesnt-get-activated