Support » Fixing WordPress » Wrong format number after updated to version WordPress 5.6

  • I have just updated WordPress from version 4.9.15 to version 5.6 and I have discovered that the counter on the main page displayed the thousands separator with comma (,) instead of dot (.) e.g. 4.500 became 4,500.

    The number is got from the database and is displayed on the page (no calculating)

    If I rolled back to version 4.9.15 the thousands separator is displayed as I expected as dot (.)

    How can I fix the problem by setup or change some codes ?

    Thanks in advance.

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter funmelody

    (@funmelody)

    Many thanks for your explaination.

    I am satisfy with version 4.9.15.

    number_format_thousands_sep should be “translated” to “.”.

    I think if dot (.) or comma (,) is hardcoded in the specific language is not bedst solution.

    The WordPress core should check the region in the device configuration (Windows or iOS) and displays thousand_sep = ‘.’ or ‘,’.
    It will be not dependent on translation delay

    Just my idea !!!

    The WordPress core should check the region in the device configuration (Windows or iOS) and displays thousand_sep = ‘.’ or ‘,’.

    Well – that’s probably more or less impossible, since a web browser won’t send its device’s settings (but only preferred languages) in the request headers.

    And: number format IS part of the localization effort. One of the clear differences between US English and several other English locales lies in how numbers are treated.
    Also, handling localization is so native to PHP (the environment, in which WordPress is running) that the translation delay is very small. Or, if you with “delay” talk about “while the translation has not yet been ready”, then, as I commented, WordPress 5.4 should still serve you well. You can get it from https://wordpress.org/download/releases/

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Wrong format number after updated to version WordPress 5.6’ is closed to new replies.