Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
decimal point or comma
#5
If you do real i18n, not toy applications, you should avoid building your own stuff.
For i18n support: locale, gettext and hopefully other tools are used.
gettext is very verbose. There are better tools.

For l10n there are graphical tools for translators. They load the po file, save the translations as pot (if I remind right) and then they give it back to the programmer. The programmer runs msgfmt to create the binary blobs for the domain.

To implement it by your own, you have to know much about languages. Russian people have different forms of plural.
Then every country has a different symbol for currency. Different date formats and timezones (pytz).
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
decimal point or comma - by Skaperen - Mar-12-2019, 07:45 PM
RE: decimal point or comma - by hshivaraj - Mar-12-2019, 10:37 PM
RE: decimal point or comma - by Skaperen - Mar-15-2019, 06:52 PM
RE: decimal point or comma - by snippsat - Mar-15-2019, 07:24 PM
RE: decimal point or comma - by DeaD_EyE - Mar-15-2019, 09:24 PM
RE: decimal point or comma - by Skaperen - Mar-15-2019, 11:10 PM
RE: decimal point or comma - by farhan275 - Mar-15-2019, 11:40 PM
RE: decimal point or comma - by Skaperen - Mar-16-2019, 06:57 PM
RE: decimal point or comma - by DeaD_EyE - Mar-17-2019, 06:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVED] [BeautifulSoup] Turn select() into comma-separated string? Winfried 0 1,194 Aug-19-2022, 08:07 PM
Last Post: Winfried
  How to format Excel column with comma? dee 0 1,452 Jun-13-2022, 10:11 PM
Last Post: dee
  decimal comma DPaul 9 2,458 Feb-22-2022, 12:25 PM
Last Post: DeaD_EyE
  Adding a comma in the resulting value stsxbel 6 2,772 May-22-2021, 09:24 PM
Last Post: stsxbel
  How to instantly add quotation marks and comma for parameters? cheers100 4 8,376 Oct-22-2020, 12:51 PM
Last Post: cheers100
  Printing digits after the decimal point one by one uberman321 1 1,823 Oct-20-2020, 08:10 AM
Last Post: bowlofred
  print scripts example includes comma that seems to serve no purpose flour_power_33 5 2,935 Sep-02-2020, 03:32 AM
Last Post: flour_power_33
  Grabbing comma separed values from SQLite and putting them in a list PythonNPC 8 4,216 Apr-10-2020, 02:39 PM
Last Post: buran
  connecting the first point to the last point Matplotlib omar_mohsen 0 4,733 Jan-15-2020, 01:23 PM
Last Post: omar_mohsen
  Phyton code to load a comma separated csv file in to a dict and then in to a dB mrsenorchuck 2 2,734 Nov-29-2019, 10:59 AM
Last Post: mrsenorchuck

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020