Re: Displaying numbers in languages

2023-12-07 Thread Swarup Selvaraj
ciao Vincenzo,

Thank you for the explanation :)

Hi Uri 

The functionality  we 
are interested in is called as Internationalization and Localization 
 (i18n and l10n - funny 
shortcut)

We can enable these (USE_L10N=True USE_I18N=True) in settings.py file.
If we ensure the right locale is set, django will render numbers 
appropriately according to the user's locale.

Regards,
SWARUP Selvaraj


On Thursday 30 November 2023 at 00:07:05 UTC+5:30 Vincenzo Celano wrote:

> Ciao 
> אורי 
> In italian  language, thousand separator is the dot '*.*' and comma '*,*' 
> for decimal separator.
> I think the problem is not important in this case but for example, if you 
> have a car sales website and an italian will find a Ford Mustang Mutch-E at 
> this prince:
> 60,865 $ an italian person will read 60 $ and 8 hundred and 65 cents not 
> 60 thousands and 8 hundred and 45 $
> :-)
>
> I hope this will be helpful.
>   
> Ciao!
>
> ‪Il giorno mer 29 nov 2023 alle ore 05:00 ‫אורי‬‎  ha 
> scritto:‬
>
>> Hi,
>>
>> Since Speedy Match was only in English, I displayed numbers in the 
>> English format - with commas as thousand separators. For example today it 
>> writes:
>>
>> The total number of active members on the site is 12,221, of which 2,581 
>> members entered the site in the last week.
>>
>> Now, I translated Speedy Match into other languages, such as French, 
>> German, Spanish, Portuguese and Italian. In these languages I still use the 
>> same number formatting as in English:
>>
>> Le nombre total de membres actifs sur le site est 12,221, dont 2,581 
>> membres entrés sur le site au cours de la dernière semaine.
>>
>> Die Gesamtzahl der aktiven Mitglieder auf der Website beträgt 12,221, von 
>> denen 2,581 Mitglieder die Website in der letzten Woche betreten haben.
>>
>> Is it better to use formats.number_format and display the numbers in each 
>> language differently? Or is it OK to keep it this way? I’m specifically 
>> asking people who speak languages such as French, German, Spanish, 
>> Portuguese, Italian and Dutch. How important it is to change the thousand 
>> separators?
>>
>> Thanks,
>> Uri.
>> אורי
>> u...@speedy.net
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CABD5YeEBFAJK_v4er294-GDqLrRFOsiS1bY1rxmdQve3PNXcig%40mail.gmail.com
>>  
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/04064f39-5b0b-4c7e-965e-5e8fe27771b2n%40googlegroups.com.


Re: Displaying numbers in languages

2023-11-29 Thread Vincenzo Celano
Ciao
אורי
In italian  language, thousand separator is the dot '*.*' and comma '*,*'
for decimal separator.
I think the problem is not important in this case but for example, if you
have a car sales website and an italian will find a Ford Mustang Mutch-E at
this prince:
60,865 $ an italian person will read 60 $ and 8 hundred and 65 cents not 60
thousands and 8 hundred and 45 $
:-)

I hope this will be helpful.

Ciao!

‪Il giorno mer 29 nov 2023 alle ore 05:00 ‫אורי‬‎  ha
scritto:‬

> Hi,
>
> Since Speedy Match was only in English, I displayed numbers in the English
> format - with commas as thousand separators. For example today it writes:
>
> The total number of active members on the site is 12,221, of which 2,581
> members entered the site in the last week.
>
> Now, I translated Speedy Match into other languages, such as French,
> German, Spanish, Portuguese and Italian. In these languages I still use the
> same number formatting as in English:
>
> Le nombre total de membres actifs sur le site est 12,221, dont 2,581
> membres entrés sur le site au cours de la dernière semaine.
>
> Die Gesamtzahl der aktiven Mitglieder auf der Website beträgt 12,221, von
> denen 2,581 Mitglieder die Website in der letzten Woche betreten haben.
>
> Is it better to use formats.number_format and display the numbers in each
> language differently? Or is it OK to keep it this way? I’m specifically
> asking people who speak languages such as French, German, Spanish,
> Portuguese, Italian and Dutch. How important it is to change the thousand
> separators?
>
> Thanks,
> Uri.
> אורי
> u...@speedy.net
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABD5YeEBFAJK_v4er294-GDqLrRFOsiS1bY1rxmdQve3PNXcig%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAB5pmX--ho5uXL6w3T1WNcy2swwk_QPHRnhtqPGatrysWwZs%2BQ%40mail.gmail.com.


Displaying numbers in languages

2023-11-28 Thread אורי
Hi,

Since Speedy Match was only in English, I displayed numbers in the English
format - with commas as thousand separators. For example today it writes:

The total number of active members on the site is 12,221, of which 2,581
members entered the site in the last week.

Now, I translated Speedy Match into other languages, such as French,
German, Spanish, Portuguese and Italian. In these languages I still use the
same number formatting as in English:

Le nombre total de membres actifs sur le site est 12,221, dont 2,581
membres entrés sur le site au cours de la dernière semaine.

Die Gesamtzahl der aktiven Mitglieder auf der Website beträgt 12,221, von
denen 2,581 Mitglieder die Website in der letzten Woche betreten haben.

Is it better to use formats.number_format and display the numbers in each
language differently? Or is it OK to keep it this way? I’m specifically
asking people who speak languages such as French, German, Spanish,
Portuguese, Italian and Dutch. How important it is to change the thousand
separators?

Thanks,
Uri.
אורי
u...@speedy.net

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABD5YeEBFAJK_v4er294-GDqLrRFOsiS1bY1rxmdQve3PNXcig%40mail.gmail.com.