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 :
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 :
>>>
>&
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
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
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
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
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
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
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
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
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
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 = (
(
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
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
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:
>
>
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
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() ==
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
. 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
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
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
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
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"
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]
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
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
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 = &
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
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
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
--~--~-~--~
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.
>
/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
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
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
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
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.
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
37 matches
Mail list logo