Re: Problem with number format when not using L10N
In conclusion one could say that if USE_L10N is not True then no thousands separator is displayed, of course, only thru the configuration of django. El viernes, 20 de diciembre de 2013 08:15:58 UTC-5, Yonel Ceruto González escribió: > > Ok no problem, > > Although the documentation may be inconsistent, I think the comment > https://code.djangoproject.com/ticket/21544 # comment: 8, discloses a > particular > case where I customize the THOUSAND_SEPARATOR with USE_L10N = False. This is > the source of my problem, because he expects to see the thousands > separator to the display the numbers. > > El jueves, 19 de diciembre de 2013 16:19:42 UTC-5, Shai Berger escribió: >> >> Hi, >> >> On Thursday 19 December 2013 05:25:11 Yonel Ceruto González wrote: >> > Forgive me if at some point was arrogant, it was not my intention to >> impose >> > my judgment or criticize, for me, the best framework that exists. Maybe >> I >> > was not regarded with good intentions and therefore I believe the >> answers >> > were focused to dodge my proposal.Most likely I knew not express well, >> beg >> > a thousand pardons. >> >> As the person who closed the ticket, your mail here indicates that I may >> have >> been too harsh, and I apologize for that. I would like to assure you that >> your >> intentions appear good, and your proposal was rejected purely on >> technical >> reasons, mostly according to the documentation of USE_THOUSAND_SEPARATOR >> and >> USE_L10N. >> >> However, having looked again, I now think that you do have a case -- >> while for >> the settings you pointed to, the documentation strongly implies the >> current >> behavior, the documentation for NUMBER_GROUPING and THOUSAND_SEPARATOR >> does >> support your interpretation (and in your first message you mentioned >> having set >> NUMBER_GROUPING=3). For both these settings, the documentation says: >> >> Note that if USE_L10N is set to True, then the locale-dictated >> format has >> higher precedence and will be applied instead. >> >> So -- to me, it looks like the documentation is not entirely consistent, >> and >> should be clarified; and while changing the behavior would be >> problematic, >> changing it to match (some) documentation should be a possibility. >> >> I'm waiting for other opinions -- in particular, anyone involved with the >> introduction of these settings, who can explain the original intentions >> -- to >> decide if we should reopen the ticket[1] as is or change it to a >> documentation >> ticket. >> >> Shai. >> >> [1] https://code.djangoproject.com/ticket/21544 >> > -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/a1cfc902-9284-4c68-9c70-35f9516c6e48%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Problem with number format when not using L10N
Ok no problem, Although the documentation may be inconsistent, I think the comment https://code.djangoproject.com/ticket/21544 # comment: 8, discloses a particular case where I customize the THOUSAND_SEPARATOR with USE_L10N = False. This is the source of my problem, because he expects to see the thousands separator to the display the numbers. El jueves, 19 de diciembre de 2013 16:19:42 UTC-5, Shai Berger escribió: > > Hi, > > On Thursday 19 December 2013 05:25:11 Yonel Ceruto González wrote: > > Forgive me if at some point was arrogant, it was not my intention to > impose > > my judgment or criticize, for me, the best framework that exists. Maybe > I > > was not regarded with good intentions and therefore I believe the > answers > > were focused to dodge my proposal.Most likely I knew not express well, > beg > > a thousand pardons. > > As the person who closed the ticket, your mail here indicates that I may > have > been too harsh, and I apologize for that. I would like to assure you that > your > intentions appear good, and your proposal was rejected purely on technical > reasons, mostly according to the documentation of USE_THOUSAND_SEPARATOR > and > USE_L10N. > > However, having looked again, I now think that you do have a case -- while > for > the settings you pointed to, the documentation strongly implies the > current > behavior, the documentation for NUMBER_GROUPING and THOUSAND_SEPARATOR > does > support your interpretation (and in your first message you mentioned > having set > NUMBER_GROUPING=3). For both these settings, the documentation says: > > Note that if USE_L10N is set to True, then the locale-dictated > format has > higher precedence and will be applied instead. > > So -- to me, it looks like the documentation is not entirely consistent, > and > should be clarified; and while changing the behavior would be problematic, > changing it to match (some) documentation should be a possibility. > > I'm waiting for other opinions -- in particular, anyone involved with the > introduction of these settings, who can explain the original intentions -- > to > decide if we should reopen the ticket[1] as is or change it to a > documentation > ticket. > > Shai. > > [1] https://code.djangoproject.com/ticket/21544 > -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/5390f70e-f86f-48d3-8bf2-90e30d7f9c39%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Problem with number format when not using L10N
I recall helping someone on #django with something similar to this, where the documentation, logical expectations and actual code went in rather different directions. There was a condition where despite the setting being observed at one layer, a lower layer then went and ignored it anyway... will have to dig it up again... -- Curtis On 20 December 2013 08:19, Shai Berger wrote: > Hi, > > On Thursday 19 December 2013 05:25:11 Yonel Ceruto González wrote: > > Forgive me if at some point was arrogant, it was not my intention to > impose > > my judgment or criticize, for me, the best framework that exists. Maybe I > > was not regarded with good intentions and therefore I believe the answers > > were focused to dodge my proposal.Most likely I knew not express well, > beg > > a thousand pardons. > > As the person who closed the ticket, your mail here indicates that I may > have > been too harsh, and I apologize for that. I would like to assure you that > your > intentions appear good, and your proposal was rejected purely on technical > reasons, mostly according to the documentation of USE_THOUSAND_SEPARATOR > and > USE_L10N. > > However, having looked again, I now think that you do have a case -- while > for > the settings you pointed to, the documentation strongly implies the current > behavior, the documentation for NUMBER_GROUPING and THOUSAND_SEPARATOR does > support your interpretation (and in your first message you mentioned > having set > NUMBER_GROUPING=3). For both these settings, the documentation says: > > Note that if USE_L10N is set to True, then the locale-dictated > format has > higher precedence and will be applied instead. > > So -- to me, it looks like the documentation is not entirely consistent, > and > should be clarified; and while changing the behavior would be problematic, > changing it to match (some) documentation should be a possibility. > > I'm waiting for other opinions -- in particular, anyone involved with the > introduction of these settings, who can explain the original intentions -- > to > decide if we should reopen the ticket[1] as is or change it to a > documentation > ticket. > > Shai. > > [1] https://code.djangoproject.com/ticket/21544 > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-developers+unsubscr...@googlegroups.com. > To post to this group, send email to django-developers@googlegroups.com. > Visit this group at http://groups.google.com/group/django-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/1516598.QbdADRIKfy%40deblack > . > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAG_XiSAi1yU1XwxR%2B_TSvgVi8VdYrezqSM5LUdc_QTUaqeU%3D%2Bw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Problem with number format when not using L10N
Hi, On Thursday 19 December 2013 05:25:11 Yonel Ceruto González wrote: > Forgive me if at some point was arrogant, it was not my intention to impose > my judgment or criticize, for me, the best framework that exists. Maybe I > was not regarded with good intentions and therefore I believe the answers > were focused to dodge my proposal.Most likely I knew not express well, beg > a thousand pardons. As the person who closed the ticket, your mail here indicates that I may have been too harsh, and I apologize for that. I would like to assure you that your intentions appear good, and your proposal was rejected purely on technical reasons, mostly according to the documentation of USE_THOUSAND_SEPARATOR and USE_L10N. However, having looked again, I now think that you do have a case -- while for the settings you pointed to, the documentation strongly implies the current behavior, the documentation for NUMBER_GROUPING and THOUSAND_SEPARATOR does support your interpretation (and in your first message you mentioned having set NUMBER_GROUPING=3). For both these settings, the documentation says: Note that if USE_L10N is set to True, then the locale-dictated format has higher precedence and will be applied instead. So -- to me, it looks like the documentation is not entirely consistent, and should be clarified; and while changing the behavior would be problematic, changing it to match (some) documentation should be a possibility. I'm waiting for other opinions -- in particular, anyone involved with the introduction of these settings, who can explain the original intentions -- to decide if we should reopen the ticket[1] as is or change it to a documentation ticket. Shai. [1] https://code.djangoproject.com/ticket/21544 -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/1516598.QbdADRIKfy%40deblack. For more options, visit https://groups.google.com/groups/opt_out.
Re: Problem with number format when not using L10N
Forgive me if at some point was arrogant, it was not my intention to impose my judgment or criticize, for me, the best framework that exists. Maybe I was not regarded with good intentions and therefore I believe the answers were focused to dodge my proposal.Most likely I knew not express well, beg a thousand pardons. The truth is that my problem is not yet solved and the ticket was closed. Later I will address the problem and my suggestion otherwise. For now, thank you, Best Regards El martes, 3 de diciembre de 2013 11:37:28 UTC-5, Claude Paroz escribió: > > This is the topic of https://code.djangoproject.com/ticket/21544 where > you can read my position. > -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/7e2d0ab4-87b9-4f2f-b0fd-6ce734222c49%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Problem with number format when not using L10N
It is understood that if I have enabled the thousands separator USE_THOUSAND_SEPARATOR = True and NUMBER_GROUPING > 0 to display all numbers with the pattern: #THOUSAND_SEPARATOR###DECIMAL_SEPARATOR## If is enabled or not USE_L10N only determines the "values" of DECIMAL_SEPARATOR and THOUSAND_SEPARATOR according to the current locate set to LANGUAGE_CODE, but if USE_L10N = False then is display the default values. Why USE_L10N determining use of thousands separator? https://docs.djangoproject.com/en/dev/ref/settings/#use-l10n Here not speak of this variable determines the use of the thousands separator. Please clarify, thanks -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/4dd79e85-ee12-4b06-9884-e596716199b3%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Problem with number format when not using L10N
This is the topic of https://code.djangoproject.com/ticket/21544 where you can read my position. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/55aed0dd-dcf4-4826-aba9-6ee2f5bac17d%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Problem with number format when not using L10N
I think the configuration of the variable USE_L10N aims at in this case, determine the format of number and not condition the use of the grouping of thousands. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/1d99dbfd-f6c2-4756-93ad-80d2f672b23c%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Problem with number format when not using L10N
Rectify the frontline: I want to use the grouping of thousands in my numeric formats, for which I use the "floatformat" filter. El martes, 3 de diciembre de 2013 08:13:21 UTC-5, Yonel Ceruto González escribió: > > Deseo usar la agrupación de millares en mis formatos numéricos, for which > I use the "floatformat" filter. > > My configuration in "settings.py" is: > USE_L10N = False > USE_THOUSAND_SEPARATOR = True > NUMBER_GROUPING = 3 > > Showing my numbers without the grouping of thousands. > > When I check in depth why I realize that the grouping of thousands is > subject to the value of the Variable settings.USE_L10N: > > django / utils / numberformat.py: > > def format (...): > ... > use_grouping = settings.USE_L10N and settings.USE_THOUSAND_SEPARATOR > Think it would be correct to eliminate the constraint that prohibits the > display grouping of thousands, if not L10N used? > > -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/1bc96ccb-7032-4bf5-8914-6cef19606155%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Problem with number format when not using L10N
Deseo usar la agrupación de millares en mis formatos numéricos, for which I use the "floatformat" filter. My configuration in "settings.py" is: USE_L10N = False USE_THOUSAND_SEPARATOR = True NUMBER_GROUPING = 3 Showing my numbers without the grouping of thousands. When I check in depth why I realize that the grouping of thousands is subject to the value of the Variable settings.USE_L10N: django / utils / numberformat.py: def format (...): ... use_grouping = settings.USE_L10N and settings.USE_THOUSAND_SEPARATOR Think it would be correct to eliminate the constraint that prohibits the display grouping of thousands, if not L10N used? -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/6a31612c-1052-4b37-bfbb-1c707934dc11%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.