Skip to content

Commit 76b777c

Browse files
authored
Fix casing of WinGet (microsoft#6059)
## Change Fix the casing when the term is used to describe the product (WinGet) while leaving casing when the term is used for the command line (winget).
1 parent 215cf8b commit 76b777c

File tree

2 files changed

+34
-24
lines changed

2 files changed

+34
-24
lines changed

src/AppInstallerCLIE2ETests/UpgradeCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public void UpgradeBehaviorDeny()
159159

160160
var result2 = TestCommon.RunAICLICommand("upgrade", $"{packageId} -v 2.0.0.0");
161161
Assert.AreEqual(Constants.ErrorCode.APPINSTALLER_CLI_ERROR_INSTALL_UPGRADE_NOT_SUPPORTED, result2.ExitCode);
162-
Assert.True(result2.StdOut.Contains("package cannot be upgraded using winget"));
162+
Assert.True(result2.StdOut.Contains("package cannot be upgraded using WinGet"));
163163
}
164164

165165
/// <summary>

src/AppInstallerCLIPackage/Shared/Strings/en-us/winget.resw

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ They can be configured through the settings file 'winget settings'.</value>
271271
<value>Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.</value>
272272
</data>
273273
<data name="InstallationDisclaimerMSStore" xml:space="preserve">
274-
<value>This package is provided through Microsoft Store. winget may need to acquire the package from Microsoft Store on behalf of the current user.</value>
275-
<comment>{Locked="winget"}</comment>
274+
<value>This package is provided through Microsoft Store. WinGet may need to acquire the package from Microsoft Store on behalf of the current user.</value>
275+
<comment>{Locked="WinGet"}</comment>
276276
</data>
277277
<data name="InstallCommandLongDescription" xml:space="preserve">
278278
<value>Installs the selected package, either found by searching a configured source or directly from a manifest. By default, the query must case-insensitively match the id, name, or moniker of the package. Other fields can be used by passing their appropriate option. By default, install command will check package installed status and try to perform an upgrade if applicable. Override with --force to perform a direct install.</value>
@@ -323,8 +323,8 @@ They can be configured through the settings file 'winget settings'.</value>
323323
<comment>{Locked="{0}"} Error message displayed when the user provides an unrecognized command line argument name for the selected command. {0} is a placeholder replaced by the user's argument name input (e.g. '--example').</comment>
324324
</data>
325325
<data name="KeyDirectoriesHeader" xml:space="preserve">
326-
<value>Winget Directories</value>
327-
<comment>Header for a table detailing the directories Winget uses for key operations like logging and portable installs</comment>
326+
<value>WinGet Directories</value>
327+
<comment>{Locked="WinGet"} Header for a table detailing the directories WinGet uses for key operations like logging and portable installs</comment>
328328
</data>
329329
<data name="LocaleArgumentDescription" xml:space="preserve">
330330
<value>Locale to use (BCP47 format)</value>
@@ -616,8 +616,8 @@ They can be configured through the settings file 'winget settings'.</value>
616616
<comment>{Locked="source reset"}</comment>
617617
</data>
618618
<data name="SourceOpenPredefinedFailedSuggestion" xml:space="preserve">
619-
<value>Failed to open the predefined source; please report to winget maintainers.</value>
620-
<comment>{Locked="winget"}</comment>
619+
<value>Failed to open the predefined source; please report to WinGet maintainers.</value>
620+
<comment>{Locked="WinGet"}</comment>
621621
</data>
622622
<data name="SourceRemoveAll" xml:space="preserve">
623623
<value>Removing all sources...</value>
@@ -672,7 +672,8 @@ They can be configured through the settings file 'winget settings'.</value>
672672
<value>Filter results by tag</value>
673673
</data>
674674
<data name="ThankYou" xml:space="preserve">
675-
<value>Thank you for using winget</value>
675+
<value>Thank you for using WinGet</value>
676+
<comment>{Locked="WinGet"}</comment>
676677
</data>
677678
<data name="ThirdPartSoftwareNotices" xml:space="preserve">
678679
<value>Third Party Notices</value>
@@ -814,8 +815,8 @@ They can be configured through the settings file 'winget settings'.</value>
814815
<value>Successfully uninstalled</value>
815816
</data>
816817
<data name="NoUninstallInfoFound" xml:space="preserve">
817-
<value>winget cannot locate the uninstall command for this package. Please reach out to the package publisher for support.</value>
818-
<comment>{Locked="winget"}</comment>
818+
<value>WinGet cannot locate the uninstall command for this package. Please reach out to the package publisher for support.</value>
819+
<comment>{Locked="WinGet"}</comment>
819820
</data>
820821
<data name="UninstallAbandoned" xml:space="preserve">
821822
<value>Uninstallation abandoned</value>
@@ -1461,7 +1462,8 @@ Please specify one of them using the --source option to proceed.</value>
14611462
<value>Purging install directory...</value>
14621463
</data>
14631464
<data name="UnableToPurgeInstallDirectory" xml:space="preserve">
1464-
<value>Cannot purge install directory as it was not created by winget</value>
1465+
<value>Cannot purge install directory as it was not created by WinGet</value>
1466+
<comment>{Locked="WinGet"}</comment>
14651467
</data>
14661468
<data name="RelatedLink" xml:space="preserve">
14671469
<value>Related Link</value>
@@ -1724,7 +1726,8 @@ Please specify one of them using the --source option to proceed.</value>
17241726
<comment>{Locked="{0}"} {0} is a placeholder that is replaced by an integer number of packages with pins that prevent upgrade</comment>
17251727
</data>
17261728
<data name="UpgradeBlockedByManifest" xml:space="preserve">
1727-
<value>The package cannot be upgraded using winget. Please use the method provided by the publisher for upgrading this package.</value>
1729+
<value>The package cannot be upgraded using WinGet. Please use the method provided by the publisher for upgrading this package.</value>
1730+
<comment>{Locked="WinGet"}</comment>
17281731
</data>
17291732
<data name="IncludePinnedArgumentDescription" xml:space="preserve">
17301733
<value>Upgrade packages even if they have a non-blocking pin</value>
@@ -2111,7 +2114,8 @@ Please specify one of them using the --source option to proceed.</value>
21112114
<value>Enable Windows Package Manager Configuration</value>
21122115
</data>
21132116
<data name="ErrorCommandLongDescription" xml:space="preserve">
2114-
<value>Retrieve information about errors. Given a number, the output will contain details about the error, including the symbol name if it is a winget specific error. Given a string, the winget specific errors are searched for this value.</value>
2117+
<value>Retrieve information about errors. Given a number, the output will contain details about the error, including the symbol name if it is a WinGet specific error. Given a string, the WinGet specific errors are searched for this value.</value>
2118+
<comment>{Locked="WinGet"}</comment>
21152119
</data>
21162120
<data name="ErrorCommandShortDescription" xml:space="preserve">
21172121
<value>Get information on errors</value>
@@ -2210,7 +2214,8 @@ Please specify one of them using the --source option to proceed.</value>
22102214
<value>The Microsoft Store app is blocked by policy</value>
22112215
</data>
22122216
<data name="APPINSTALLER_CLI_ERROR_EXPERIMENTAL_FEATURE_DISABLED" xml:space="preserve">
2213-
<value>The feature is currently under development. It can be enabled using winget settings.</value>
2217+
<value>The feature is currently under development. It can be enabled using `winget settings`.</value>
2218+
<comment>{Locked="winget settings"}</comment>
22142219
</data>
22152220
<data name="APPINSTALLER_CLI_ERROR_MSSTORE_INSTALL_FAILED" xml:space="preserve">
22162221
<value>Failed to install the Microsoft Store app</value>
@@ -2780,8 +2785,8 @@ Please specify one of them using the --source option to proceed.</value>
27802785
<value>Specify the account to be used for authentication</value>
27812786
</data>
27822787
<data name="SourceAddFailedAuthenticationNotSupported" xml:space="preserve">
2783-
<value>Failed to add source. This winget version does not support the source's authentication method. Try upgrading to latest winget version.</value>
2784-
<comment>{Locked="winget"}</comment>
2788+
<value>Failed to add source. This WinGet version does not support the source's authentication method. Try upgrading to latest WinGet version.</value>
2789+
<comment>{Locked="WinGet"}</comment>
27852790
</data>
27862791
<data name="SourceRequiresAuthentication" xml:space="preserve">
27872792
<value>The {0} source requires authentication. Authentication prompt may appear when necessary. Authenticated information will be shared with the source for access authorization.</value>
@@ -3225,8 +3230,8 @@ Please specify one of them using the --source option to proceed.</value>
32253230
<value>The package installer requires authentication. Authentication prompt may appear when necessary. Authenticated information will be shared with the installer download url.</value>
32263231
</data>
32273232
<data name="InstallerDownloadAuthenticationNotSupported" xml:space="preserve">
3228-
<value>Failed to download installer. This winget version does not support the installer download authentication method. Try upgrading to latest winget version.</value>
3229-
<comment>{Locked="winget"}</comment>
3233+
<value>Failed to download installer. This WinGet version does not support the installer download authentication method. Try upgrading to latest WinGet version.</value>
3234+
<comment>{Locked="WinGet"}</comment>
32303235
</data>
32313236
<data name="InstallerDownloadAuthenticationFailed" xml:space="preserve">
32323237
<value>Failed to download installer. Authentication failed.</value>
@@ -3239,7 +3244,8 @@ Please specify one of them using the --source option to proceed.</value>
32393244
<comment>DSC stands for "Desired State Configuration". It should already have a locked translation.</comment>
32403245
</data>
32413246
<data name="DscCommandLongDescription" xml:space="preserve">
3242-
<value>The sub-commands here implement Desired State Configuration (DSC) v3 resources for configuring winget and packages.</value>
3247+
<value>The sub-commands here implement Desired State Configuration (DSC) v3 resources for configuring WinGet and packages.</value>
3248+
<comment>{Locked="WinGet"}</comment>
32433249
</data>
32443250
<data name="DscResourceFunctionDescriptionGet" xml:space="preserve">
32453251
<value>Get the resource state</value>
@@ -3278,7 +3284,8 @@ Please specify one of them using the --source option to proceed.</value>
32783284
<value>Manage package state</value>
32793285
</data>
32803286
<data name="DscPackageResourceLongDescription" xml:space="preserve">
3281-
<value>Manage packages through winget.</value>
3287+
<value>Manage packages through WinGet.</value>
3288+
<comment>{Locked="WinGet"}</comment>
32823289
</data>
32833290
<data name="DscResourcePropertyDescriptionExist" xml:space="preserve">
32843291
<value>Indicates whether an instance should or does exist.</value>
@@ -3314,7 +3321,8 @@ Please specify one of them using the --source option to proceed.</value>
33143321
<value>Manage user settings file</value>
33153322
</data>
33163323
<data name="DscUserSettingsFileLongDescription" xml:space="preserve">
3317-
<value>Manage the user settings of winget.</value>
3324+
<value>Manage the user settings of WinGet.</value>
3325+
<comment>{Locked="WinGet"}</comment>
33183326
</data>
33193327
<data name="DscResourcePropertyDescriptionUserSettingsFileSettings" xml:space="preserve">
33203328
<value>The settings json file content.</value>
@@ -3329,7 +3337,8 @@ Please specify one of them using the --source option to proceed.</value>
33293337
<value>Manage source configuration</value>
33303338
</data>
33313339
<data name="DscSourceResourceLongDescription" xml:space="preserve">
3332-
<value>Manage the sources of winget.</value>
3340+
<value>Manage the sources of WinGet.</value>
3341+
<comment>{Locked="WinGet"}</comment>
33333342
</data>
33343343
<data name="DscResourcePropertyDescriptionSourceName" xml:space="preserve">
33353344
<value>The name to use for the source.</value>
@@ -3389,7 +3398,8 @@ Please specify one of them using the --source option to proceed.</value>
33893398
<value>Manage administrator settings</value>
33903399
</data>
33913400
<data name="DscAdminSettingsResourceLongDescription" xml:space="preserve">
3392-
<value>Manage the administrator settings of winget.</value>
3401+
<value>Manage the administrator settings of WinGet.</value>
3402+
<comment>{Locked="WinGet"}</comment>
33933403
</data>
33943404
<data name="ResetAllAdminSettingsArgumentDescription" xml:space="preserve">
33953405
<value>Resets all admin settings</value>
@@ -3556,4 +3566,4 @@ An unlocalized JSON fragment will follow on another line.</comment>
35563566
<value>Results have been filtered to the highest matched source priority.</value>
35573567
<comment>A warning message to indicate to the user that the results of a search have been filtered by choosing only those matching the highest source priority amongst the results.</comment>
35583568
</data>
3559-
</root>
3569+
</root>

0 commit comments

Comments
 (0)