Re: Translation is not working for Template even though po and mo files are created

2015-11-01 Thread Sean Xu
he locale files in a > directory named locale under each app and also under the project, it should > just work (as long as all apps are included in the config). Just check so > that you follow the correct way of setting up a project. > > Regards, > > Andréas > > 2015-11-01

Re: Translation is not working for Template even though po and mo files are created

2015-10-31 Thread Sean Xu
he .mo > files? Is it only your template that isn't getting translated, because you > said that the form itself is? > > Regards, > > Andréas > > 2015-10-30 12:45 GMT+01:00 Sean Xu <seanx...@gmail.com >: > >> Now I have corrected the orders of each Middleware

Re: Translation is not working on ModelForm when widget is specified for form field

2015-10-30 Thread Sean Xu
et, > 'end_time': SplitDateTimeWidget, > } > > That way you don't have to add the labels once more, but just use them > from the model instead. > > Regards, > > Andréas > > 2015-10-30 7:21 GMT+01:00 Sean Xu <seanx...@gmail.com >: > >> Hi, >&

Re: Translation is not working for Template even though po and mo files are created

2015-10-30 Thread Sean Xu
django.template.context_processors.i18n should really be django.core.context_processors.i18n). But unfortunately the translation for my template still does not work :( On Friday, October 30, 2015 at 7:27:36 PM UTC+8, Sean Xu wrote: > > Hi Andréas, > > Thanks very much for providing the help. > Currently the mid

Re: Translation is not working for Template even though po and mo files are created

2015-10-30 Thread Sean Xu
ng selected? > See: > https://docs.djangoproject.com/en/1.8/topics/i18n/translation/#how-django-discovers-language-preference > > Regards, > > Andréas > > 2015-10-30 7:45 GMT+01:00 Sean Xu <seanx...@gmail.com >: > >> Hi, >> >> I'm learning Django Tra

Translation is not working on ModelForm when widget is specified for form field

2015-10-30 Thread Sean Xu
Hi, I was learning Django Translation using django-swingtime as project with Django 1.7.9 installed. And I found out when Non-default widgets was originally specified for form fields, the preferred language did not show up from my Firefox browser. The problem has gone when these widgets were

Translation is not working for Template even though po and mo files are created

2015-10-30 Thread Sean Xu
Hi, I'm learning Django Translation using django-swingtime with Django 1.7.9 installed. I followed the official docs and embedded my string to translate with {% trans "String to translate" %} in my Template and managed to create both the po and mo files successfully. But, the page is still