Re: Impossible d'utiliser language_code 'fr-fr' avec django 3.0.4

2020-03-27 Thread Yves de Champlain
s/#translation > > Tu as deux choix: > 1. Ajoute 'fr-fr' à ton setting LANGUAGES tel qu'indiqué > 2. Définit ton setting LANGUAGE_CODE = 'fr' plutôt que 'fr-fr' > > Simon > > Le jeudi 26 mars 2020 21:47:11 UTC-4, Anselme SERI a écrit :

Re: Impossible d'utiliser language_code 'fr-fr' avec django 3.0.4

2020-03-27 Thread Abel Hacking
choix: >> 1. Ajoute 'fr-fr' à ton setting LANGUAGES tel qu'indiqué >> 2. Définit ton setting LANGUAGE_CODE = 'fr' plutôt que 'fr-fr' >> >> Simon >> >> Le jeudi 26 mars 2020 21:47:11 UTC-4, Anselme SERI a écrit : >>> >&

Re: Impossible d'utiliser language_code 'fr-fr' avec django 3.0.4

2020-03-27 Thread Laurent Gattegno
tte section: > https://docs.djangoproject.com/fr/3.0/ref/checks/#translation > > Tu as deux choix: > 1. Ajoute 'fr-fr' à ton setting LANGUAGES tel qu'indiqué > 2. Définit ton setting LANGUAGE_CODE = 'fr' plutôt que 'fr-fr' > > Simon > > Le jeudi 26

Re: Impossible d'utiliser language_code 'fr-fr' avec django 3.0.4

2020-03-26 Thread Simon Charette
La documentation de Django est disponible en Français. Ce message d'erreur est traduit dans cette section: https://docs.djangoproject.com/fr/3.0/ref/checks/#translation Tu as deux choix: 1. Ajoute 'fr-fr' à ton setting LANGUAGES tel qu'indiqué 2. Définit ton setting LANGUAG

Re: Impossible d'utiliser language_code 'fr-fr' avec django 3.0.4

2020-03-26 Thread Jean Luc Gaman
tro/tutorial01/> > Le 27 mars 2020 à 01:10, Anselme SERI a écrit : > > Je suis un nouveau dans le développement python et je teste actuellement > Django. > Il m'est impossible d'utiliser le language_code 'fr-fr' dans django 3.0.4. > Le message d'err

Impossible d'utiliser language_code 'fr-fr' avec django 3.0.4

2020-03-26 Thread Anselme SERI
Je suis un nouveau dans le développement python et je teste actuellement Django. Il m'est impossible d'utiliser le language_code 'fr-fr' dans django 3.0.4. Le message d'erreur qui s'affiche dans le terminal est le suivant : "ERRORS: ?: (translation.E004

Re: LANGUAGE_CODE

2019-08-10 Thread DANIEL URBANO DE LA RUA
It may be not getting yor locale from your folders On Sun, 28 Jul 2019, 20:09 Yves de Champlain HI > > Django translation works very well for me, except that when I try to > change LANGUAGE_CODE in settings.py, my site remains in French. I need to > change my OS system setting

Re: LANGUAGE_CODE

2019-08-10 Thread DANIEL URBANO DE LA RUA
Prefix_default_language in urls file inside i18n_patterns On Sun, 28 Jul 2019, 20:09 Yves de Champlain HI > > Django translation works very well for me, except that when I try to > change LANGUAGE_CODE in settings.py, my site remains in French. I need to > change my OS system setting

Re: LANGUAGE_CODE

2019-08-10 Thread Yves de Champlain
is possible to not use cookies at all regarding i18n if you use > language code as part of URL. I always prefer using URL for i18n. > > On Mon, Jul 29, 2019 at 1:08 AM Yves de Champlain > wrote: > >> HI >> >> Django translation works very well for me, except t

Re: LANGUAGE_CODE

2019-07-29 Thread Yves de Champlain
efer using URL for i18n. > > On Mon, Jul 29, 2019 at 1:08 AM Yves de Champlain <mailto:yesy...@gmail.com>> wrote: > HI > > Django translation works very well for me, except that when I try to change > LANGUAGE_CODE in settings.py, my site remains in French. I need

Re: LANGUAGE_CODE

2019-07-28 Thread Aldian Fazrihady
anslation works very well for me, except that when I try to > change LANGUAGE_CODE in settings.py, my site remains in French. I need to > change my OS system settings to see the English version. > > I have two languages, English as default and a French Translation. > > LANGUAGES

LANGUAGE_CODE

2019-07-28 Thread Yves de Champlain
HI Django translation works very well for me, except that when I try to change LANGUAGE_CODE in settings.py, my site remains in French. I need to change my OS system settings to see the English version. I have two languages, English as default and a French Translation. LANGUAGES = ( (&#x

Re: makemigrations and language_code

2015-10-27 Thread Collin Anderson
id this particular issue. > > > > On Monday, October 19, 2015 at 12:58:23 AM UTC-4, Hugo Osvaldo Barrera > wrote: > > I'm having a rather confusing scenario regarding makemigrations and > language_code: > > * I've an app (let's call it myapp) which

Re: makemigrations and language_code

2015-10-21 Thread 'Hugo Osvaldo Barrera' via Django users
ill encounter the same issue. I'm curious as to how the admin app avoid this particular issue. > > On Monday, October 19, 2015 at 12:58:23 AM UTC-4, Hugo Osvaldo > Barrera wrote: >> I'm having a rather confusing scenario regarding makemigrations and >> >> lang

Re: makemigrations and language_code

2015-10-20 Thread Aron Podrigal
Simply run ./manage.py makemigrations myapp That will avoid running for all your installed apps. On Monday, October 19, 2015 at 12:58:23 AM UTC-4, Hugo Osvaldo Barrera wrote: > > I'm having a rather confusing scenario regarding makemigrations and > language_code: > >

makemigrations and language_code

2015-10-18 Thread 'Hugo Osvaldo Barrera' via Django users
I'm having a rather confusing scenario regarding makemigrations and language_code: * I've an app (let's call it myapp) which I'm developing. * myapp relies on the another app (let's call it libapp). * myapp has language_code set to "es-ar". * libapp was

Re: django.test: @override_settings(LANGUAGE_CODE = 'xx') does not affect the default language in a test

2015-10-06 Thread 'Tom Evans' via Django users
On Tue, Oct 6, 2015 at 3:11 PM, Yunshi Tan wrote: > Let's say we have a default language code in settings.py > > LANGUAGE_CODE = 'en' > > Then we have > > >> from django.utils import translation > >> assert translation.get_language() ==

django.test: @override_settings(LANGUAGE_CODE = 'xx') does not affect the default language in a test

2015-10-06 Thread Yunshi Tan
Let's say we have a default language code in settings.py LANGUAGE_CODE = 'en' Then we have >> from django.utils import translation >> assert translation.get_language() == 'en' We are good by now. Then in a test, I would like to override th

(demo included) Switching Languages still relies on LANGUAGE_CODE for forms

2012-08-14 Thread Houmie
. However they still carry the American date format, instead of the British language selection. The only way to fix that was to change LANGUAGE_CODE = 'en-us' to LANGUAGE_CODE = 'en-gb' in settings.py. This approach would be obviously useless. I have created formats.py to o

Re: LANGUAGE_CODE inside the template of an inclusion tag

2011-03-28 Thread gontran
wrote: > Hello everybody, > > I'd like to use  LANGUAGE_CODE in the template of an inclusion tag but > this doesn't work. > I added 'django.core.context_processors.i18n' in the settings, I load > i18n in my template, and I specified to take context when I

LANGUAGE_CODE inside the template of an inclusion tag

2011-03-25 Thread gontran
Hello everybody, I'd like to use LANGUAGE_CODE in the template of an inclusion tag but this doesn't work. I added 'django.core.context_processors.i18n' in the settings, I load i18n in my template, and I specified to take context when I register my inclusion_tag. Am I missin

Django on IIS randomly changing LANGUAGE_CODE

2011-01-19 Thread Rodrigo Cea
I hava a Django production site on IIS 6.0. The LANGUAGE_CODE is set to 'es-cl' There are forms on the site. Sometimes the site seems to switch to English, returning validation errors on dates written in dd/mm/ format. The errors themselves are in English (whereas they're norm

Ignored LANGUAGE_CODE !!

2010-06-30 Thread tonnzor
I found that Django completely ignore the defined language code in all cases except "runserver" and "runfcgi". I was very surprised when discovered that cool i18n doesn't work neither in my daemon tasks (publish information at given time) using Celery nor in console! Every time this lead "en-us"

Re: how to get LANGUAGE_CODE variable in flatpage's template

2009-08-28 Thread victor
No one suffered? On 8月28日, 下午1时20分, victor wrote: > i need get LANGUAGE_CODE variable in flatpage's template,but only got > it under Debug status. > when set debug=False,any request to flatpage will got 500 error: > VariableDoesNotExist: Failed lookup for key [LANGUAGE_CODE]

how to get LANGUAGE_CODE variable in flatpage's template

2009-08-28 Thread victor
i need get LANGUAGE_CODE variable in flatpage's template,but only got it under Debug status. when set debug=False,any request to flatpage will got 500 error: VariableDoesNotExist: Failed lookup for key [LANGUAGE_CODE] in u'[{}]' when set debug=True,all works. can anyone know h

Re: Bad DateTime for LANGUAGE_CODE = 'sk'

2009-08-11 Thread Malcolm Tredinnick
On Tue, 2009-08-11 at 02:03 -0700, gentlestone wrote: > also local flavors SKRegionSelect and SKDistrictSelect do not work, > I'm afraid Please file tickets for these items (one issue per ticket) if they don't already exist. There is a localflavor component in Trac that is worth scanning the titl

Re: Bad DateTime for LANGUAGE_CODE = 'sk'

2009-08-11 Thread gentlestone
also local flavors SKRegionSelect and SKDistrictSelect do not work, I'm afraid On 11. Aug, 10:16 h., Ivan Mincik wrote: > On Tue, Aug 11, 2009 at 10:09 AM, gentlestone wrote: > > > My settings: > > > DEFAULT_CHARSET = "utf-8" > > TIME_ZONE = &

Re: Bad DateTime for LANGUAGE_CODE = 'sk'

2009-08-11 Thread Ivan Mincik
On Tue, Aug 11, 2009 at 10:09 AM, gentlestone wrote: > > My settings: > > DEFAULT_CHARSET = "utf-8" > TIME_ZONE = 'Europe/Bratislava' > LANGUAGE_CODE = 'sk' > USE_I18N = True > > DateTime fields are displayed in the admin page incorrect

Bad DateTime for LANGUAGE_CODE = 'sk'

2009-08-11 Thread gentlestone
My settings: DEFAULT_CHARSET = "utf-8" TIME_ZONE = 'Europe/Bratislava' LANGUAGE_CODE = 'sk' USE_I18N = True DateTime fields are displayed in the admin page incorrectly. If I change the language code for 'en' or 'cz', the display fo

Re: LANGUAGE_CODE

2009-05-18 Thread Kai Kuehne
ot;/blog/五 > 月", It's not match my url Regular expression in the url setting file. > Then how to fix this? I have two ideas: 1) LANGUAGE_CODE = 'en-us' 2) Create your own templatetag which gives you english date names on a - otherwise chinese - site --~--~-~--~

Re: LANGUAGE_CODE

2009-05-18 Thread sammysun
On May 18, 6:07 am, Kai Kuehne wrote: > Hi, > > 2009/5/17 sammysun : > > > > > Hi: > >When I set LANGUAGE_CODE = 'zh-cn' in the sitting file. I want to > > get a 3 letters of month useing filter "date" in the template, e.g. >

Re: LANGUAGE_CODE

2009-05-17 Thread Apple
/17 sammysun : >> >> Hi: >>When I set LANGUAGE_CODE = 'zh-cn' in the sitting file. I want to >> get a 3 letters of month useing filter "date" in the template, e.g. >> Useing {{ entry.pub_date|date:"M"}}, I will get "五月" in ch

Re: LANGUAGE_CODE

2009-05-17 Thread Kai Kuehne
Hi, 2009/5/17 sammysun : > > Hi: >When I set LANGUAGE_CODE = 'zh-cn' in the sitting file. I want to > get a 3 letters of month useing filter "date" in the template, e.g. > Useing {{ entry.pub_date|date:"M"}}, I will get "五月" in chine

LANGUAGE_CODE

2009-05-17 Thread sammysun
Hi: When I set LANGUAGE_CODE = 'zh-cn' in the sitting file. I want to get a 3 letters of month useing filter "date" in the template, e.g. Useing {{ entry.pub_date|date:"M"}}, I will get "五月" in chinese, but the one I expect is "Ma

Re: LANGUAGE_CODE and render_to_response?

2006-05-12 Thread Jay Parlar
Perfect, thanks so much! Jay P. On 5/12/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > > Jay Parlar wrote: > > >Is there something about render_to_response that makes it that > >LANGUAGE_CODE doesn't get properly populated? > > > > > A

Re: LANGUAGE_CODE and render_to_response?

2006-05-12 Thread Ivan Sagalaev
Jay Parlar wrote: >Is there something about render_to_response that makes it that >LANGUAGE_CODE doesn't get properly populated? > > All those things that are populated in templates automatically work with the help of context processors (http://www.djangoproject.

LANGUAGE_CODE and render_to_response?

2006-05-12 Thread Jay Parlar
I'm starting to work on my first Django app, and I'm experiencing some weird behaviour with render_to_response. I have a base template (base.html), that uses LANGUAGE_CODE in the attributes. I currently only have one view: def upload_file(request): manipulator = VsslUpload.AddM