News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Change the format of the numbers.

Started by User2, May 31, 2023, 03:24:00 AM

Previous topic - Next topic

User2

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.

Speed King

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.

User2

Speed King, thank you. Since there is no way to do this in the user interface, I will make changes to the code.

Kindred

It's not really code... it's determined by the language files
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sesquipedalian

Actually, this can be done in the admin interface.

  • Go to Administration Center ► Languages ► Edit Languages
  • Click the Edit button for the language that you wish to edit.
  • In the Edit Language Entries section, choose "General Strings" from the drop-down menu.
  • Change the "number_format" entry to match the format you prefer.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

User2


Advertisement: