Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Humanizer issue for non english language installs #627

Closed
DavidWiseman opened this issue Jun 7, 2023 Discussed in #626 · 2 comments
Closed

Humanizer issue for non english language installs #627

DavidWiseman opened this issue Jun 7, 2023 Discussed in #626 · 2 comments
Assignees
Labels
Completed DEV work completed. To be included in next release if issue is still open. DBA Dash GUI system client (web, mobile, CLI, 3rd party) defect Something is off and needs to be addressed

Comments

@DavidWiseman
Copy link
Collaborator

Discussed in #626

Originally posted by teslyuk70 May 31, 2023
Error Message:
System.ArgumentException: The resource object with key 'TimeSpanHumanize_MultipleHours' was not found (Parameter 'resourceKey')
at Humanizer.Localisation.Formatters.DefaultFormatter.Format(String resourceKey, Int32 number, Boolean toWords) in //src/Humanizer/Localisation/Formatters/DefaultFormatter.cs:line 137
at Humanizer.Localisation.Formatters.DefaultFormatter.GetResourceForTimeSpan(TimeUnit unit, Int32 count, Boolean toWords) in /
/src/Humanizer/Localisation/Formatters/DefaultFormatter.cs:line 102
at Humanizer.Localisation.Formatters.DefaultFormatter.TimeSpanHumanize(TimeUnit timeUnit, Int32 unit, Boolean toWords) in //src/Humanizer/Localisation/Formatters/DefaultFormatter.cs:line 71
at Humanizer.TimeSpanHumanizeExtensions.CreateTheTimePartsWithUpperAndLowerLimits(TimeSpan timespan, CultureInfo culture, TimeUnit maxUnit, TimeUnit minUnit, Boolean toWords) in /
/src/Humanizer/TimeSpanHumanizeExtensions.cs:line 63
at Humanizer.TimeSpanHumanizeExtensions.Humanize(TimeSpan timeSpan, Int32 precision, Boolean countEmptyUnits, CultureInfo culture, TimeUnit maxUnit, TimeUnit minUnit, String collectionSeparator, Boolean toWords) in //src/Humanizer/TimeSpanHumanizeExtensions.cs:line 50
at Humanizer.TimeSpanHumanizeExtensions.Humanize(TimeSpan timeSpan, Int32 precision, CultureInfo culture, TimeUnit maxUnit, TimeUnit minUnit, String collectionSeparator, Boolean toWords) in /
/src/Humanizer/TimeSpanHumanizeExtensions.cs:line 33
at DBADashGUI.Performance.Waits.<>c.b__32_4(<>f__AnonymousType05 x) in D:\a\dba-dash\dba-dash\DBADashGUI\Performance\Waits.cs:line 148 at System.Linq.Enumerable.SelectListIterator2.MoveNext()
at System.String.Join(String separator, IEnumerable`1 values)
at DBADashGUI.Performance.Waits.CalcTopWaits(DataTable& dt) in D:\a\dba-dash\dba-dash\DBADashGUI\Performance\Waits.cs:line 147
at DBADashGUI.Performance.Waits.RefreshData() in D:\a\dba-dash\dba-dash\DBADashGUI\Performance\Waits.cs:line 173
at DBADashGUI.Performance.Waits.RefreshData(Int32 instanceID) in D:\a\dba-dash\dba-dash\DBADashGUI\Performance\Waits.cs:line 92
at DBADashGUI.Performance.Performance.RefreshData() in D:\a\dba-dash\dba-dash\DBADashGUI\Performance\Performance.cs:line 57
at DBADashGUI.Performance.Performance.SetContext(DBADashContext context) in D:\a\dba-dash\dba-dash\DBADashGUI\Performance\Performance.cs:line 40
at DBADashGUI.Main.LoadSelectedTab() in D:\a\dba-dash\dba-dash\DBADashGUI\Main.cs:line 329
at DBADashGUI.Main.Instance_Selected(Object sender, InstanceSelectedEventArgs e) in D:\a\dba-dash\dba-dash\DBADashGUI\Main.cs:line 1213
at DBADashGUI.Performance.PerformanceSummary.Dgv_CellContentClick(Object sender, DataGridViewCellEventArgs e) in D:\a\dba-dash\dba-dash\DBADashGUI\Performance\PerformanceSummary.cs:line 384
at System.Windows.Forms.DataGridView.OnCellContentClick(DataGridViewCellEventArgs e)
at System.Windows.Forms.DataGridView.OnCommonCellContentClick(Int32 columnIndex, Int32 rowIndex, Boolean doubleClick)
at System.Windows.Forms.DataGridViewCell.OnMouseUpInternal(DataGridViewCellMouseEventArgs e)
at System.Windows.Forms.DataGridView.OnCellMouseUp(DataGridViewCellMouseEventArgs e)
at System.Windows.Forms.DataGridView.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.DataGridView.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

What can I do with this error? I have local on server ru-RU.

@DavidWiseman
Copy link
Collaborator Author

Similar:
Humanizr/Humanizer#690
Note: Currently using Humanizer.Core so could switch to Humanizer. Or could specify culture.

@DavidWiseman DavidWiseman self-assigned this Jun 12, 2023
@DavidWiseman DavidWiseman added DBA Dash GUI system client (web, mobile, CLI, 3rd party) defect Something is off and needs to be addressed Completed DEV work completed. To be included in next release if issue is still open. labels Jun 12, 2023
@DavidWiseman
Copy link
Collaborator Author

Fixed in 2.41.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Completed DEV work completed. To be included in next release if issue is still open. DBA Dash GUI system client (web, mobile, CLI, 3rd party) defect Something is off and needs to be addressed
Projects
None yet
Development

No branches or pull requests

1 participant