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 show
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 rem
Hi,
Have you made sure that you have activated the languages you want in your
application?
Also, how is the current language being 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 Se
Hi,
The problem is that you are redifining the fields, the fields then don't
get any labels (because you haven't specified them). You can achieve what
you want in two ways:
Either add the following to your modelform:
start_time = forms.DateTimeField(label=_("start time"),
widget=SplitDateTimeWidg
Hi Andréas,
Thanks very much for providing the help.
Currently the middleware classes are configured like this:
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMid
Now I have corrected the orders of each Middleware class and removed the
duplicated SessionMiddleware:
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'djang
Hi Andréas,
I have now applied your second approach and now the field names get
translated into Chinese as expected...
Thanks so much.
On Friday, October 30, 2015 at 6:12:21 PM UTC+8, Andréas Kühne wrote:
>
> Hi,
>
> The problem is that you are redifining the fields, the fields then don't
> get
django-mssql doesn't support Django 1.8 yet:
https://django-mssql.readthedocs.org/en/latest/changelog.html
On Thursday, October 29, 2015 at 9:36:38 PM UTC-4, Sid wrote:
>
> *Hi all,*
> I am trying to connect database which is in server to django, but it is
> showing many errors like(platform i a
bump!!
On Thursday, October 29, 2015 at 11:40:32 PM UTC-4, dc wrote:
>
> I have declared a charfield 'choice_text' in one of my models. I want to
> convert it to a dropdown box in django admin. The choices in the dropdown
> list depend on user input to a textbox defined in another model class. I
okkk now i dont hv time whenever i get ill let u know
On 30 October 2015 at 17:20, Sean Xu wrote:
> Hi Andréas,
>
> I have now applied your second approach and now the field names get
> translated into Chinese as expected...
> Thanks so much.
>
> On Friday, October 30, 2015 at 6:12:21 PM UTC+8,
Hmmm
I'm a bit at a loss here. But does Django know where to find the .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 :
> Now I have corrected the orders of each Middleware clas
so which version will be compatible...
On Friday, October 30, 2015 at 7:54:26 AM UTC-4, Tim Graham wrote:
>
> django-mssql doesn't support Django 1.8 yet:
>
> https://django-mssql.readthedocs.org/en/latest/changelog.html
>
> On Thursday, October 29, 2015 at 9:36:38 PM UTC-4, Sid wrote:
>>
>> *Hi a
Please read the documentation:
https://django-mssql.readthedocs.org/en/latest/quickstart.html
On Friday, October 30, 2015 at 9:53:42 AM UTC-4, Sid wrote:
>
> so which version will be compatible...
>
> On Friday, October 30, 2015 at 7:54:26 AM UTC-4, Tim Graham wrote:
>>
>> django-mssql doesn't su
sorry tim I know I am asking a dumb question...can you please tell me what
is the best way to make it work please if possibe...because I am struck
form last 2 days
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group
Sorry, I haven't used the library myself and can't provide any additional
help.
On Friday, October 30, 2015 at 10:31:35 AM UTC-4, Sid wrote:
>
> sorry tim I know I am asking a dumb question...can you please tell me what
> is the best way to make it work please if possibe...because I am struck
>
np...but thanks for your time
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to dja
Hello!
According to the documentation, the behaviour of has_delete_permission
should look like this:
If obj is None, should return True or False to indicate whether deleting
objects of this type is permitted in general (e.g., False will be
interpreted as meaning that the current user is not permi
I think there are a number of open tickets related to this. See
https://code.djangoproject.com/ticket/23869 and the first comment that
links to related issues. Feel free to offer a patch if you are able.
On Friday, October 30, 2015 at 3:04:21 PM UTC-4, Szymon Pyżalski wrote:
>
> Hello!
>
> Acco
I use Windows 8 Python 3.4 Django 1.8 and I try
I set settings and add: USE_I18N = True
add to MIDDLEWARE_CLASSES django.middleware.locale.LocaleMiddleware
like in describe in link below
https://docs.djangoproject.com/en/1.8/topics/i18n/translation/#gettext-on-windows
I download gettext-runt
On Fri, Oct 30, 2015 at 5:33 PM, Dariusz Mysior wrote:
> I use Windows 8 Python 3.4 Django 1.8 and I try
>
> I set settings and add: USE_I18N = True
>
> add to MIDDLEWARE_CLASSES django.middleware.locale.LocaleMiddleware
>
> like in describe in link below
>
> https://docs.djangoproject.com/en/1.8/
I do this and I have msfgmt is not recognized as an internal or external
command, operable program or a batch file.
W dniu piątek, 30 października 2015 21:33:52 UTC+1 użytkownik Dariusz
Mysior napisał:
>
> I use Windows 8 Python 3.4 Django 1.8 and I try
>
> I set settings and add: USE_I18N = Tru
On Fri, Oct 30, 2015 at 5:59 PM, Dariusz Mysior wrote:
> I do this and I have msfgmt is not recognized as an internal or external
> command, operable program or a batch file.
Then you'll need to identify, among the directories created by the
installation of gettext tools, which is the one that con
22 matches
Mail list logo