Chocolateygui: Dates are displayed in US format not in machine locale format

Created on 20 Jan 2017  路  4Comments  路  Source: chocolatey/ChocolateyGUI

Dates displayed on a package detail view (last update for instance) are displayed in US format whereas the machine date format is French.
Dates times and numbers, should be displayed using the machine locale format.

(Surprisingly package size is in the machine locale already, probably because it is formatted to string through a windows API.)

Localization can be done using a WPF localized binding like this (for instance):

public class LocalizedBinding : Binding
{
    public LocalizedBinding()
        : base()
    {
        this.ConverterCulture = System.Globalization.CultureInfo.CurrentCulture;
    }
    public LocalizedBinding(string path)
        : base(path)
    {
        this.ConverterCulture = System.Globalization.CultureInfo.CurrentCulture;
    }

}

Bug

Most helpful comment

@RichiCoder1 I can verify that this no longer happens (with the latest build from the develop branch).

image

Everything is correctly formatting according to my locale.

All 4 comments

Huh. I was 99% sure this was an automatic thing. I'll look into fixing this.
(And you're correct about package sizing).

@laperouse Could you verify this is still an issue with the latest prerelease? I believe some work we're doing with localization might have incidentally fixed this.

@RichiCoder1 I can verify that this no longer happens (with the latest build from the develop branch).

image

Everything is correctly formatting according to my locale.

Glad to hear!

Was this page helpful?
0 / 5 - 0 ratings