Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: User2 on May 31, 2023, 03:24:00 AM

Title: Change the format of the numbers.
Post by: User2 on May 31, 2023, 03:24:00 AM
Hello. Is it possible to change the format of numbers on the forum through the user interface in the Admin panel?
The screenshot shows that the separator is a comma.
In our country, the space separator is used.
It is difficult for visitors to understand what the comma means.
Title: Re: Change the format of the numbers.
Post by: Speed King on May 31, 2023, 07:02:45 AM
It's possible via editing of language files in ...Themes/default/languages.
For example, I use Bulgarian language, the file is index.bulgarian.php

Find:
// Number format.
$txt['number_format'] = '1 234,00';

Find appropriate file for your language and change format with desired.
Title: Re: Change the format of the numbers.
Post by: User2 on May 31, 2023, 03:28:51 PM
Speed King, thank you. Since there is no way to do this in the user interface, I will make changes to the code.
Title: Re: Change the format of the numbers.
Post by: Kindred on May 31, 2023, 07:53:44 PM
It's not really code... it's determined by the language files
Title: Re: Change the format of the numbers.
Post by: Sesquipedalian on May 31, 2023, 08:21:15 PM
Actually, this can be done in the admin interface.

Title: Re: Change the format of the numbers.
Post by: User2 on June 01, 2023, 12:14:12 AM
Sesquipedalian, thank you.