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

xIisLogging: Moving strings to localization file #510

Merged
merged 5 commits into from
Oct 6, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 2 additions & 26 deletions DSCResources/MSFT_xIisLogging/MSFT_xIisLogging.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,8 @@ $script:localizationModulePath = Join-Path -Path $script:modulesFolderPath -Chil

Import-Module -Name (Join-Path -Path $script:localizationModulePath -ChildPath 'xWebAdministration.Common.psm1')

# Localized messages
data LocalizedData
{
# culture="en-US"
ConvertFrom-StringData -StringData @'
VerboseGetTargetResult = Get-TargetResource has been run.
VerboseSetTargetUpdateLogPath = LogPath is not in the desired state and will be updated.
VerboseSetTargetUpdateLogFlags = LogFlags do not match and will be updated.
VerboseSetTargetUpdateLogPeriod = LogPeriod is not in the desired state and will be updated.
VerboseSetTargetUpdateLogTruncateSize = TruncateSize is not in the desired state and will be updated.
VerboseSetTargetUpdateLoglocalTimeRollover = LoglocalTimeRollover is not in the desired state and will be updated.
VerboseSetTargetUpdateLogFormat = LogFormat is not in the desired state and will be updated
VerboseSetTargetUpdateLogTargetW3C = LogTargetW3C is not in the desired state and will be updated
VerboseSetTargetUpdateLogCustomFields = LogCustomFields is not in the desired state and will be updated.
VerboseTestTargetUpdateLogCustomFields = LogCustomFields is not in the desired state and will be updated.
VerboseTestTargetFalseLogPath = LogPath does match desired state.
VerboseTestTargetFalseLogFlags = LogFlags does not match desired state.
VerboseTestTargetFalseLogPeriod = LogPeriod does not match desired state.
VerboseTestTargetFalseLogTruncateSize = LogTruncateSize does not match desired state.
VerboseTestTargetFalseLoglocalTimeRollover = LoglocalTimeRollover does not match desired state.
VerboseTestTargetFalseLogFormat = LogFormat does not match desired state.
VerboseTestTargetFalseLogTargetW3C = LogTargetW3C does not match desired state.
WarningLogPeriod = LogTruncateSize has is an input as will overwrite this desired state.
WarningIncorrectLogFormat = LogFormat is not W3C, as a result LogFlags will not be used.
'@
}
# Import Localization Strings
$script:localizedData = Get-LocalizedData -ResourceName 'MSFT_xIisLogging'

<#
.SYNOPSIS
Expand Down
21 changes: 21 additions & 0 deletions DSCResources/MSFT_xIisLogging/en-US/MSFT_xIisLogging.strings.psd1
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
ConvertFrom-StringData @'
VerboseGetTargetResult = Get-TargetResource has been run.
VerboseSetTargetUpdateLogPath = LogPath is not in the desired state and will be updated.
VerboseSetTargetUpdateLogFlags = LogFlags do not match and will be updated.
VerboseSetTargetUpdateLogPeriod = LogPeriod is not in the desired state and will be updated.
VerboseSetTargetUpdateLogTruncateSize = TruncateSize is not in the desired state and will be updated.
VerboseSetTargetUpdateLoglocalTimeRollover = LoglocalTimeRollover is not in the desired state and will be updated.
VerboseSetTargetUpdateLogFormat = LogFormat is not in the desired state and will be updated
VerboseSetTargetUpdateLogTargetW3C = LogTargetW3C is not in the desired state and will be updated
VerboseSetTargetUpdateLogCustomFields = LogCustomFields is not in the desired state and will be updated.
VerboseTestTargetUpdateLogCustomFields = LogCustomFields is not in the desired state and will be updated.
VerboseTestTargetFalseLogPath = LogPath does match desired state.
VerboseTestTargetFalseLogFlags = LogFlags does not match desired state.
VerboseTestTargetFalseLogPeriod = LogPeriod does not match desired state.
VerboseTestTargetFalseLogTruncateSize = LogTruncateSize does not match desired state.
VerboseTestTargetFalseLoglocalTimeRollover = LoglocalTimeRollover does not match desired state.
VerboseTestTargetFalseLogFormat = LogFormat does not match desired state.
VerboseTestTargetFalseLogTargetW3C = LogTargetW3C does not match desired state.
WarningLogPeriod = LogTruncateSize has is an input as will overwrite this desired state.
WarningIncorrectLogFormat = LogFormat is not W3C, as a result LogFlags will not be used.
'@