-
Notifications
You must be signed in to change notification settings - Fork 225
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
xSQLServer: Localization should change to align with HQRM modules #205
Comments
Status of localization (according to new approach) for each resource
|
I created a issue for each resource. I'm will start working on xSQLServerSetup (issue #601) so we get the prerequisites for HQRM localization. Then it's will go faster to do the rest I think. I close this issue now when there is an issue per resource for this. |
@johlju, I want to make sure I'm following correctly. Are we moving all of the localization from the module root directory to each individual resource? And then each individual resource will get its own set of localization directories? Is the following directory tree correct?
|
Yes you are correct. That structure is correct. I tried to explain that I CONTRiBUTION.md but maybe need to be clarified? I see that xSQLServerHelper also will move to it's own folder under DSCResources later so it's localization folder follow the same structure. But think that we do that when all other resources are localized. I needed to get xSQLServerHelper localized to be able to close two issues. That's why I localized it at its current location. |
Thanks! I'll start working on getting the xSQLServerAlwaysOnAvailabilityGroupDatabaseMembership module updated. Your work in xSQLServerSetup should be a good example. |
Also there are new helper functions to throw errors (see CONTRIBUTING.md). And for verbose and warning message we should use Write-Verbose and Write-Warning. That will get the PSSA rule warnings about Write-Verbose to go away. |
Awesome! |
Today localization strings in one place. We should change this so that the localization is in each of the resources. This would align with the HQRM modules.
Module example:
Resource: MSFT_WindowsOptionalFeature
Resource strings: MSFT_WindowsOptionalFeature.strings.psd1
It uses a another approach to get the localization strings`and has a helper function under the DscResources tree.
https://github.com/PowerShell/PSDscResources/blob/dev/DscResources/CommonResourceHelper.psm1
And getting the localization strings is done like this.
With this approach we will also resolve a lot of the PSSA rule warnings during testing in AppVeyor (see issue #203) when
Write-Verbose
is not used in the Get-/Set-/Test-methods. If we use this approach we don't have to suppress those rules and we are closer to HQRM.The text was updated successfully, but these errors were encountered: