POSHOrigin icon indicating copy to clipboard operation
POSHOrigin copied to clipboard

Error with FR-Fr culture can't load Messages.psd1 file

Open yvesgermain opened this issue 7 years ago • 1 comments

Trying the example in your wiki on a computer with French culture .
cd $env:userprofile.poshorigin\configs $config = Get-POSHOriginConfig -Path '.\example.ps1' -Verbose

Current Behavior

VERBOSE: [L160242] : Gestionnaire de configuration local : [ ÉCHECComparer ] Opération de comparaison terminée. L'opération a renvoyé la valeur False. Importing module POSHOrigin_POSHFolder failed with error - Cannot find the Windows PowerShell data file 'messages.psd1' in directory 'C:\Program Files\WindowsPowerShell\Modules\POSHOrigin\1.8.1\DscResources\POSHOrigin_POSHFolder\fr-FR', or in any parent culture directories. + CategoryInfo : InvalidOperation: (root/Microsoft/...gurationManager:String) [], CimException + FullyQualifiedErrorId : ImportModuleFailed + PSComputerName : localhost

Possible Solution

Copying the messages.psd1 file to C:\Program Files\WindowsPowerShell\Modules\POSHOrigin\1.8.1\DSCResources\POSHOrigin_POSHFolder\messages.psd1 fixed that particular problem.

Steps to Reproduce (for bugs)

Trying the example in your wiki on a computer with French culture .

  1. cd $env:userprofile.poshorigin\configs
  2. $config = Get-POSHOriginConfig -Path '.\example.ps1' -Verbose

Environment

  • Module version used: 1.8.1
  • Operating System and PowerShell version: PS C:> get-culture

LCID Name DisplayName


3084 fr-CA Français (Canada) PS C:> $PSCulture fr-CA Windows version 64 bits Windows 7

PS C:> $PSVersionTable

Name Value


PSVersion 5.1.14409.1012 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.14409.1012 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1

yvesgermain avatar Apr 16 '18 15:04 yvesgermain

Thanks for reporting this! I'll take a look.

devblackops avatar Apr 17 '18 03:04 devblackops