Answer by Porky for PowerShell, formatting values in another culture
If you already have the culture loaded in your environment, #>Get-Culture LCID Name DisplayName ---- ---- ----------- 1031 de-DE German (Germany) #>Get-UICultureLCID Name DisplayName ---- ----...
View ArticleAnswer by mklement0 for PowerShell, formatting values in another culture
While Keith Hill's helpful answer shows you how to change a script's current culture on demand (more modern alternative as of PSv3+ and .NET framework v4.6+:[cultureinfo]::CurrentCulture =...
View ArticleAnswer by Keith Hill for PowerShell, formatting values in another culture
This is a PowerShell function I use for testing script in other cultures. I believe it could be used for what you are after:function Using-Culture ([System.Globalization.CultureInfo]$culture =(throw...
View ArticleAnswer by stej for PowerShell, formatting values in another culture
I was thinking about how to make it easy and came up with accelerators:Add-type -typedef @" using System; public class InvFloat { double _f = 0; private InvFloat (double f) { _f = f; } private...
View ArticlePowerShell, formatting values in another culture
Is there an easy way in PowerShell to format numbers and the like in another locale? I'm currently writing a few functions to ease SVG generation for me and SVG uses . as a decimal separator, while...
View Article